Changeset 14 in dev for BasicCompiler_Common/calculation.cpp
- Timestamp:
- Dec 10, 2006, 10:58:26 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/calculation.cpp
r11 r14 10 10 _int64 i64stack[255]; 11 11 12 bool IsNumberTopChar(char *buffer){ 13 int c = buffer[0]; 14 if('0' <= c && c <= '9') return true; 15 if(buffer[0] == '&' && (buffer[1] == 'h' || buffer[1] == 'H' || buffer[1] == 'o' || buffer[1] == 'O')) return true; 16 17 return false; 18 } 19 bool IsNumberChar(char c){ 20 if('0' <= c && c <= '9') return true; 21 if('a' <= c && c <= 'f') return true; 22 if('A' <= c && c <= 'F') return true; 23 24 return false; 25 } 12 26 BOOL IsJudgMark(char *Command,int p){ 13 27 if(Command[p]==1){
Note:
See TracChangeset
for help on using the changeset viewer.