Skip to content
Snippets Groups Projects
Commit 106aed52 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 2000-08-15 14:22:24 by simonmar]

oops, revert part of previous commit that sneaked in by accident
parent b86f4b95
No related merge requests found
/* -----------------------------------------------------------------------------
* $Id: StgMacros.h,v 1.33 2000/08/15 14:18:43 simonmar Exp $
* $Id: StgMacros.h,v 1.34 2000/08/15 14:22:24 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
......@@ -726,8 +726,6 @@ LoadThreadState (void)
Module initialisation
-------------------------------------------------------------------------- */
#if 1 /* old init stuff */
#define PUSH_INIT_STACK(reg_function) \
*(Sp++) = (W_)reg_function
......@@ -754,29 +752,6 @@ LoadThreadState (void)
JMP_(POP_INIT_STACK()); \
FE_ }
#else
#define PUSH_INIT_STACK(reg_function) /* nothing */
#define POP_INIT_STACK() /* nothing */
#define REGISTER_IMPORT(reg_mod_name) /* nothing */
#define START_MOD_INIT(reg_mod_name) \
FN_(reg_mod_name) { \
EF_(StgReturn); \
TEXT_SET(hs_init_set, reg_mod_name); \
FB_;
/* extern decls go here, followed by init code */
#define REGISTER_FOREIGN_EXPORT(reg_fe_binder) \
STGCALL1(getStablePtr,reg_fe_binder)
#define END_MOD_INIT() \
JMP_(StgReturn); \
FE_ } \
#endif
/* -----------------------------------------------------------------------------
Support for _ccall_GC_ and _casm_GC.
-------------------------------------------------------------------------- */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment