Ignore:
Timestamp:
Jun 24, 2007, 6:49:13 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/common.h

    r167 r182  
    1919#include <boost/foreach.hpp>
    2020
    21 #define foreach BOOST_FOREACH
    22 
    2321using namespace std;
    2422
     
    3937#include "../BasicCompiler_Common/psapi.h"
    4038#include "../BasicCompiler_Common/BreakPoint.h"
    41 #include "../BasicCompiler_Common/LexicalScoping.h"
    4239
    4340
     
    5653
    5754#define MAX_LEN         65535
    58 #define VN_SIZE         512
    5955#define DIGIT_SIZE      128
    6056#define MAX_PARMS       64
     
    9187extern HANDLE hHeap;
    9288extern int cp;
    93 extern bool isUnicode;
    9489extern int typeOfPtrChar;
    9590extern int typeOfPtrUChar;
     
    144139
    145140
    146 // クラス管理用のクラス
    147 #include "Class.h"
    148 
    149141// 列挙体管理用のクラス
    150142#include "Enum.h"
     
    152144// 定数管理用のクラス
    153145#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>
    166146
    167147
     
    170150    char *FileName;
    171151    int line;
    172 };
    173 struct INCLUDEFILEINFO{
    174     char **ppFileNames;
    175     int FilesNum;
    176     int LineOfFile[MAX_LEN];
    177152};
    178153
     
    272247#include "../BasicCompiler_Common/DebugSection.h"
    273248#include "../BasicCompiler_Common/VariableOpe.h"
    274 #include <Exception.h>
    275249
    276250
     
    388362void SlideString(char *str,int slide);
    389363void 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);
    400364int GetCpFromLine(int LineNum);
    401365BOOL GetLineNum(int pos,int *pLine,char *FileName);
     
    435399int GetProc(char *name,void **ppInfo);
    436400void 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 );
    439401bool CallProc( int kind, const void *pProc, const char *fullCallName, const char *lpszParms, Type &resultType, bool isCallOn = true );
    440402bool CallPropertyMethod( const char *variable, const char *rightSide, Type &resultType);
     
    446408void DeleteDeclareInfo(void);
    447409int AddProcPtrInfo( const string &typeExpression, int nowLine );
    448 void DeleteProcPtrInfo(void);
    449410bool IsNeedProcCompile();
    450411
     
    452413void Opcode_Input(const char *Parameter);
    453414void Opcode_Print(const char *Parameter,BOOL bWrite);
    454 
    455 //LoopRefCheck.cpp
    456 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.cpp
    470 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;
    491415
    492416//error.cpp
     
    499423
    500424//Compile.cpp
    501 void ReallocNativeCodeBuffer();
    502425void GetIdentifierToken( char *token, const char *source, int &pos );
    503426int JumpStatement(const char *source, int &pos);
Note: See TracChangeset for help on using the changeset viewer.