Changeset 994e0b6 in tol
- Timestamp:
- Mar 3, 2009, 9:36:22 AM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 545d679
- Parents:
- 3d1329c
- File:
-
- 1 edited
-
tol/btol/bgrammar/tol_boper.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/bgrammar/tol_boper.h
r3d1329c r994e0b6 144 144 145 145 BUserFunCode* uCode_; 146 BText cppFile_; 147 146 148 void AddSystemOperator(); 147 149 … … 156 158 void* GetProfiler() { return(profiler_); } 157 159 void PutProfiler(void* prf) { profiler_=prf; } 160 161 const BText& CppFile() const; 162 void PutCppFile(const BText& cppFile); 158 163 159 164 //! Gets operator's grammar … … 197 202 { 198 203 private: 199 static BText creatingName_; 204 static BText creatingName_; 205 static BText currentFatherName_; 206 static bool isCreatingNameBlock_; 207 static BText currentFullName_; 200 208 static const BClass* creatingClass_; 201 209 public: … … 211 219 BSyntaxObject* Evaluate (const List*) ; 212 220 static const BText& CreatingName () { return(creatingName_); } 221 static const BText& CurrentFatherName () { return(currentFatherName_); } 222 static const bool IsCreatingNameBlock () { return(isCreatingNameBlock_); } 223 static const BText& CurrentFullName () { return(currentFullName_); } 213 224 static const BClass* CreatingClass() { return(creatingClass_); } 214 225 static void CleanCreating() { creatingName_=""; creatingClass_=NULL; } … … 528 539 #define DefIntOpr(ORD, CLASS, NAME , MINARG, MAXARG, LISTARGS, DESC, CL) \ 529 540 static void * clone##CLASS##Int##ORD () { \ 530 return new BInternalOperator \ 531 IntOprConstructor(CLASS,NAME,MINARG,MAXARG,LISTARGS,DESC,CL); \ 541 BInternalOperator* opr = new BInternalOperator \ 542 IntOprConstructor(CLASS,NAME,MINARG,MAXARG,LISTARGS,DESC,CL); \ 543 opr->PutCppFile(__FILE__); \ 544 return opr; \ 532 545 } \ 533 546 static BInternalOperator* CLASS##Int##ORD = \ … … 579 592 # define DefExtOpr(ORD,CLASS,NAME,MINARG,MAXARG,LISTGRA,LISTARGS,DES,CL) \ 580 593 static void * clone##CLASS##Ext##ORD () { \ 581 return new BExternalOperator\594 BExternalOperator* opr = new BExternalOperator \ 582 595 ExtOprConstructor(CLASS,NAME,MINARG,MAXARG,LISTGRA,LISTARGS,DES,CL); \ 596 opr->PutCppFile(__FILE__); \ 597 return opr; \ 583 598 } \ 584 599 static BExternalOperator* CLASS##Ext##ORD = \
Note: See TracChangeset
for help on using the changeset viewer.
