Changeset 206 in dev for trunk/abdev/BasicCompiler_Common/common.h
- Timestamp:
- Jul 12, 2007, 2:58:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/common.h
r182 r206 1 #pragma once 2 1 3 //#define _CRT_SECURE_NO_DEPRECATE 2 4 #pragma warning(disable : 4996) 3 5 4 6 #include <option.h> 5 6 #include <windows.h>7 #include <stdio.h>8 #include <string.h>9 #include <math.h>10 #include <commctrl.h>11 #include <time.h>12 #include <limits.h>13 #include <shlobj.h>14 #include <vector>15 #include <string>16 #include <fstream>17 18 //boost libraries19 #include <boost/foreach.hpp>20 7 21 8 using namespace std; … … 33 20 #endif 34 21 35 #include "../BasicCompiler_Common/BasicFixed.h"22 #include <jenga/include/smoothie/BasicFixed.h> 36 23 #include "../BasicCompiler_Common/NonVolatile.h" 37 24 #include "../BasicCompiler_Common/psapi.h" … … 139 126 140 127 141 // 列挙体管理用のクラス142 #include "Enum.h"143 144 // 定数管理用のクラス145 #include "Const.h"146 147 148 128 149 129 struct ERRORINFO{ … … 157 137 LONG_PTR offset; 158 138 BOOL bOffsetOffset; 159 };160 161 struct CONSTINFO{162 char *name;163 char *StrValue;164 165 double DblValue;166 _int64 i64Value;167 int type;168 LONG_PTR lpIndex;169 170 int ParmNum;171 char **ppParm;172 173 CONSTINFO *pNextData;174 139 }; 175 140 … … 245 210 246 211 #include "../BasicCompiler_Common/PESchedule.h" 247 #include "../BasicCompiler_Common/DebugSection.h"248 212 #include "../BasicCompiler_Common/VariableOpe.h" 249 213 … … 268 232 //hash.cpp 269 233 int hash_default(const char *name); 270 CONSTINFO *GetConstHash(const char *name);271 234 DllProc *GetDeclareHash(char *name); 272 void GetOverloadSubHash( const char *lpszName, std::vector< UserProc *> &subs );273 UserProc *GetSubHash(const char *name,BOOL bError=0);274 UserProc *GetMethodHash(const char *ObjectName,const char *MethodName,const char *Parameter,BOOL bError=0);275 UserProc *GetClassMethod( const char *className, const char *methodName );235 void GetOverloadSubHash( const char *lpszName, std::vector<const UserProc *> &subs ); 236 const UserProc *GetSubHash(const char *name,BOOL bError=0); 237 const UserProc *GetMethodHash(const char *ObjectName,const char *MethodName,const char *Parameter,BOOL bError=0); 238 const UserProc *GetClassMethod( const char *className, const char *methodName ); 276 239 277 240 //Object.cpp 278 void CallConstructor( const char *ObjectName,const int *SubScripts, const Type &type,const char *Parameter);241 void CallConstructor( const char *ObjectName,const Subscripts &subscripts, const Type &type,const char *Parameter); 279 242 bool Operator_New( const char *expression, const Type &baseType, Type &resultType ); 280 243 281 244 //Overload.sbp 282 UserProc *OverloadSolutionWithStrParam( 245 class Parameters; 246 const UserProc *OverloadSolutionWithStrParam( 283 247 const char *name, 284 std::vector< UserProc *> &subs,248 std::vector<const UserProc *> &subs, 285 249 const char *Parameter, 286 250 const char *ObjectName); 287 UserProc *OverloadSolution(251 const UserProc *OverloadSolution( 288 252 const char *name, 289 std::vector< UserProc *> &subs,253 std::vector<const UserProc *> &subs, 290 254 const Parameters ¶ms, 291 255 const Type &returnType ); … … 298 262 void Debugger_Pause(void); 299 263 ULONG_PTR rva_to_real(DWORD p); 300 GlobalProc *GetSubFromObp(ULONG_PTR pos);264 UserProc *GetSubFromObp(ULONG_PTR pos); 301 265 void ReadOpBuffer(); 302 266 void DebugProgram(void); … … 310 274 ULONG_PTR Debugging_GetVarPtr(RELATIVE_VAR *pRelativeVar); 311 275 ULONG_PTR Debugging_GetThisPtrOffset(LONG_PTR obp_Rip); 312 int Debugging_GetVarOffset( char *variable,RELATIVE_VAR *pRelativeVar, Type &resultType, int *pss);276 int Debugging_GetVarOffset( char *variable,RELATIVE_VAR *pRelativeVar, Type &resultType, Subscripts *pResultSubscripts = NULL ); 313 277 314 278 //MakeExe.cpp 315 279 void StepCompileProgress(void); 316 void DeleteConstInfo(CONSTINFO **ppConstHash);317 280 void DeleteDeclareInfo(void); 318 281 void AddSourceCode(char *buffer); … … 366 329 char GetEndXXXCommand(char es); 367 330 void GetDefaultNameFromES(char es,char *name); 368 void GetCalcName(int idCalc,char *name);331 const std::string &FormatEscapeSequenceStringToDefaultString( const std::string &source ); 369 332 BOOL IsFile(char *path); 370 333 BOOL ShortPathToLongPath(char ShortPath[MAX_PATH],char *LongPath); … … 382 345 int NeutralizationType(int type1,LONG_PTR index1,int type2,LONG_PTR index2); 383 346 DWORD GetLiteralValue(char *value,_int64 *pi64,int BaseType); 384 BOOL GetConstCalcBuffer(const char *name,const char *Parameter,char *pCalcBuffer);385 DWORD GetConstValue(char *name,double *dbl,char *buffer,LONG_PTR *plpIndex);386 347 int IsStrCalculation(char *Command); 387 348 BYTE GetCalcId(const char *Command,int *pi); … … 403 364 bool GetReturnTypeOfPropertyMethod( const char *variable, const char *rightSide, Type &resultType ); 404 365 bool GetReturnTypeOfIndexerGetterProc( const CClass &objClass, Type &resultType ); 405 GlobalProc *AddSubData( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, char *buffer,int nowLine,bool isVirtual,CClass *pobj_c, bool isStatic = false );406 void GetSubInfo(void);407 void DeleteSubInfo(GlobalProc **ppSubHash,char **ppMacroNames,int MacroNum);408 366 void DeleteDeclareInfo(void); 409 367 int AddProcPtrInfo( const string &typeExpression, int nowLine );
Note:
See TracChangeset
for help on using the changeset viewer.