openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/build/lib/route/cls/ematch_syntax.c
static YYSIZE_T yytnamerr(char* yyres, const char* yystr)
{
    if (*yystr == '"')
    {
        YYSIZE_T yyn = 0;
        char const* yyp = yystr;

        for (;;)
            switch (*++yyp)
            {
                case '\'':
                case ',':
                    goto do_not_strip_quotes;

                case '\\':
                    if (*++yyp != '\\')
                        goto do_not_strip_quotes;
                    else
                        goto append;

                append:
                default:
                    if (yyres)
                        yyres[yyn] = *yyp;
                    yyn++;
                    break;

                case '"':
                    if (yyres)
                        yyres[yyn] = '\0';
                    return yyn;
            }
    do_not_strip_quotes:;
    }

    if (!yyres)
        return yystrlen(yystr);

    return (YYSIZE_T)(yystpcpy(yyres, yystr) - yyres);
}
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
   quotes and backslashes, so that it's suitable for yyerror.  The
   heuristic is that double-quoting is unnecessary unless the string
   contains an apostrophe, a comma, or backslash (other than
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
   null, do not copy; instead, return the length of what the result
   would have been.  */
Copy to YYRES the contents of YYSTR after stripping away unnecessary
quotes and backslashes, so that it's suitable for yyerror.  The
heuristic is that double-quoting is unnecessary unless the string
contains an apostrophe, a comma, or backslash (other than
backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
null, do not copy; instead, return the length of what the result
would have been.
Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes so that it ' s suitable for yyerror . The heuristic is that double - quoting is unnecessary unless the string contains an apostrophe a comma or backslash ( other than backslash - backslash ) . YYSTR is taken from yytname . If YYRES is null do not copy ; instead return the length of what the result would have been .
static YYSIZE_T yytnamerr(char* yyres, const char* yystr)
{
    if (*yystr == '"')
    {
        YYSIZE_T yyn = 0;
        char const* yyp = yystr;
        for (;;)
            switch (*++yyp)
            {
                case '\'':
                case ',':
                    goto do_not_strip_quotes;
                case '\\':
                    if (*++yyp != '\\')
                        goto do_not_strip_quotes;
                    else
                        goto append;
                append:
                default:
                    if (yyres)
                        yyres[yyn] = *yyp;
                    yyn++;
                    break;
                case '"':
                    if (yyres)
                        yyres[yyn] = '\0';
                    return yyn;
            }
    do_not_strip_quotes:;
    }
    if (!yyres)
        return yystrlen(yystr);
    return (YYSIZE_T)(yystpcpy(yyres, yystr) - yyres);
}
static YYSIZE_T yytnamerr ( char * yyres , const char * yystr ) { if ( * yystr == ' ' ) { YYSIZE_T yyn = 0 ; char const * yyp = yystr ; for ( ; ; ) switch ( * ++ yyp ) { case ' \' ' : case ' ' : goto do_not_strip_quotes ; case ' \\ ' : if ( * ++ yyp != ' \\ ' ) goto do_not_strip_quotes ; else goto append ; append : default : if ( yyres ) yyres [ yyn ] = * yyp ; yyn ++ ; break ; case ' ' : if ( yyres ) yyres [ yyn ] = ' \0 ' ; return yyn ; } do_not_strip_quotes : ; } if ( ! yyres ) return yystrlen ( yystr ) ; return ( YYSIZE_T ) ( yystpcpy ( yyres , yystr ) - yyres ) ; }
Copy to YYRES the contents of YYSTR after stripping away unnecessary
quotes and backslashes, so that it's suitable for yyerror.
Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes so that it ' s suitable for yyerror .