SCM Repository
View of /sml/branches/SMLNJ/config/chk-global-names.sh
Parent Directory
|
Revision Log
Revision 249 -
(download)
(as text)
(annotate)
Sat Apr 17 18:57:03 1999 UTC (21 years, 9 months ago) by monnier
File size: 474 byte(s)
Sat Apr 17 18:57:03 1999 UTC (21 years, 9 months ago) by monnier
File size: 474 byte(s)
version 110.16
#!/bin/sh # # COPYRIGHT (c) 1995 AT&T Bell Laboratories. # # Check to see if "_" is prepended to global names in the symbol table. # CC=${CC:-cc} TMP_FILE=/tmp/smlConfig-$$ TMP_FILE_C=$TMP_FILE.c cat > $TMP_FILE_C <<XXXX main () {} XXXX $CC -o $TMP_FILE $TMP_FILE_C if [ "$?" != "0" ]; then rm -f $TMP_FILE $TMP_FILE_C exit 1 fi if `nm $TMP_FILE | grep -q -w "_main"` then echo "-DGLOBALS_HAVE_UNDERSCORE" fi rm -f $TMP_FILE $TMP_FILE_C exit 0
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |