Skip to content
This repository
Browse code

Fixed bug which prevented interrupting thread-sleep! and improved bui…

…ld scripts for Windows.
  • Loading branch information...
commit b9e13c3a27a951006365c7e2afe4136467437e4e 1 parent 9fe9d76
Marc Feeley authored
4 include/stamp.h
@@ -2,5 +2,5 @@
2 2 * Time stamp of last source code repository commit.
3 3 */
4 4
5   -#define ___STAMP_YMD 20090113
6   -#define ___STAMP_HMS 191201
  5 +#define ___STAMP_YMD 20090115
  6 +#define ___STAMP_HMS 172827
9 lib/_thread.scm
... ... @@ -1,6 +1,6 @@
1 1 ;;;============================================================================
2 2
3   -;;; File: "_thread.scm", Time-stamp: <2008-12-12 14:12:38 feeley>
  3 +;;; File: "_thread.scm", Time-stamp: <2009-01-15 12:26:10 feeley>
4 4
5 5 ;;; Copyright (c) 1994-2008 by Marc Feeley, All Rights Reserved.
6 6
@@ -1113,7 +1113,7 @@
1113 1113 (##thread-int!
1114 1114 next-sleeper
1115 1115 #f
1116   - ##thread-void-action!)
  1116 + ##thread-check-interrupts!)
1117 1117
1118 1118 (let ((next-condvar
1119 1119 (macro-btq-deq-next run-queue)))
@@ -1245,6 +1245,11 @@
1245 1245 (let ((result (thunk)))
1246 1246 (##thread-end! (macro-current-thread) #f result))))
1247 1247
  1248 +(define-prim (##thread-check-interrupts!)
  1249 + (##declare (interrupts-enabled))
  1250 + (##declare (not inline))
  1251 + (##thread-void-action!)) ;; interrupts will be checked here
  1252 +
1248 1253 (define-prim (##thread-void-action!)
1249 1254 (##declare (not interrupts-enabled))
1250 1255 (##void))
3  lib/os.h
... ... @@ -1,4 +1,4 @@
1   -/* File: "os.h", Time-stamp: <2008-09-03 16:32:13 feeley> */
  1 +/* File: "os.h", Time-stamp: <2009-01-14 12:18:16 feeley> */
2 2
3 3 /* Copyright (c) 1994-2008 by Marc Feeley, All Rights Reserved. */
4 4
@@ -228,6 +228,7 @@
228 228 #define USE_SetEnvironmentVariable
229 229 #define USE_WSAGetLastError
230 230 #define USE_GetConsoleWindow
  231 +#define USE_GetModuleFileName
231 232
232 233 #define HAVE_CLOCK 1
233 234 #define HAVE_CREATETHREAD 1
52 lib/os_files.c
... ... @@ -1,4 +1,4 @@
1   -/* File: "os_files.c", Time-stamp: <2008-12-17 00:20:01 feeley> */
  1 +/* File: "os_files.c", Time-stamp: <2009-01-14 12:18:12 feeley> */
2 2
3 3 /* Copyright (c) 1994-2008 by Marc Feeley, All Rights Reserved. */
4 4
@@ -506,6 +506,55 @@ ___SCMOBJ ___os_path_gambcdir ___PVOID
506 506 ___SCMOBJ e;
507 507 ___SCMOBJ result;
508 508
  509 +#ifdef USE_WIN32
  510 +#ifndef ___GAMBCDIR
  511 +#ifdef USE_GetModuleFileName
  512 + if (___setup_params.gambcdir == 0)
  513 + {
  514 + ___CHAR_TYPE(___PATH_CE_SELECT) temp[___PATH_MAX_LENGTH+1];
  515 + DWORD n;
  516 +
  517 + n = GetModuleFileName (NULL, temp, ___PATH_MAX_LENGTH+1);
  518 + if (n > 0)
  519 + {
  520 + int cch;
  521 + ___UCS_2STRING gambcdir = 0;
  522 + /* remove filename */
  523 + *(_tcsrchr (temp, '\\')) = 0;
  524 + /* remove bin subdirectory, if present */
  525 + cch = _tcslen (temp);
  526 + if (cch > 7) /* e.g. C:\x\bin */
  527 + {
  528 + if (0 == _tcsicmp (temp+cch-4, _T("\\bin")))
  529 + {
  530 + cch -= 4;
  531 + *(temp+cch) = '\0';
  532 + }
  533 + }
  534 +
  535 + gambcdir = ___CAST(___UCS_2STRING,
  536 + ___alloc_mem ((cch+1) * sizeof (___UCS_2)));
  537 +
  538 + if (gambcdir == 0)
  539 + {
  540 + e = ___FIX(___HEAP_OVERFLOW_ERR);
  541 + return e;
  542 + }
  543 + else
  544 + {
  545 +#ifdef _UNICODE
  546 + _tcscpy (gambcdir, temp);
  547 +#else
  548 + mbstowcs (gambcdir, temp, cch);
  549 +#endif
  550 + ___setup_params.gambcdir = gambcdir;
  551 + }
  552 + }
  553 + }
  554 +#endif
  555 +#endif
  556 +#endif
  557 +
509 558 if (___setup_params.gambcdir != 0)
510 559 {
511 560 if ((e = ___NONNULLUCS_2STRING_to_SCMOBJ
@@ -530,6 +579,7 @@ ___SCMOBJ ___os_path_gambcdir ___PVOID
530 579 #endif
531 580
532 581 #ifdef USE_WIN32
  582 +/* Will only be used if GetModuleFileName path fails */
533 583 #define ___GAMBCDIR "c:\\Gambit-C\\" STRINGIFY2(___VERSION)
534 584 #endif
535 585
27 lib/os_time.c
... ... @@ -1,4 +1,4 @@
1   -/* File: "os_time.c", Time-stamp: <2008-09-03 14:33:39 feeley> */
  1 +/* File: "os_time.c", Time-stamp: <2009-01-15 09:09:04 feeley> */
2 2
3 3 /* Copyright (c) 1994-2008 by Marc Feeley, All Rights Reserved. */
4 4
@@ -447,6 +447,15 @@ ___time tim;)
447 447 #ifdef USE_select
448 448
449 449
  450 +#ifdef ___TIMEVAL_NOT_LIMITED
  451 +#define ___TIMEVAL_SEC_LIMIT 2147483647 /* in seconds = 68 years */
  452 +#else
  453 +/* Mac OS X gives an error when the seconds > 100000000 (3.2 years) */
  454 +/* We'll be conservative in case other systems have limits */
  455 +#define ___TIMEVAL_SEC_LIMIT 9999999 /* in seconds = 118 days */
  456 +#endif
  457 +
  458 +
450 459 void ___absolute_time_to_nonnegative_timeval
451 460 ___P((___time tim,
452 461 struct timeval **tv),
@@ -462,9 +471,9 @@ struct timeval **tv;)
462 471 if (___time_positive (tim))
463 472 {
464 473 #ifdef ___FLOAT_TIME_REPRESENTATION
465   - if (tim >= 2147483648.0) /* upper bound is 68 years! */
  474 + if (tim >= (___TIMEVAL_SEC_LIMIT+1.0))
466 475 {
467   - t->tv_sec = 2147483647;
  476 + t->tv_sec = ___TIMEVAL_SEC_LIMIT;
468 477 t->tv_usec = 999999;
469 478 }
470 479 else
@@ -475,8 +484,16 @@ struct timeval **tv;)
475 484 #endif
476 485
477 486 #ifdef ___INT_TIME_REPRESENTATION
478   - t->tv_sec = tim.secs;
479   - t->tv_usec = tim.nsecs / 1000;
  487 + if (tim.secs > ___TIMEVAL_SEC_LIMIT)
  488 + {
  489 + t->tv_sec = ___TIMEVAL_SEC_LIMIT;
  490 + t->tv_usec = 999999;
  491 + }
  492 + else
  493 + {
  494 + t->tv_sec = tim.secs;
  495 + t->tv_usec = tim.nsecs / 1000;
  496 + }
480 497 #endif
481 498 }
482 499 else
2  misc/makefile.in
@@ -65,7 +65,7 @@ mandir = @mandir@
65 65 .SUFFIXES:
66 66
67 67 RCFILES = makefile.in README bench.tgz \
68   -openwatcom.bat vcexpress.bat vctoolkit.bat vstudio.zip \
  68 +openwatcom.bat vcexpress.bat vctoolkit.bat vc2008.bat vstudio.zip \
69 69 proj_msc.zip conf_msc conf_msc.sed conf_mpp.sed \
70 70 proj_wat.zip conf_wat conf_wat.sed conf_wpp.sed conf_win.sed \
71 71 proj_bor.zip conf_bor conf_bor.sed conf_bpp.sed \
29 misc/openwatcom.bat
@@ -13,17 +13,16 @@
13 13 @SET EDPATH=%WATCOM%\EDDAT
14 14 @SET INCLUDE=%WATCOM%\H;%WATCOM%\H\NT
15 15
16   -@IF "%1%" == "" (
17   -SET GAMBCDIR="C:/Gambit-C/././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././."
18   -) ELSE (
19   -SET GAMBCDIR="%1%"
20   -)
21   -
22 16 @rem We can't use -D___SINGLE_HOST for all Gambit generated C files
23 17 @rem because the C compiler runs out of memory while compiling _num.c
24 18 @rem and _io.c .
25 19
26   -set COMP_GEN=wcc386 -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -I..\include -D___GAMBCDIR=%GAMBCDIR% -D___SYS_TYPE_CPU="i686" -D___SYS_TYPE_VENDOR="pc" -D___SYS_TYPE_OS="openwatcom" -D___IMPORTED_ID_SUFFIX="_"
  20 +set COMP_GEN=wcc386 -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -I..\include -D___SYS_TYPE_CPU="i686" -D___SYS_TYPE_VENDOR="pc" -D___SYS_TYPE_OS="openwatcom" -D___IMPORTED_ID_SUFFIX="_"
  21 +
  22 +if not "%1%" == "" (
  23 +set COMP_GEN=%COMP_GEN% -D___GAMBCDIR=\"%1%\"
  24 +)
  25 +
27 26 set COMP_LIB_MH=%COMP_GEN% -D___LIBRARY
28 27 set COMP_LIB_PR_MH=%COMP_LIB_MH% -D___PRIMAL
29 28 set COMP_LIB=%COMP_LIB_MH% -D___SINGLE_HOST
@@ -111,7 +110,9 @@ cd bin
111 110 echo @echo off> gsc-cc-o.bat
112 111 echo.>> gsc-cc-o.bat
113 112 echo rem Script parameters are passed in the following environment variables:>> gsc-cc-o.bat
114   -echo rem GSC_CC_O_GAMBCDIR>> gsc-cc-o.bat
  113 +echo rem GSC_CC_O_GAMBCDIR_BIN>> gsc-cc-o.bat
  114 +echo rem GSC_CC_O_GAMBCDIR_INCLUDE>> gsc-cc-o.bat
  115 +echo rem GSC_CC_O_GAMBCDIR_LIB>> gsc-cc-o.bat
115 116 echo rem GSC_CC_O_OBJ_FILENAME>> gsc-cc-o.bat
116 117 echo rem GSC_CC_O_C_FILENAME_DIR>> gsc-cc-o.bat
117 118 echo rem GSC_CC_O_C_FILENAME_BASE>> gsc-cc-o.bat
@@ -119,7 +120,9 @@ echo rem GSC_CC_O_CC_OPTIONS>> gsc-cc-o.bat
119 120 echo rem GSC_CC_O_LD_OPTIONS_PRELUDE>> gsc-cc-o.bat
120 121 echo rem GSC_CC_O_LD_OPTIONS>> gsc-cc-o.bat
121 122 echo.>> gsc-cc-o.bat
122   -echo rem echo GSC_CC_O_GAMBCDIR = %%GSC_CC_O_GAMBCDIR%%>> gsc-cc-o.bat
  123 +echo rem echo GSC_CC_O_GAMBCDIR_BIN = %%GSC_CC_O_GAMBCDIR_BIN%%>> gsc-cc-o.bat
  124 +echo rem echo GSC_CC_O_GAMBCDIR_INCLUDE = %%GSC_CC_O_GAMBCDIR_INCLUDE%%>> gsc-cc-o.bat
  125 +echo rem echo GSC_CC_O_GAMBCDIR_LIB = %%GSC_CC_O_GAMBCDIR_LIB%%>> gsc-cc-o.bat
123 126 echo rem echo GSC_CC_O_OBJ_FILENAME = %%GSC_CC_O_OBJ_FILENAME%%>> gsc-cc-o.bat
124 127 echo rem echo GSC_CC_O_C_FILENAME_DIR = %%GSC_CC_O_C_FILENAME_DIR%%>> gsc-cc-o.bat
125 128 echo rem echo GSC_CC_O_C_FILENAME_BASE = %%GSC_CC_O_C_FILENAME_BASE%%>> gsc-cc-o.bat
@@ -134,22 +137,22 @@ echo exit 1 >> gsc-cc-o.bat
134 137 echo.>> gsc-cc-o.bat
135 138 echo :use_gcc.exe>> gsc-cc-o.bat
136 139 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
137   -echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  140 +echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
138 141 echo goto end>> gsc-cc-o.bat
139 142 echo.>> gsc-cc-o.bat
140 143 echo :use_wcl386.exe>> gsc-cc-o.bat
141 144 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
142   -echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  145 +echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
143 146 echo goto end>> gsc-cc-o.bat
144 147 echo.>> gsc-cc-o.bat
145 148 echo :use_cl.exe>> gsc-cc-o.bat
146 149 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
147   -echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  150 +echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
148 151 echo goto end>> gsc-cc-o.bat
149 152 echo.>> gsc-cc-o.bat
150 153 echo :use_build_time_c_compiler>> gsc-cc-o.bat
151 154 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
152   -echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  155 +echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
153 156 echo goto end>> gsc-cc-o.bat
154 157 echo.>> gsc-cc-o.bat
155 158 echo :end>> gsc-cc-o.bat
162 misc/vc2008.bat
... ... @@ -0,0 +1,162 @@
  1 +@rem File: "vc2008.cmd"
  2 +@rem
  3 +@rem This is a batch file to compile Gambit with the Microsoft Visual
  4 +@rem C++ 2008 Professional Edition. It probably will work with the
  5 +@rem Express Edition as well.
  6 +@rem
  7 +@rem TODO: turn this into a makefile
  8 +
  9 +@rem Setup environment variables
  10 +setlocal
  11 +
  12 +@call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
  13 +
  14 +@rem We can't use -D___SINGLE_HOST for all Gambit generated C files
  15 +@rem because the C compiler runs out of memory while compiling _num.c
  16 +@rem and _io.c .
  17 +
  18 +set COMP_GEN=cl -nologo -Oityb1 -Zi -GS -RTC1 -MT -D_CRT_SECURE_NO_DEPRECATE -c -I..\include -D___SYS_TYPE_CPU=\"i686\" -D___SYS_TYPE_VENDOR=\"pc\" -D___SYS_TYPE_OS=\"visualc\"
  19 +
  20 +if not "%1%" == "" (
  21 +set COMP_GEN=%COMP_GEN% -D___GAMBCDIR=\"%1%\"
  22 +)
  23 +
  24 +set COMP_LIB_MH=%COMP_GEN% -D___LIBRARY
  25 +set COMP_LIB_PR_MH=%COMP_LIB_MH% -D___PRIMAL
  26 +set COMP_LIB=%COMP_LIB_MH% -D___SINGLE_HOST
  27 +set COMP_LIB_PR=%COMP_LIB_PR_MH% -D___SINGLE_HOST
  28 +set COMP_APP=%COMP_GEN% -D___SINGLE_HOST
  29 +
  30 +@rem We can't rely on sed being available so we generate gambit.h
  31 +@rem from gambit.h.in by prefixing it with the needed declarations.
  32 +
  33 +echo #ifndef ___VOIDSTAR_WIDTH > include\gambit.h
  34 +echo #define ___VOIDSTAR_WIDTH ___LONG_WIDTH >> include\gambit.h
  35 +echo #endif >> include\gambit.h
  36 +echo #ifndef ___MAX_CHR >> include\gambit.h
  37 +echo #define ___MAX_CHR 0x10ffff >> include\gambit.h
  38 +echo #endif >> include\gambit.h
  39 +type include\gambit.h.in >> include\gambit.h
  40 +
  41 +cd lib
  42 +
  43 +%COMP_LIB_PR% main.c
  44 +%COMP_LIB_PR% setup.c
  45 +%COMP_LIB_PR% mem.c
  46 +%COMP_LIB_PR% os.c
  47 +%COMP_LIB_PR% os_base.c
  48 +%COMP_LIB_PR% os_time.c
  49 +%COMP_LIB_PR% os_shell.c
  50 +%COMP_LIB_PR% os_files.c
  51 +%COMP_LIB_PR% os_dyn.c
  52 +%COMP_LIB_PR% os_tty.c
  53 +%COMP_LIB_PR% os_io.c
  54 +%COMP_LIB_PR% c_intf.c
  55 +
  56 +%COMP_LIB_PR% _kernel.c
  57 +%COMP_LIB_PR% _system.c
  58 +%COMP_LIB_PR_MH% _num.c
  59 +%COMP_LIB_PR% _std.c
  60 +%COMP_LIB_PR% _eval.c
  61 +%COMP_LIB_PR_MH% _io.c
  62 +%COMP_LIB_PR% _nonstd.c
  63 +%COMP_LIB_PR% _thread.c
  64 +%COMP_LIB_PR% _repl.c
  65 +
  66 +%COMP_LIB_PR% _gambc.c
  67 +
  68 +lib -out:libgambc.lib main.obj setup.obj mem.obj os.obj os_base.obj os_time.obj os_shell.obj os_files.obj os_dyn.obj os_tty.obj os_io.obj c_intf.obj _kernel.obj _system.obj _num.obj _std.obj _eval.obj _io.obj _nonstd.obj _thread.obj _repl.obj _gambc.obj
  69 +
  70 +cd ..
  71 +
  72 +cd gsi
  73 +
  74 +%COMP_LIB% _gsilib.c
  75 +%COMP_LIB% _gambcgsi.c
  76 +%COMP_APP% _gsi.c
  77 +%COMP_APP% _gsi_.c
  78 +
  79 +cl -Fegsi.exe ..\lib\libgambc.lib _gsilib.obj _gambcgsi.obj _gsi.obj _gsi_.obj Kernel32.Lib User32.Lib Gdi32.Lib WS2_32.Lib
  80 +
  81 +cd ..
  82 +
  83 +cd gsc
  84 +
  85 +%COMP_LIB% _host.c
  86 +%COMP_LIB% _utils.c
  87 +%COMP_LIB% _source.c
  88 +%COMP_LIB% _parms.c
  89 +%COMP_LIB% _env.c
  90 +%COMP_LIB% _ptree1.c
  91 +%COMP_LIB% _ptree2.c
  92 +%COMP_LIB% _gvm.c
  93 +%COMP_LIB% _back.c
  94 +%COMP_LIB% _front.c
  95 +%COMP_LIB% _prims.c
  96 +%COMP_LIB% _t-c-1.c
  97 +%COMP_LIB% _t-c-2.c
  98 +%COMP_LIB% _t-c-3.c
  99 +%COMP_LIB% _gsclib.c
  100 +%COMP_LIB% _gambcgsc.c
  101 +%COMP_APP% _gsc.c
  102 +%COMP_APP% _gsc_.c
  103 +
  104 +cl -Fegsc.exe ..\lib\libgambc.lib _host.obj _utils.obj _source.obj _parms.obj _env.obj _ptree1.obj _ptree2.obj _gvm.obj _back.obj _front.obj _prims.obj _t-c-1.obj _t-c-2.obj _t-c-3.obj _gsclib.obj _gambcgsc.obj _gsc.obj _gsc_.obj Kernel32.Lib User32.Lib Gdi32.Lib WS2_32.Lib
  105 +
  106 +cd ..
  107 +
  108 +cd bin
  109 +
  110 +echo @echo off> gsc-cc-o.bat
  111 +echo.>> gsc-cc-o.bat
  112 +echo rem Script parameters are passed in the following environment variables:>> gsc-cc-o.bat
  113 +echo rem GSC_CC_O_GAMBCDIR_BIN>> gsc-cc-o.bat
  114 +echo rem GSC_CC_O_GAMBCDIR_INCLUDE>> gsc-cc-o.bat
  115 +echo rem GSC_CC_O_GAMBCDIR_LIB>> gsc-cc-o.bat
  116 +echo rem GSC_CC_O_OBJ_FILENAME>> gsc-cc-o.bat
  117 +echo rem GSC_CC_O_C_FILENAME_DIR>> gsc-cc-o.bat
  118 +echo rem GSC_CC_O_C_FILENAME_BASE>> gsc-cc-o.bat
  119 +echo rem GSC_CC_O_CC_OPTIONS>> gsc-cc-o.bat
  120 +echo rem GSC_CC_O_LD_OPTIONS_PRELUDE>> gsc-cc-o.bat
  121 +echo rem GSC_CC_O_LD_OPTIONS>> gsc-cc-o.bat
  122 +echo.>> gsc-cc-o.bat
  123 +echo rem echo GSC_CC_O_GAMBCDIR_BIN = %%GSC_CC_O_GAMBCDIR_BIN%%>> gsc-cc-o.bat
  124 +echo rem echo GSC_CC_O_GAMBCDIR_INCLUDE = %%GSC_CC_O_GAMBCDIR_INCLUDE%%>> gsc-cc-o.bat
  125 +echo rem echo GSC_CC_O_GAMBCDIR_LIB = %%GSC_CC_O_GAMBCDIR_LIB%%>> gsc-cc-o.bat
  126 +echo rem echo GSC_CC_O_OBJ_FILENAME = %%GSC_CC_O_OBJ_FILENAME%%>> gsc-cc-o.bat
  127 +echo rem echo GSC_CC_O_C_FILENAME_DIR = %%GSC_CC_O_C_FILENAME_DIR%%>> gsc-cc-o.bat
  128 +echo rem echo GSC_CC_O_C_FILENAME_BASE = %%GSC_CC_O_C_FILENAME_BASE%%>> gsc-cc-o.bat
  129 +echo rem echo GSC_CC_O_CC_OPTIONS = %%GSC_CC_O_CC_OPTIONS%%>> gsc-cc-o.bat
  130 +echo rem echo GSC_CC_O_LD_OPTIONS_PRELUDE = %%GSC_CC_O_LD_OPTIONS_PRELUDE%%>> gsc-cc-o.bat
  131 +echo rem echo GSC_CC_O_LD_OPTIONS = %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  132 +echo.>> gsc-cc-o.bat
  133 +echo for %%%%f in (cl.exe gcc.exe wcl386.exe) do if not "%%%%~$PATH:f" == "" goto use_%%%%%%f>> gsc-cc-o.bat
  134 +echo.>> gsc-cc-o.bat
  135 +echo echo gcc.exe, wcl386.exe and cl.exe were not found in the PATH. Make sure MinGW, OpenWatcom or Visual C++ Express is installed.>> gsc-cc-o.bat
  136 +echo exit 1 >> gsc-cc-o.bat
  137 +echo.>> gsc-cc-o.bat
  138 +echo :use_gcc.exe>> gsc-cc-o.bat
  139 +echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
  140 +echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  141 +echo goto end>> gsc-cc-o.bat
  142 +echo.>> gsc-cc-o.bat
  143 +echo :use_wcl386.exe>> gsc-cc-o.bat
  144 +echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
  145 +echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  146 +echo goto end>> gsc-cc-o.bat
  147 +echo.>> gsc-cc-o.bat
  148 +echo :use_cl.exe>> gsc-cc-o.bat
  149 +echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
  150 +echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  151 +echo goto end>> gsc-cc-o.bat
  152 +echo.>> gsc-cc-o.bat
  153 +echo :use_build_time_c_compiler>> gsc-cc-o.bat
  154 +echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
  155 +echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  156 +echo goto end>> gsc-cc-o.bat
  157 +echo.>> gsc-cc-o.bat
  158 +echo :end>> gsc-cc-o.bat
  159 +echo.>> gsc-cc-o.bat
  160 +echo exit>> gsc-cc-o.bat
  161 +
  162 +cd ..
29 misc/vcexpress.bat
@@ -13,17 +13,16 @@
13 13 @call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
14 14 @call "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd"
15 15
16   -@IF "%1%" == "" (
17   -SET GAMBCDIR="C:/Gambit-C/././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././."
18   -) ELSE (
19   -SET GAMBCDIR="%1%"
20   -)
21   -
22 16 @rem We can't use -D___SINGLE_HOST for all Gambit generated C files
23 17 @rem because the C compiler runs out of memory while compiling _num.c
24 18 @rem and _io.c .
25 19
26   -set COMP_GEN=cl -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -c -I..\include -D___GAMBCDIR=\"%GAMBCDIR%\" -D___SYS_TYPE_CPU=\"i686\" -D___SYS_TYPE_VENDOR=\"pc\" -D___SYS_TYPE_OS=\"visualc\"
  20 +set COMP_GEN=cl -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -c -I..\include -D___SYS_TYPE_CPU=\"i686\" -D___SYS_TYPE_VENDOR=\"pc\" -D___SYS_TYPE_OS=\"visualc\"
  21 +
  22 +if not "%1%" == "" (
  23 +set COMP_GEN=%COMP_GEN% -D___GAMBCDIR=\"%1%\"
  24 +)
  25 +
27 26 set COMP_LIB_MH=%COMP_GEN% -D___LIBRARY
28 27 set COMP_LIB_PR_MH=%COMP_LIB_MH% -D___PRIMAL
29 28 set COMP_LIB=%COMP_LIB_MH% -D___SINGLE_HOST
@@ -113,7 +112,9 @@ cd bin
113 112 echo @echo off> gsc-cc-o.bat
114 113 echo.>> gsc-cc-o.bat
115 114 echo rem Script parameters are passed in the following environment variables:>> gsc-cc-o.bat
116   -echo rem GSC_CC_O_GAMBCDIR>> gsc-cc-o.bat
  115 +echo rem GSC_CC_O_GAMBCDIR_BIN>> gsc-cc-o.bat
  116 +echo rem GSC_CC_O_GAMBCDIR_INCLUDE>> gsc-cc-o.bat
  117 +echo rem GSC_CC_O_GAMBCDIR_LIB>> gsc-cc-o.bat
117 118 echo rem GSC_CC_O_OBJ_FILENAME>> gsc-cc-o.bat
118 119 echo rem GSC_CC_O_C_FILENAME_DIR>> gsc-cc-o.bat
119 120 echo rem GSC_CC_O_C_FILENAME_BASE>> gsc-cc-o.bat
@@ -121,7 +122,9 @@ echo rem GSC_CC_O_CC_OPTIONS>> gsc-cc-o.bat
121 122 echo rem GSC_CC_O_LD_OPTIONS_PRELUDE>> gsc-cc-o.bat
122 123 echo rem GSC_CC_O_LD_OPTIONS>> gsc-cc-o.bat
123 124 echo.>> gsc-cc-o.bat
124   -echo rem echo GSC_CC_O_GAMBCDIR = %%GSC_CC_O_GAMBCDIR%%>> gsc-cc-o.bat
  125 +echo rem echo GSC_CC_O_GAMBCDIR_BIN = %%GSC_CC_O_GAMBCDIR_BIN%%>> gsc-cc-o.bat
  126 +echo rem echo GSC_CC_O_GAMBCDIR_INCLUDE = %%GSC_CC_O_GAMBCDIR_INCLUDE%%>> gsc-cc-o.bat
  127 +echo rem echo GSC_CC_O_GAMBCDIR_LIB = %%GSC_CC_O_GAMBCDIR_LIB%%>> gsc-cc-o.bat
125 128 echo rem echo GSC_CC_O_OBJ_FILENAME = %%GSC_CC_O_OBJ_FILENAME%%>> gsc-cc-o.bat
126 129 echo rem echo GSC_CC_O_C_FILENAME_DIR = %%GSC_CC_O_C_FILENAME_DIR%%>> gsc-cc-o.bat
127 130 echo rem echo GSC_CC_O_C_FILENAME_BASE = %%GSC_CC_O_C_FILENAME_BASE%%>> gsc-cc-o.bat
@@ -136,22 +139,22 @@ echo exit 1 >> gsc-cc-o.bat
136 139 echo.>> gsc-cc-o.bat
137 140 echo :use_gcc.exe>> gsc-cc-o.bat
138 141 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
139   -echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  142 +echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
140 143 echo goto end>> gsc-cc-o.bat
141 144 echo.>> gsc-cc-o.bat
142 145 echo :use_wcl386.exe>> gsc-cc-o.bat
143 146 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
144   -echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  147 +echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
145 148 echo goto end>> gsc-cc-o.bat
146 149 echo.>> gsc-cc-o.bat
147 150 echo :use_cl.exe>> gsc-cc-o.bat
148 151 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
149   -echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  152 +echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
150 153 echo goto end>> gsc-cc-o.bat
151 154 echo.>> gsc-cc-o.bat
152 155 echo :use_build_time_c_compiler>> gsc-cc-o.bat
153 156 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
154   -echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  157 +echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
155 158 echo goto end>> gsc-cc-o.bat
156 159 echo.>> gsc-cc-o.bat
157 160 echo :end>> gsc-cc-o.bat
29 misc/vctoolkit.bat
@@ -14,17 +14,16 @@
14 14 @call "C:\Program Files\Microsoft Visual C++ Toolkit 2003\vcvars32.bat"
15 15 @call "C:\Program Files\Microsoft Platform SDK\SetEnv.Cmd"
16 16
17   -@IF "%1%" == "" (
18   -SET GAMBCDIR="C:/Gambit-C/././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././."
19   -) ELSE (
20   -SET GAMBCDIR="%1%"
21   -)
22   -
23 17 @rem We can't use -D___SINGLE_HOST for all Gambit generated C files
24 18 @rem because the C compiler runs out of memory while compiling _num.c
25 19 @rem and _io.c .
26 20
27   -set COMP_GEN=cl -nologo -Oityb1 -G5s -MT -c -I..\include -D___GAMBCDIR=\"%GAMBCDIR%\" -D___SYS_TYPE_CPU=\"i686\" -D___SYS_TYPE_VENDOR=\"pc\" -D___SYS_TYPE_OS=\"visualc\"
  21 +set COMP_GEN=cl -nologo -Oityb1 -G5s -MT -c -I..\include -D___SYS_TYPE_CPU=\"i686\" -D___SYS_TYPE_VENDOR=\"pc\" -D___SYS_TYPE_OS=\"visualc\"
  22 +
  23 +if not "%1%" == "" (
  24 +set COMP_GEN=%COMP_GEN% -D___GAMBCDIR=\"%1%\"
  25 +)
  26 +
28 27 set COMP_LIB_MH=%COMP_GEN% -D___LIBRARY
29 28 set COMP_LIB_PR_MH=%COMP_LIB_MH% -D___PRIMAL
30 29 set COMP_LIB=%COMP_LIB_MH% -D___SINGLE_HOST
@@ -114,7 +113,9 @@ cd bin
114 113 echo @echo off> gsc-cc-o.bat
115 114 echo.>> gsc-cc-o.bat
116 115 echo rem Script parameters are passed in the following environment variables:>> gsc-cc-o.bat
117   -echo rem GSC_CC_O_GAMBCDIR>> gsc-cc-o.bat
  116 +echo rem GSC_CC_O_GAMBCDIR_BIN>> gsc-cc-o.bat
  117 +echo rem GSC_CC_O_GAMBCDIR_INCLUDE>> gsc-cc-o.bat
  118 +echo rem GSC_CC_O_GAMBCDIR_LIB>> gsc-cc-o.bat
118 119 echo rem GSC_CC_O_OBJ_FILENAME>> gsc-cc-o.bat
119 120 echo rem GSC_CC_O_C_FILENAME_DIR>> gsc-cc-o.bat
120 121 echo rem GSC_CC_O_C_FILENAME_BASE>> gsc-cc-o.bat
@@ -122,7 +123,9 @@ echo rem GSC_CC_O_CC_OPTIONS>> gsc-cc-o.bat
122 123 echo rem GSC_CC_O_LD_OPTIONS_PRELUDE>> gsc-cc-o.bat
123 124 echo rem GSC_CC_O_LD_OPTIONS>> gsc-cc-o.bat
124 125 echo.>> gsc-cc-o.bat
125   -echo rem echo GSC_CC_O_GAMBCDIR = %%GSC_CC_O_GAMBCDIR%%>> gsc-cc-o.bat
  126 +echo rem echo GSC_CC_O_GAMBCDIR_BIN = %%GSC_CC_O_GAMBCDIR_BIN%%>> gsc-cc-o.bat
  127 +echo rem echo GSC_CC_O_GAMBCDIR_INCLUDE = %%GSC_CC_O_GAMBCDIR_INCLUDE%%>> gsc-cc-o.bat
  128 +echo rem echo GSC_CC_O_GAMBCDIR_LIB = %%GSC_CC_O_GAMBCDIR_LIB%%>> gsc-cc-o.bat
126 129 echo rem echo GSC_CC_O_OBJ_FILENAME = %%GSC_CC_O_OBJ_FILENAME%%>> gsc-cc-o.bat
127 130 echo rem echo GSC_CC_O_C_FILENAME_DIR = %%GSC_CC_O_C_FILENAME_DIR%%>> gsc-cc-o.bat
128 131 echo rem echo GSC_CC_O_C_FILENAME_BASE = %%GSC_CC_O_C_FILENAME_BASE%%>> gsc-cc-o.bat
@@ -137,22 +140,22 @@ echo exit 1 >> gsc-cc-o.bat
137 140 echo.>> gsc-cc-o.bat
138 141 echo :use_gcc.exe>> gsc-cc-o.bat
139 142 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
140   -echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  143 +echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
141 144 echo goto end>> gsc-cc-o.bat
142 145 echo.>> gsc-cc-o.bat
143 146 echo :use_wcl386.exe>> gsc-cc-o.bat
144 147 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
145   -echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  148 +echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
146 149 echo goto end>> gsc-cc-o.bat
147 150 echo.>> gsc-cc-o.bat
148 151 echo :use_cl.exe>> gsc-cc-o.bat
149 152 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
150   -echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  153 +echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
151 154 echo goto end>> gsc-cc-o.bat
152 155 echo.>> gsc-cc-o.bat
153 156 echo :use_build_time_c_compiler>> gsc-cc-o.bat
154 157 echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
155   -echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
  158 +echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
156 159 echo goto end>> gsc-cc-o.bat
157 160 echo.>> gsc-cc-o.bat
158 161 echo :end>> gsc-cc-o.bat

0 comments on commit b9e13c3

Please sign in to comment.
Something went wrong with that request. Please try again.