Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
d188050a
Commit
d188050a
authored
24 years ago
by
Daan Leijen
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-06-15 13:16:16 by daan]
Added definition of int64 to make it compilable with both gcc and VisualC++
parent
93c0c44f
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/includes/RtsAPI.h
+15
-3
15 additions, 3 deletions
ghc/includes/RtsAPI.h
with
15 additions
and
3 deletions
ghc/includes/RtsAPI.h
+
15
−
3
View file @
d188050a
/* ----------------------------------------------------------------------------
* $Id: RtsAPI.h,v 1.1
3
2000/0
4/26 09:29:37 simonmar
Exp $
* $Id: RtsAPI.h,v 1.1
4
2000/0
6/15 13:16:16 daan
Exp $
*
* (c) The GHC Team, 1998-1999
*
...
...
@@ -10,6 +10,18 @@
#ifndef RTSAPI_H
#define RTSAPI_H
/* Make this compilable with Visual C++ */
#ifndef HAVE_INT64
#define HAVE_INT64
#ifdef _MSC_VER
typedef
__int64
int64
;
typedef
unsigned
__int64
nat64
;
#else
typedef
long
long
int64
;
typedef
unsigned
long
long
nat64
;
#endif
#endif
/*
* Running the scheduler
*/
...
...
@@ -40,12 +52,12 @@ HaskellObj rts_mkInt ( int i );
HaskellObj
rts_mkInt8
(
int
i
);
HaskellObj
rts_mkInt16
(
int
i
);
HaskellObj
rts_mkInt32
(
int
i
);
HaskellObj
rts_mkInt64
(
long
long
i
);
HaskellObj
rts_mkInt64
(
int64
i
);
HaskellObj
rts_mkWord
(
unsigned
int
w
);
HaskellObj
rts_mkWord8
(
unsigned
int
w
);
HaskellObj
rts_mkWord16
(
unsigned
int
w
);
HaskellObj
rts_mkWord32
(
unsigned
int
w
);
HaskellObj
rts_mkWord64
(
unsigned
long
long
w
);
HaskellObj
rts_mkWord64
(
nat64
w
);
HaskellObj
rts_mkFloat
(
float
f
);
HaskellObj
rts_mkDouble
(
double
f
);
HaskellObj
rts_mkStablePtr
(
StgStablePtr
s
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment