"further stream operator fixes, plus config file tweak."
Brought to you by:
johnston
|
From: <ivt...@li...> - 2001-10-08 17:33:07
|
Patch: ivtools-011008-johnston-068
For: ivtools-0.9.6
Author: joh...@us...
Subject: further stream operator fixes, plus config file tweak.
Requires:
This is an intermediate patch to ivtools-0.9.6. To apply, cd to the
top-level directory of the ivtools source tree (the directory with src
and config subdirs), and apply like this:
patch -p0 <ThisFile
Summary of Changes:
- further stream operator fixes, plus config file tweak.
Index: ComTerp/strmfunc.c
diff -c ComTerp/strmfunc.c:1.4 ComTerp/strmfunc.c:1.5
*** ComTerp/strmfunc.c:1.4 Thu Oct 4 10:21:36 2001
--- src/ComTerp/strmfunc.c Mon Oct 8 10:31:11 2001
***************
*** 200,205 ****
--- 200,210 ----
ComValue operand2(stack_arg(1));
reset_stack();
+ if (operand1.is_nil() || operand2.is_nil()) {
+ push_stack(ComValue::nullval());
+ return;
+ }
+
int n = operand2.int_val();
if (n<=0) return;
***************
*** 256,261 ****
--- 261,271 ----
ComValue operand2(stack_arg(1));
reset_stack();
+
+ if (operand1.is_nil() || operand2.is_nil()) {
+ push_stack(ComValue::nullval());
+ return;
+ }
int start = operand1.int_val();
int stop = operand2.int_val();
Index: config_ivtools/local.def
diff -c config_ivtools/local.def:1.3 config_ivtools/local.def:1.4
*** config_ivtools/local.def:1.3 Thu Aug 16 12:22:41 2001
--- config/local.def Mon Oct 8 10:31:28 2001
***************
*** 44,50 ****
--- 44,54 ----
* Assume the use of gcc-2.3.3 or greater
*/
#undef LanguageCCDefines
+ #if LibStdCPlusPlusV3
#define LanguageCCDefines -Dcplusplus_2_1 -Wno-deprecated
+ #else
+ #define LanguageCCDefines -Dcplusplus_2_1
+ #endif
#include <gcc.def>
/*
*** /dev/null Mon Oct 8 10:31:29 PDT 2001
--- patches/ivtools-011008-johnston-068
*************** patches/ivtools-011008-johnston-068
*** 0 ****
--- 1 ----
+ ivtools-011008-johnston-068
|