Changeset 126

Show
Ignore:
Timestamp:
06/21/08 10:04:10 (5 months ago)
Author:
matthiasm
Message:

kNPSGetPath would get the wrong indexed argument from the stack. The rest of the changes were done to get more detailed package dumps.

Location:
NEWT0/branches/DyneTK
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • NEWT0/branches/DyneTK/platform/VisualC6/newt_lib.vcproj

    r125 r126  
    4444                InlineFunctionExpansion="1" 
    4545                AdditionalIncludeDirectories="../../src,../../src/newt_core/incs,../../src/newt_core/incs/VC6,../../src/parser" 
    46                 PreprocessorDefinitions="NDEBUG;WIN32;_LIB;HAVE_CONFIG_H" 
     46                PreprocessorDefinitions="NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;YYERROR_VERBOSE" 
    4747                StringPooling="true" 
    4848                RuntimeLibrary="2" 
     
    119119                AdditionalIncludeDirectories="../../src,../../src/newt_core/incs,../../src/newt_core/incs/VC6,../../src/parser" 
    120120                PreprocessorDefinitions="_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;YYERROR_VERBOSE" 
    121                 MinimalRebuild="true" 
     121                MinimalRebuild="false" 
    122122                BasicRuntimeChecks="3" 
    123123                RuntimeLibrary="3" 
     
    128128                WarningLevel="3" 
    129129                SuppressStartupBanner="true" 
    130                 DebugInformationFormat="4" 
     130                DebugInformationFormat="3" 
    131131            /> 
    132132            <Tool 
  • NEWT0/branches/DyneTK/src/newt_core/NewtBC.c

    r113 r126  
    25552555            NBCGenBC_op(stree, node->op1); 
    25562556            NBCGenBC_op(stree, node->op2); 
    2557             NBCGenCode(node->code, 2); 
     2557            NBCGenCode(node->code, 1); 
    25582558            break; 
    25592559 
  • NEWT0/branches/DyneTK/src/newt_core/NewtPrint.c

    r123 r126  
    715715    uint32_t    i; 
    716716 
    717     if (NewtRefIsFunction(r) && ! NEWT_DUMPBC) 
     717    if (NewtRefIsFunction(r)) 
    718718    { 
    719         NIOPrintFnFrame(f, r); 
    720         return; 
     719      if (NEWT_DUMPBC==0)  
     720      { 
     721          NIOPrintFnFrame(f, r); 
     722          return; 
     723      }  
     724      else if (NEWT_DUMPBC==2)  
     725      { 
     726          NEWT_DUMPBC = 1; 
     727          NewtFprintf(f->file, "*** byte code ***\n"); 
     728          NVMDumpFn(f->file, r); 
     729          NewtFprintf(f->file, "\n"); 
     730          NEWT_DUMPBC = 2; 
     731          return; 
     732      } // else fall through 
    721733    } 
    722734 
  • NEWT0/branches/DyneTK/src/newt_core/incs/NewtEnv.h

    r112 r126  
    9696    bool        _dumpLex;       ///< 字句解析ダンプフラグ 
    9797    bool        _dumpSyntax;    ///< 構文木ダンプフラグ 
    98     bool        _dumpBC;        ///< バイトコードダンプフラグ 
     98  int8_t        _dumpBC;        ///< バイトコードダンプフラグ 
    9999    int32_t     _indent;        ///< number of tabs for indenting a printout 
    100100    int32_t     _indentDepth;   ///< base for calculating the indent depth