Changeset 182 in dev for trunk/abdev/BasicCompiler_Common/common.h
- Timestamp:
- Jun 24, 2007, 6:49:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/common.h
r167 r182 19 19 #include <boost/foreach.hpp> 20 20 21 #define foreach BOOST_FOREACH22 23 21 using namespace std; 24 22 … … 39 37 #include "../BasicCompiler_Common/psapi.h" 40 38 #include "../BasicCompiler_Common/BreakPoint.h" 41 #include "../BasicCompiler_Common/LexicalScoping.h"42 39 43 40 … … 56 53 57 54 #define MAX_LEN 65535 58 #define VN_SIZE 51259 55 #define DIGIT_SIZE 128 60 56 #define MAX_PARMS 64 … … 91 87 extern HANDLE hHeap; 92 88 extern int cp; 93 extern bool isUnicode;94 89 extern int typeOfPtrChar; 95 90 extern int typeOfPtrUChar; … … 144 139 145 140 146 // クラス管理用のクラス147 #include "Class.h"148 149 141 // 列挙体管理用のクラス 150 142 #include "Enum.h" … … 152 144 // 定数管理用のクラス 153 145 #include "Const.h" 154 155 // 変数管理用のクラス156 #include "Variable.h"157 158 // パラメータ管理用のクラス159 #include "Parameter.h"160 161 // プロシージャ管理用のクラス162 #include "Procedure.h"163 164 // コンパイラが必要とするデータハウス165 #include <Smoothie.h>166 146 167 147 … … 170 150 char *FileName; 171 151 int line; 172 };173 struct INCLUDEFILEINFO{174 char **ppFileNames;175 int FilesNum;176 int LineOfFile[MAX_LEN];177 152 }; 178 153 … … 272 247 #include "../BasicCompiler_Common/DebugSection.h" 273 248 #include "../BasicCompiler_Common/VariableOpe.h" 274 #include <Exception.h>275 249 276 250 … … 388 362 void SlideString(char *str,int slide); 389 363 void SlideBuffer(char *buffer,int length,int slide); 390 _int8 IsCommandDelimitation(char c);391 BOOL IsBlank(char c);392 int GetOneParameter(const char *Parameter,int pos,char *retAns);393 int JumpOneParameter(char *Parameter,int i);394 int GetStringInQuotation(char *buffer,char *ReadBuffer);395 int GetStringInPare(char *buffer,const char *ReadBuffer);396 int GetStringInPare_RemovePare(char *buffer,char *ReadBuffer);397 int GetStringInBracket(char *buffer,const char *ReadBuffer);398 int JumpStringInPare(const char *buffer,int pos);399 int JumpStringInBracket(const char *buffer,int pos);400 364 int GetCpFromLine(int LineNum); 401 365 BOOL GetLineNum(int pos,int *pLine,char *FileName); … … 435 399 int GetProc(char *name,void **ppInfo); 436 400 void SplitObjectName(const char *name,char *ObjectName,int *pRefType); 437 bool SplitMemberName( const char *desc, char *object, char *member, CClass::RefType &refType );438 bool SplitMemberName( const char *desc, char *object, char *member );439 401 bool CallProc( int kind, const void *pProc, const char *fullCallName, const char *lpszParms, Type &resultType, bool isCallOn = true ); 440 402 bool CallPropertyMethod( const char *variable, const char *rightSide, Type &resultType); … … 446 408 void DeleteDeclareInfo(void); 447 409 int AddProcPtrInfo( const string &typeExpression, int nowLine ); 448 void DeleteProcPtrInfo(void);449 410 bool IsNeedProcCompile(); 450 411 … … 452 413 void Opcode_Input(const char *Parameter); 453 414 void Opcode_Print(const char *Parameter,BOOL bWrite); 454 455 //LoopRefCheck.cpp456 class CLoopRefCheck{457 char **names;458 int num;459 void init();460 public:461 CLoopRefCheck();462 ~CLoopRefCheck();463 void add(const char *lpszInheritsClass);464 void del(const char *lpszInheritsClass);465 BOOL check(const CClass &inheritsClass) const;466 };467 extern CLoopRefCheck *pobj_LoopRefCheck;468 469 //DataTable.cpp470 class DataTable{471 void *pdata;472 int size;473 474 public:475 DataTable();476 ~DataTable();477 void Init();478 479 int AddBinary( const void *pdata, int size );480 int Add( _int64 i64data );481 int Add( int i32data );482 int Add( double dbl );483 int Add( float flt );484 int AddString( const char *str, int length );485 int AddString( const char *str );486 487 const void *GetPtr() const;488 int GetSize() const;489 };490 extern DataTable dataTable;491 415 492 416 //error.cpp … … 499 423 500 424 //Compile.cpp 501 void ReallocNativeCodeBuffer();502 425 void GetIdentifierToken( char *token, const char *source, int &pos ); 503 426 int JumpStatement(const char *source, int &pos);
Note:
See TracChangeset
for help on using the changeset viewer.