Commit 868d2c47 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo

rts: Remove deprecated C type `lnat`

Summary:
The `lnat` type was deprecated in 2012 in commit 41737f12 with
a note to use `StgWord` instead.

Test Plan: Validate on Linux and OS X

Reviewers: simonmar, austin, Phyx, hvr, bgamari

Reviewed By: simonmar, Phyx, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2164
parent e6627d1f
......@@ -18,9 +18,6 @@
typedef unsigned int nat; /* at least 32 bits (like int) */
// Deprecated; just use StgWord instead
typedef StgWord lnat;
/* ullong (64|128-bit) type: only include if needed (not ANSI) */
#if defined(__GNUC__)
#define LL(x) (x##LL)
......
......@@ -11,7 +11,7 @@ const int MAXALLOC = ((8 * 1024 * 1024) / BLOCK_SIZE - 1);
//const int MAXALLOC = ((64 * 1024 * 1024) / BLOCK_SIZE - 1);
const int SEED = 0xf00f00;
extern lnat mblocks_allocated;
extern StgWord mblocks_allocated;
int main (int argc, char *argv[])
{
......
......@@ -21,7 +21,7 @@ const int MAXALLOC = ((8 * 1024 * 1024) / BLOCK_SIZE - 1);
//const int MAXALLOC = ((4 * 1024 * 1024) / BLOCK_SIZE - 1);
const int SEED = 0xf00f00;
extern lnat mblocks_allocated;
extern StgWord mblocks_allocated;
int main (int argc, char *argv[])
{
......
......@@ -9,7 +9,7 @@ const int ARRSIZE = 64;
const int LOOPS = 1000;
const int SEED = 0xf00f00;
extern lnat mblocks_allocated;
extern StgWord mblocks_allocated;
int main (int argc, char *argv[])
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment