Changeset 13898 for trunk/FACT++


Ignore:
Timestamp:
05/25/12 23:07:58 (13 years ago)
Author:
tbretz
Message:
Updated the handling of labels and how a script is stopped.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Readline.h

    r13771 r13898  
    2727
    2828    int fLine;
    29     static int fLabel;
     29    int fSection;
     30    int fLabel;
     31    int fScriptDepth;
     32    static bool fStopScript;
    3033    static std::string fScript;
    3134
     
    102105    bool         IsStopped() const;
    103106    void         ProcessLine(const std::string &str);
    104     static  void SetLabel(int l) { fLabel = l; }
    105     static  int  GetLabel() { return fLabel; }
     107    void         SetLabel(int l) { fLabel = l; }
     108    static void  StopScript() { fStopScript = true; }
     109    static bool  IsScriptStopped() { return fStopScript; }
    106110
    107111    static std::string GetScript() { return fScript; }
Note: See TracChangeset for help on using the changeset viewer.