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

Function msUpdateScalebarFromString

mapfile.c:4651–4674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4649}
4650
4651int msUpdateScalebarFromString(scalebarObj *scalebar, char *string, int url_string)
4652{
4653 if(!scalebar || !string) return MS_FAILURE;
4654
4655 msAcquireLock( TLOCK_PARSER );
4656
4657 if(url_string)
4658 msyystate = MS_TOKENIZE_URL_STRING;
4659 else
4660 msyystate = MS_TOKENIZE_STRING;
4661 msyystring = string;
4662 msyylex(); /* sets things up, but doesn't process any tokens */
4663
4664 msyylineno = 1; /* start at line 1 */
4665
4666 if(loadScalebar(scalebar) == -1) {
4667 msReleaseLock( TLOCK_PARSER );
4668 return MS_FAILURE; /* parse error */;
4669 }
4670 msReleaseLock( TLOCK_PARSER );
4671
4672 msyylex_destroy();
4673 return MS_SUCCESS;
4674}
4675
4676static void writeScalebar(FILE *stream, int indent, scalebarObj *scalebar)
4677{

Callers 2

msUpdateMapFromURLFunction · 0.85

Calls 4

msAcquireLockFunction · 0.85
loadScalebarFunction · 0.85
msReleaseLockFunction · 0.85
msyylex_destroyFunction · 0.85

Tested by

no test coverage detected