Overview
Comment: | Correct parsing instruction names beginning with a plus and minus sign. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
547bf4ed869790309167059d7dadb216 |
User & Date: | user on 2022-02-04 06:56:51 |
Other Links: | manifest | tags |
Context
2022-02-04
| ||
07:33 | Correct some mistakes in the implementation and documentation of deferred movement. check-in: b8f6f2d21d user: user tags: trunk | |
06:56 | Correct parsing instruction names beginning with a plus and minus sign. check-in: 547bf4ed86 user: user tags: trunk | |
2022-01-29
| ||
05:55 | Implement the Sound instruction. (There are still a few problems such as clicks at the end of some sound effects, and a few problems with the sound test menu. However, it mostly works, now.) check-in: d15195a921 user: user tags: trunk | |
Changes
Modified class.c from [5513be6ecd] to [607928bef0].
︙ | ︙ | |||
502 503 504 505 506 507 508 | if(c=='0' && tokenstr[1]=='x') { tokenv=strtol(tokenstr+2,&e,16); } else if(c=='0' && tokenstr[1]=='o') { tokenv=strtol(tokenstr+2,&e,8); } else { tokenv=strtol(tokenstr+n,&e,10); } | | | 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 | if(c=='0' && tokenstr[1]=='x') { tokenv=strtol(tokenstr+2,&e,16); } else if(c=='0' && tokenstr[1]=='o') { tokenv=strtol(tokenstr+2,&e,8); } else { tokenv=strtol(tokenstr+n,&e,10); } if(e && *e) goto norm; if(c=='-') tokenv=-tokenv; } else { static Op_Names key={tokenstr}; const Op_Names*op; norm: op=bsearch(&key,op_names,N_OP_NAMES,sizeof(Op_Names),name_compar); if(!op) ParseError("Invalid token: %s\n",tokenstr); |
︙ | ︙ |