PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ yytnamerr()

static YYSIZE_T yytnamerr ( char *  yyres,
const char *  yystr 
)
static

Definition at line 1201 of file lwin_wkt_parse.c.

1202{
1203 if (*yystr == '"')
1204 {
1205 YYSIZE_T yyn = 0;
1206 char const *yyp = yystr;
1207
1208 for (;;)
1209 switch (*++yyp)
1210 {
1211 case '\'':
1212 case ',':
1213 goto do_not_strip_quotes;
1214
1215 case '\\':
1216 if (*++yyp != '\\')
1217 goto do_not_strip_quotes;
1218 /* Fall through. */
1219 default:
1220 if (yyres)
1221 yyres[yyn] = *yyp;
1222 yyn++;
1223 break;
1224
1225 case '"':
1226 if (yyres)
1227 yyres[yyn] = '\0';
1228 return yyn;
1229 }
1230 do_not_strip_quotes: ;
1231 }
1232
1233 if (! yyres)
1234 return yystrlen (yystr);
1235
1236 return yystpcpy (yyres, yystr) - yyres;
1237}
#define YYSIZE_T
static YYSIZE_T yystrlen(const char *yystr)
static char * yystpcpy(char *yydest, const char *yysrc)

References YYSIZE_T, yystpcpy(), and yystrlen().

Referenced by yysyntax_error().

Here is the call graph for this function:
Here is the caller graph for this function: