CVS: sml-dist/src/runtime/include ml-base.h,1.6,1.7

Matthias Blume <[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj.commits
Message-ID <[email protected]>
Update of /cvsroot/smlnj/sml-dist/src/runtime/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13218/src/runtime/include

Modified Files:
	ml-base.h 
Log Message:
heap2exec patches from Johannes 5 Joemann

Index: ml-base.h
===================================================================
RCS file: /cvsroot/smlnj/sml-dist/src/runtime/include/ml-base.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ml-base.h	6 Feb 2006 22:04:00 -0000	1.6
--- ml-base.h	20 Apr 2006 15:28:53 -0000	1.7
***************
*** 197,203 ****
  #endif /* !_ASM_ */
  
  #ifndef HEAP_IMAGE_SYMBOL
! #define HEAP_IMAGE_SYMBOL       "smlnj_heap_image"
! #define HEAP_IMAGE_LEN_SYMBOL   "smlnj_heap_image_len"
  #endif
  
--- 197,212 ----
  #endif /* !_ASM_ */
  
+ /* macro to prepend an underscore if necessary and stringify a symbol */
+ #if defined(OPSYS_FREEBSD) || defined(OPSYS_LINUX)
+ #define DLSYM_AUX1(S)	#S
+ #define DLSYM_AUX2(S)	DLSYM_AUX1(_ ## S)
+ #define DLSYM_STRING(SYM)	DLSYM_AUX2(SYM)
+ #else
+ #define DLSYM_STRING(SYM)	#SYM
+ #endif
+ 
  #ifndef HEAP_IMAGE_SYMBOL
! #define HEAP_IMAGE_SYMBOL	DLSYM_STRING(smlnj_heap_image)
! #define HEAP_IMAGE_LEN_SYMBOL	DLSYM_STRING(smlnj_heap_image_len)
  #endif
  



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.