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

Function msUpdateWebFromString

mapfile.c:4977–5000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4975}
4976
4977int msUpdateWebFromString(webObj *web, char *string, int url_string)
4978{
4979 if(!web || !string) return MS_FAILURE;
4980
4981 msAcquireLock( TLOCK_PARSER );
4982
4983 if(url_string)
4984 msyystate = MS_TOKENIZE_URL_STRING;
4985 else
4986 msyystate = MS_TOKENIZE_STRING;
4987 msyystring = string;
4988 msyylex(); /* sets things up, but doesn't process any tokens */
4989
4990 msyylineno = 1; /* start at line 1 */
4991
4992 if(loadWeb(web, web->map) == -1) {
4993 msReleaseLock( TLOCK_PARSER );
4994 return MS_FAILURE; /* parse error */;
4995 }
4996 msReleaseLock( TLOCK_PARSER );
4997
4998 msyylex_destroy();
4999 return MS_SUCCESS;
5000}
5001
5002/*
5003** Initialize, load and free a mapObj structure

Callers 2

msUpdateMapFromURLFunction · 0.85
webObj_updateFromStringFunction · 0.85

Calls 4

msAcquireLockFunction · 0.85
loadWebFunction · 0.85
msReleaseLockFunction · 0.85
msyylex_destroyFunction · 0.85

Tested by

no test coverage detected