** Load a integer from the map file. (see lexer.l) */
| 233 | ** Load a integer from the map file. (see lexer.l) |
| 234 | */ |
| 235 | int getInteger(int *i) { |
| 236 | if(msyylex() == MS_NUMBER) { |
| 237 | *i = (int)msyynumber; |
| 238 | return(0); /* success */ |
| 239 | } |
| 240 | |
| 241 | msSetError(MS_SYMERR, "Parsing error near (%s):(line %d)", "getInteger()", msyystring_buffer, msyylineno); |
| 242 | return(-1); |
| 243 | } |
| 244 | |
| 245 | int getCharacter(char *c) { |
| 246 | if(msyylex() == MS_STRING) { |
no test coverage detected