diff options
Diffstat (limited to 'devel/sdcc/files/patch-ab')
| -rw-r--r-- | devel/sdcc/files/patch-ab | 102 |
1 files changed, 84 insertions, 18 deletions
diff --git a/devel/sdcc/files/patch-ab b/devel/sdcc/files/patch-ab index ea74f26293f3..f2e8f2b7ec25 100644 --- a/devel/sdcc/files/patch-ab +++ b/devel/sdcc/files/patch-ab @@ -1,19 +1,85 @@ -*** configure.orig Thu May 27 14:51:34 1999 ---- configure Thu Aug 26 18:15:36 1999 +*** sdcc.src/SDCCval.h.orig Thu Jul 1 09:28:12 1999 +--- sdcc.src/SDCCval.h Mon Nov 29 19:06:01 1999 *************** -*** 1075,1081 **** - # ./install, which can be erroneously created by make from ./install.sh. - echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 - echo "configure:1078: checking for a BSD compatible install" >&5 -! if test -z "$INSTALL"; then - if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else ---- 1075,1081 ---- - # ./install, which can be erroneously created by make from ./install.sh. - echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 - echo "configure:1078: checking for a BSD compatible install" >&5 -! if true; then - if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else +*** 67,73 **** + value *charVal (char * ); + value *symbolVal (symbol * ); + void printVal (value * ); +! double floatFromVal (value * ); + value *array2Ptr (value * ); + value *valUnaryPM (value * ); + value *valComplement (value * ); +--- 67,73 ---- + value *charVal (char * ); + value *symbolVal (symbol * ); + void printVal (value * ); +! long floatFromVal (value * ); + value *array2Ptr (value * ); + value *valUnaryPM (value * ); + value *valComplement (value * ); +*** sdcc.src/SDCCval.c.orig Mon Nov 29 19:08:57 1999 +--- sdcc.src/SDCCval.c Mon Nov 29 19:07:48 1999 +*************** +*** 578,584 **** + /*------------------------------------------------------------------*/ + /* floatFromVal - value to unsinged integer conversion */ + /*------------------------------------------------------------------*/ +! double floatFromVal ( value *val ) + { + if (!val) + return 0; +--- 578,584 ---- + /*------------------------------------------------------------------*/ + /* floatFromVal - value to unsinged integer conversion */ + /*------------------------------------------------------------------*/ +! long floatFromVal ( value *val ) + { + if (!val) + return 0; +*************** +*** 591,612 **** + /* if it is not a specifier then we can assume that */ + /* it will be an unsigned long */ + if (!IS_SPEC(val->type)) +! return (double) SPEC_CVAL(val->etype).v_ulong; + + if (SPEC_NOUN(val->etype) == V_FLOAT ) +! return (double) SPEC_CVAL(val->etype).v_float ; + else { + if (SPEC_LONG(val->etype)) { + if (SPEC_USIGN(val->etype)) +! return (double) SPEC_CVAL(val->etype).v_ulong ; + else +! return (double) SPEC_CVAL(val->etype).v_long ; + } + else { + if (SPEC_USIGN(val->etype)) +! return (double) SPEC_CVAL(val->etype).v_uint ; + else +! return (double) SPEC_CVAL(val->etype).v_int ; + } + } + } +--- 591,612 ---- + /* if it is not a specifier then we can assume that */ + /* it will be an unsigned long */ + if (!IS_SPEC(val->type)) +! return (long) SPEC_CVAL(val->etype).v_ulong; + + if (SPEC_NOUN(val->etype) == V_FLOAT ) +! return (long) SPEC_CVAL(val->etype).v_float ; + else { + if (SPEC_LONG(val->etype)) { + if (SPEC_USIGN(val->etype)) +! return (long) SPEC_CVAL(val->etype).v_ulong ; + else +! return (long) SPEC_CVAL(val->etype).v_long ; + } + else { + if (SPEC_USIGN(val->etype)) +! return (long) SPEC_CVAL(val->etype).v_uint ; + else +! return (long) SPEC_CVAL(val->etype).v_int ; + } + } + } |
