Changeset 75 in dev for BasicCompiler_Common/CommandFormat.cpp
- Timestamp:
- Mar 20, 2007, 4:36:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/CommandFormat.cpp
r4 r75 1 1 #include "common.h" 2 2 3 void ComOpen(char *Parameter,char *buffer,int NowLine){3 void ComOpen(char *Parameter,char *buffer,int nowLine){ 4 4 int i,i2,IsStr; 5 5 char temporary[255]; … … 26 26 for(i2=0;;i++,i2++){ 27 27 if(Parameter[i]=='\0'){ 28 SetError(1,NULL, NowLine);28 SetError(1,NULL,nowLine); 29 29 return; 30 30 } … … 39 39 else if(lstrcmpi(temporary,"append")==0) lstrcat(buffer,",3"); 40 40 else{ 41 SetError(1,NULL, NowLine);41 SetError(1,NULL,nowLine); 42 42 return; 43 43 } … … 63 63 } 64 64 65 void ComLine(char *Parameter,char *buffer,int NowLine){65 void ComLine(char *Parameter,char *buffer,int nowLine){ 66 66 int i,i2,PareNum; 67 67 char temporary[VN_SIZE],temp2[VN_SIZE]; … … 75 75 else{ 76 76 if(Parameter[0]!='('){ 77 SetError(10,"Line", NowLine);77 SetError(10,"Line",nowLine); 78 78 return; 79 79 } … … 93 93 94 94 if(Parameter[i+1]!='-'){ 95 SetError(10,"Line", NowLine);95 SetError(10,"Line",nowLine); 96 96 return; 97 97 } … … 107 107 108 108 if(Parameter[i]!='('){ 109 SetError(10,"Line", NowLine);109 SetError(10,"Line",nowLine); 110 110 return; 111 111 } … … 129 129 } 130 130 else if(Parameter[i+1]!=','){ 131 SetError(10,"Line", NowLine);131 SetError(10,"Line",nowLine); 132 132 return; 133 133 } … … 147 147 else if(lstrcmpi(temporary,"bf")==0) lstrcat(buffer,",2"); 148 148 else{ 149 SetError(10,"Line", NowLine);149 SetError(10,"Line",nowLine); 150 150 return; 151 151 } … … 158 158 i=GetOneParameter(Parameter,i,temporary); //第7パラメータ取得 159 159 if(Parameter[i-1]==','){ 160 SetError(10,"Line", NowLine);160 SetError(10,"Line",nowLine); 161 161 return; 162 162 } … … 165 165 lstrcat(buffer,temporary); 166 166 } 167 void ComCircle(char *Parameter,char *buffer,int NowLine){167 void ComCircle(char *Parameter,char *buffer,int nowLine){ 168 168 int i,i2,PareNum; 169 169 char temporary[VN_SIZE],temp2[VN_SIZE]; … … 172 172 173 173 if(Parameter[0]!='('){ 174 SetError(10,"Circle", NowLine);174 SetError(10,"Circle",nowLine); 175 175 return; 176 176 } … … 189 189 i++; 190 190 if(Parameter[i]!=','){ 191 SetError(10,"Circle", NowLine);191 SetError(10,"Circle",nowLine); 192 192 return; 193 193 } … … 241 241 } 242 242 else{ 243 SetError(10,"Circle", NowLine);243 SetError(10,"Circle",nowLine); 244 244 return; 245 245 } … … 251 251 lstrcat(buffer,temporary); 252 252 if(Parameter[i-1]==','){ 253 SetError(10,"Circle", NowLine);253 SetError(10,"Circle",nowLine); 254 254 return; 255 255 } … … 260 260 } 261 261 } 262 void ComPSet(char *Parameter,char *buffer,int NowLine){262 void ComPSet(char *Parameter,char *buffer,int nowLine){ 263 263 int i,i2,PareNum; 264 264 … … 266 266 267 267 if(Parameter[0]!='('){ 268 SetError(10,"PSet", NowLine);268 SetError(10,"PSet",nowLine); 269 269 return; 270 270 } … … 284 284 else if(Parameter[i+1]=='\0') lstrcat(buffer,",7"); 285 285 else{ 286 SetError(10,"PSet", NowLine);287 return; 288 } 289 } 290 void ComPaint(char *Parameter,char *buffer,int NowLine){286 SetError(10,"PSet",nowLine); 287 return; 288 } 289 } 290 void ComPaint(char *Parameter,char *buffer,int nowLine){ 291 291 int i,i2,PareNum; 292 292 … … 294 294 295 295 if(Parameter[0]!='('){ 296 SetError(10,"Paint", NowLine);296 SetError(10,"Paint",nowLine); 297 297 return; 298 298 } … … 309 309 } 310 310 if(Parameter[i+1]!=','){ 311 SetError(10,"Paint", NowLine);311 SetError(10,"Paint",nowLine); 312 312 return; 313 313 }
Note:
See TracChangeset
for help on using the changeset viewer.