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

Function msUpdateReferenceMapFromString

mapfile.c:4167–4190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4165}
4166
4167int msUpdateReferenceMapFromString(referenceMapObj *ref, char *string, int url_string)
4168{
4169 if(!ref || !string) return MS_FAILURE;
4170
4171 msAcquireLock( TLOCK_PARSER );
4172
4173 if(url_string)
4174 msyystate = MS_TOKENIZE_URL_STRING;
4175 else
4176 msyystate = MS_TOKENIZE_STRING;
4177 msyystring = string;
4178 msyylex(); /* sets things up, but doesn't process any tokens */
4179
4180 msyylineno = 1; /* start at line 1 */
4181
4182 if(loadReferenceMap(ref, ref->map) == -1) {
4183 msReleaseLock( TLOCK_PARSER );
4184 return MS_FAILURE; /* parse error */;
4185 }
4186 msReleaseLock( TLOCK_PARSER );
4187
4188 msyylex_destroy();
4189 return MS_SUCCESS;
4190}
4191
4192static void writeReferenceMap(FILE *stream, int indent, referenceMapObj *ref)
4193{

Callers 2

msUpdateMapFromURLFunction · 0.85

Calls 4

msAcquireLockFunction · 0.85
loadReferenceMapFunction · 0.85
msReleaseLockFunction · 0.85
msyylex_destroyFunction · 0.85

Tested by

no test coverage detected