Fossil SCM

More compilation fixes for Jim when compiling with MSVC.

mistachkin 2011-11-07 00:29 jimtcl
Commit 38d1b52283e4fa99ee731c041bdb1b0c6cc69ac9
2 files changed +3 -1 +1 -1
+3 -1
--- src/th_main.c
+++ src/th_main.c
@@ -396,13 +396,15 @@
396396
/*
397397
** Retrieve a string value (variable) from the interpreter. If no such
398398
** variable exists, return NULL.
399399
*/
400400
const char *Th_Fetch(const char *zName){
401
+ Jim_Obj *objPtr;
402
+
401403
Th_FossilInit();
402404
403
- Jim_Obj *objPtr = Jim_GetVariableStr(g.interp, zName, JIM_NONE);
405
+ objPtr = Jim_GetVariableStr(g.interp, zName, JIM_NONE);
404406
405407
return objPtr ? Jim_String(objPtr) : NULL;
406408
}
407409
408410
/**
409411
--- src/th_main.c
+++ src/th_main.c
@@ -396,13 +396,15 @@
396 /*
397 ** Retrieve a string value (variable) from the interpreter. If no such
398 ** variable exists, return NULL.
399 */
400 const char *Th_Fetch(const char *zName){
 
 
401 Th_FossilInit();
402
403 Jim_Obj *objPtr = Jim_GetVariableStr(g.interp, zName, JIM_NONE);
404
405 return objPtr ? Jim_String(objPtr) : NULL;
406 }
407
408 /**
409
--- src/th_main.c
+++ src/th_main.c
@@ -396,13 +396,15 @@
396 /*
397 ** Retrieve a string value (variable) from the interpreter. If no such
398 ** variable exists, return NULL.
399 */
400 const char *Th_Fetch(const char *zName){
401 Jim_Obj *objPtr;
402
403 Th_FossilInit();
404
405 objPtr = Jim_GetVariableStr(g.interp, zName, JIM_NONE);
406
407 return objPtr ? Jim_String(objPtr) : NULL;
408 }
409
410 /**
411
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -427,11 +427,11 @@
427427
428428
info_.c : $(SRCDIR)\info.c
429429
translate$E $** > $@
430430
431431
$(OX)\jimtcl$O : $(SRCDIR)\..\autosetup\jimsh0.c
432
- $(TCC) /Fo$@ /DJIM_BOOTSTRAP_LIB_ONLY -c $(SRCDIR)\..\autosetup\jimsh0.c
432
+ $(TCC) /Fo$@ /DHAVE_MKDIR_ONE_ARG /DJIM_BOOTSTRAP_LIB_ONLY -c $(SRCDIR)\..\autosetup\jimsh0.c
433433
434434
$(OX)\json$O : json_.c json.h
435435
$(TCC) /Fo$@ -c json_.c
436436
437437
json_.c : $(SRCDIR)\json.c
438438
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -427,11 +427,11 @@
427
428 info_.c : $(SRCDIR)\info.c
429 translate$E $** > $@
430
431 $(OX)\jimtcl$O : $(SRCDIR)\..\autosetup\jimsh0.c
432 $(TCC) /Fo$@ /DJIM_BOOTSTRAP_LIB_ONLY -c $(SRCDIR)\..\autosetup\jimsh0.c
433
434 $(OX)\json$O : json_.c json.h
435 $(TCC) /Fo$@ -c json_.c
436
437 json_.c : $(SRCDIR)\json.c
438
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -427,11 +427,11 @@
427
428 info_.c : $(SRCDIR)\info.c
429 translate$E $** > $@
430
431 $(OX)\jimtcl$O : $(SRCDIR)\..\autosetup\jimsh0.c
432 $(TCC) /Fo$@ /DHAVE_MKDIR_ONE_ARG /DJIM_BOOTSTRAP_LIB_ONLY -c $(SRCDIR)\..\autosetup\jimsh0.c
433
434 $(OX)\json$O : json_.c json.h
435 $(TCC) /Fo$@ -c json_.c
436
437 json_.c : $(SRCDIR)\json.c
438

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button