Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
9a6f4dd7
Commit
9a6f4dd7
authored
Aug 18, 2001
by
qrczak
Browse files
[project @ 2001-08-18 11:55:48 by qrczak]
Use char * instead of void * for pointer arithmetic.
parent
aea9f10b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/includes/PrimOps.h
View file @
9a6f4dd7
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
* $Id: PrimOps.h,v 1.8
1
2001/08/1
7
1
7:18:53 apt
Exp $
* $Id: PrimOps.h,v 1.8
2
2001/08/1
8
1
1:55:48 qrczak
Exp $
*
*
* (c) The GHC Team, 1998-2000
* (c) The GHC Team, 1998-2000
*
*
...
@@ -243,8 +243,8 @@ typedef union {
...
@@ -243,8 +243,8 @@ typedef union {
-------------------------------------------------------------------------- */
-------------------------------------------------------------------------- */
#define nullAddrzh(r,i) r=(A_)(0)
#define nullAddrzh(r,i) r=(A_)(0)
#define plusAddrzh(r,a,i) r=((
void
*)(a)) + (i)
#define plusAddrzh(r,a,i) r=((
char
*)(a)) + (i)
#define minusAddrzh(r,a,b) r=((
void
*)(a)) - ((
void
*)(b))
#define minusAddrzh(r,a,b) r=((
char
*)(a)) - ((
char
*)(b))
#define remAddrzh(r,a,i) r=((W_)(a))%(i)
#define remAddrzh(r,a,i) r=((W_)(a))%(i)
#define int2Addrzh(r,a) r=(A_)(a)
#define int2Addrzh(r,a) r=(A_)(a)
#define addr2Intzh(r,a) r=(I_)(a)
#define addr2Intzh(r,a) r=(I_)(a)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment