// header for class that stores and retrieves program lines #ifndef ProgLines_h #define ProgLines_h class ProgLines { public: ProgLines(); ~ProgLines(); bool addLine(char *pLine); void executeNext(); // called by loop() while program running bool setNextLine(short); void advanceLine(); // sets the next line (public as needs to be called by Basic after user INPUT) int getNextLine(); private: int nextLine; bool storeLine(short, char*, int); bool isLine(short); void listLines(); void newProgram(); void runProg(); bool deleteLine(short); void displayError(int, short); void loadTest(); struct bLine{ short lNum; bLine* prev; bLine* next; void* cText; byte textLen; }; bLine* firstLine; bool gotoExec; }; extern ProgLines progLines; #endif