MCPcopy Index your code
hub / github.com/MapServer/MapServer / getSymbol

Function getSymbol

mapfile.c:166–186  ·  view source on GitHub ↗

** Checks symbol from lexer against variable length list of ** legal symbols. */

Source from the content-addressed store, hash-verified

164** legal symbols.
165*/
166int getSymbol(int n, ...) {
167 int symbol;
168 va_list argp;
169 int i=0;
170
171 symbol = msyylex();
172
173 va_start(argp, n);
174 while(i<n) { /* check each symbol in the list */
175 if(symbol == va_arg(argp, int)) {
176 va_end(argp);
177 return(symbol);
178 }
179 i++;
180 }
181
182 va_end(argp);
183
184 msSetError(MS_SYMERR, "Parsing error near (%s):(line %d)", "getSymbol()", msyystring_buffer, msyylineno);
185 return(-1);
186}
187
188/*
189** Get a string or symbol as a string. Operates like getString(), but also

Callers 15

loadColorFunction · 0.85
loadJoinFunction · 0.85
loadLabelFunction · 0.85
loadExpressionFunction · 0.85
loadExpressionStringFunction · 0.85
loadStyleFunction · 0.85
loadClassFunction · 0.85
loadLayerFunction · 0.85
loadReferenceMapFunction · 0.85
loadOutputFormatFunction · 0.85
loadLegendFunction · 0.85
loadScalebarFunction · 0.85

Calls 1

msSetErrorFunction · 0.85

Tested by

no test coverage detected