wsgram.c

来自「The Kannel Open Source WAP and SMS gatew」· C语言 代码 · 共 1,964 行 · 第 1/5 页

C
1,964
字号
     243,    45,    71,   244,   229,   230,    72,    73,   235,   157,     140,    74,    75,   251,    50,    76,    77,   140,   255,   256,     238,   157,    53,   140,    54,   140,    58,    56,    62,    63,      64,    65,    66,    67,    68,   231,   232,    69,    70,   225,     226,   227,   228,   223,   224,    71,    57,    61,   112,    72,      73,   133,    78,    79,    74,    75,   134,   147,    76,    77,     148,   135,   136,   146,   160,   162,   195,   161,    80,    81,     154,   196,    59,   -51,   163,    62,    63,    64,    65,    66,      67,    68,    82,    83,   200,   201,   157,    84,    85,   128,     143,   248,   234,   239,   247,    78,    79,    73,   249,   253,      19,   254,    75,    20,   237,    60,   236,   233,   208,   210,     212,    80,    81,   211,   213,    59,   -52,    62,    63,    64,      65,    66,    67,    68,     0,    82,    83,     0,     0,     0,      84,    85,     0,     0,     0,     0,     0,     0,     0,    73,       0,     0,    78,    79,    75,     0,     0,   197,     0,    62,      63,    64,    65,    66,    67,   137,     0,     0,     0,    81,     191,    62,    63,    64,    65,    66,    67,    68,     0,     0,       0,    73,    82,    83,     0,     0,    75,    84,    85,     0,       0,     0,     0,    73,    78,    79,     0,     0,    75,     0,       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,       0,    81,     0,     0,     0,   114,     0,     0,     0,     0,       0,     0,     0,     0,    82,    83,    78,    79,     0,    84,      85,     0,     0,     0,     0,     0,     0,     0,    78,    79,       0,     0,     0,    81,     0,     0,     0,     0,     0,     0,       0,     0,     0,     0,     0,    81,    82,    83,     0,     0,       0,    84,    85,     0,     0,     0,     0,     0,    82,    83,     115,   116,     0,    84,    85,   117,   118,   119,   120,   121,     122,   123,   124,   125,   126,   127,     0,   128,     0,     0,       0,     0,   129,     0,     0,     0,     0,     0,     0,     0,       0,     0,     0,     0,     0,     0,     0,   130,   131};static const short yycheck[] ={      74,   135,     1,    86,    89,   114,    89,    81,   117,   118,     119,   120,   121,   122,   123,   124,   125,   126,   127,   128,     129,    69,     9,     1,     7,     3,     4,     5,     6,     7,       8,     9,    70,    71,    12,    13,     1,    20,    10,     0,      65,    66,    20,    86,     9,    93,    24,    25,   157,    87,     159,    29,    30,    16,    26,    33,    34,    19,    14,    21,       1,   135,   136,    35,     1,    28,     9,    38,     0,   107,     108,    42,   146,    98,    99,     8,    64,    23,    19,    67,      21,    27,    19,    21,    21,    86,    32,    73,    89,    75,      31,    90,    70,    71,    31,     8,    82,    83,    84,    85,     234,   166,   167,   168,   169,   100,   101,   241,    86,    87,      18,    86,    90,   247,    89,   249,     8,    72,    73,    74,      11,   230,   100,   101,   170,   171,   172,   105,   106,     8,     239,    88,    89,     1,    87,     3,     4,     5,     6,     7,       8,     9,   164,   165,    12,    13,   102,   103,   104,     8,     235,    28,    20,   238,    88,    89,    24,    25,    88,    89,     234,    29,    30,   248,     9,    33,    34,   241,   253,   254,      88,    89,     8,   247,     8,   249,     1,    88,     3,     4,       5,     6,     7,     8,     9,   195,   196,    12,    13,   175,     176,   177,   178,   173,   174,    20,    89,     9,    86,    24,      25,    86,    70,    71,    29,    30,    86,     9,    33,    34,       9,    87,    87,    87,    68,    96,     9,    95,    86,    87,      91,     9,    90,    91,    97,     3,     4,     5,     6,     7,       8,     9,   100,   101,    86,    92,    89,   105,   106,    87,       9,    17,    86,    94,    86,    70,    71,    25,    86,    88,       5,    88,    30,     5,   204,    56,   201,   197,   158,   160,     162,    86,    87,   161,   163,    90,    91,     3,     4,     5,       6,     7,     8,     9,    -1,   100,   101,    -1,    -1,    -1,     105,   106,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    25,      -1,    -1,    70,    71,    30,    -1,    -1,    33,    -1,     3,       4,     5,     6,     7,     8,     9,    -1,    -1,    -1,    87,      88,     3,     4,     5,     6,     7,     8,     9,    -1,    -1,      -1,    25,   100,   101,    -1,    -1,    30,   105,   106,    -1,      -1,    -1,    -1,    25,    70,    71,    -1,    -1,    30,    -1,      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,      -1,    87,    -1,    -1,    -1,    15,    -1,    -1,    -1,    -1,      -1,    -1,    -1,    -1,   100,   101,    70,    71,    -1,   105,     106,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    70,    71,      -1,    -1,    -1,    87,    -1,    -1,    -1,    -1,    -1,    -1,      -1,    -1,    -1,    -1,    -1,    87,   100,   101,    -1,    -1,      -1,   105,   106,    -1,    -1,    -1,    -1,    -1,   100,   101,      70,    71,    -1,   105,   106,    75,    76,    77,    78,    79,      80,    81,    82,    83,    84,    85,    -1,    87,    -1,    -1,      -1,    -1,    92,    -1,    -1,    -1,    -1,    -1,    -1,    -1,      -1,    -1,    -1,    -1,    -1,    -1,    -1,   107,   108};/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing   symbol of state STATE-NUM.  */static const unsigned char yystos[] ={       0,     1,    19,    31,   110,   111,   112,   126,   127,   128,      10,    26,    35,   113,   114,   115,   117,     0,     1,   112,     126,   127,    21,    16,    28,   116,    23,    27,    32,   118,     119,   120,   121,     9,    86,     9,     8,     8,    18,     8,     122,   123,    11,     8,    87,    28,   122,     8,   124,   122,       9,   129,   131,     8,     8,   125,    88,    89,     1,    90,     133,     9,     3,     4,     5,     6,     7,     8,     9,    12,      13,    20,    24,    25,    29,    30,    33,    34,    70,    71,      86,    87,   100,   101,   105,   106,   132,   133,   134,   135,     136,   140,   141,   142,   143,   145,   146,   147,   148,   149,     150,   151,   152,   153,   154,   155,   156,   157,   158,   159,     160,   161,    86,   130,    15,    70,    71,    75,    76,    77,      78,    79,    80,    81,    82,    83,    84,    85,    87,    92,     107,   108,   162,    86,    86,    87,    87,     9,   158,   144,     145,   158,     1,     9,   137,   138,    87,     9,     9,   145,     158,   158,   158,   158,    91,   132,    86,    89,    69,    93,      68,    95,    96,    97,    64,    67,    65,    66,    98,    99,      72,    73,    74,   100,   101,    14,   102,   103,   104,   146,     146,   146,   146,   146,   146,   146,   146,   146,   146,   146,     146,    88,   146,   163,   146,     9,     9,    33,   144,   145,      86,    92,   139,    86,    89,   145,    88,   146,   149,   146,     150,   151,   152,   153,   154,   154,   155,   155,   155,   155,     156,   156,   156,   157,   157,   158,   158,   158,   158,    88,      89,   162,   162,   137,    86,    88,   147,   138,    88,    94,     146,    86,   144,   132,   132,   146,   144,    86,    17,    86,     144,   132,   144,    88,    88,   132,   132};#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)# define YYSIZE_T __SIZE_TYPE__#endif#if ! defined (YYSIZE_T) && defined (size_t)# define YYSIZE_T size_t#endif#if ! defined (YYSIZE_T)# if defined (__STDC__) || defined (__cplusplus)#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */#  define YYSIZE_T size_t# endif#endif#if ! defined (YYSIZE_T)# define YYSIZE_T unsigned int#endif#define yyerrok		(yyerrstatus = 0)#define yyclearin	(yychar = YYEMPTY)#define YYEMPTY		(-2)#define YYEOF		0#define YYACCEPT	goto yyacceptlab#define YYABORT		goto yyabortlab#define YYERROR		do				\			  {				\			    yylerrsp = yylsp;		\			    *++yylerrsp = yyloc;	\			    goto yyerrlab1;		\			  }				\			while (0)/* Like YYERROR except do call yyerror.  This remains here temporarily   to ease the transition to the new meaning of YYERROR, for GCC.   Once GCC version 2 has supplanted version 1, this can go.  */#define YYFAIL		goto yyerrlab#define YYRECOVERING()  (!!yyerrstatus)#define YYBACKUP(Token, Value)					\do								\  if (yychar == YYEMPTY && yylen == 1)				\    {								\      yychar = (Token);						\      yylval = (Value);						\      yytoken = YYTRANSLATE (yychar);				\      YYPOPSTACK;						\      goto yybackup;						\    }								\  else								\    { 								\      yyerror ("syntax error: cannot back up");\      YYERROR;							\    }								\while (0)#define YYTERROR	1#define YYERRCODE	256/* YYLLOC_DEFAULT -- Compute the default location (before the actions   are run).  */#ifndef YYLLOC_DEFAULT# define YYLLOC_DEFAULT(Current, Rhs, N)         \  Current.first_line   = Rhs[1].first_line;      \  Current.first_column = Rhs[1].first_column;    \  Current.last_line    = Rhs[N].last_line;       \  Current.last_column  = Rhs[N].last_column;#endif/* YYLEX -- calling `yylex' with the right arguments.  */#ifdef YYLEX_PARAM# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)#else# define YYLEX yylex (&yylval, &yylloc)#endif/* Enable debugging if requested.  */#if YYDEBUG# ifndef YYFPRINTF#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */#  define YYFPRINTF fprintf# endif# define YYDPRINTF(Args)			\do {						\  if (yydebug)					\    YYFPRINTF Args;				\} while (0)# define YYDSYMPRINT(Args)			\do {						\  if (yydebug)					\    yysymprint Args;				\} while (0)# define YYDSYMPRINTF(Title, Token, Value, Location)		\do {								\  if (yydebug)							\    {								\      YYFPRINTF (stderr, "%s ", Title);				\      yysymprint (stderr, 					\                  Token, Value, Location);	\      YYFPRINTF (stderr, "\n");					\    }								\} while (0)/*------------------------------------------------------------------.| yy_stack_print -- Print the state stack from its BOTTOM up to its || TOP (cinluded).                                                   |`------------------------------------------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidyy_stack_print (short *bottom, short *top)#elsestatic voidyy_stack_print (bottom, top)    short *bottom;    short *top;#endif{  YYFPRINTF (stderr, "Stack now");  for (/* Nothing. */; bottom <= top; ++bottom)    YYFPRINTF (stderr, " %d", *bottom);  YYFPRINTF (stderr, "\n");}# define YY_STACK_PRINT(Bottom, Top)				\do {								\  if (yydebug)							\    yy_stack_print ((Bottom), (Top));				\} while (0)/*------------------------------------------------.| Report that the YYRULE is going to be reduced.  |`------------------------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidyy_reduce_print (int yyrule)#elsestatic voidyy_reduce_print (yyrule)    int yyrule;#endif{  int yyi;  unsigned int yylineno = yyrline[yyrule];  YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",             yyrule - 1, yylineno);  /* Print the symbols being reduced, and their result.  */  for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)    YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);  YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);}# define YY_REDUCE_PRINT(Rule)		\do {					\  if (yydebug)				\    yy_reduce_print (Rule);		\} while (0)/* Nonzero means print parse trace.  It is left uninitialized so that   multiple parsers can coexist.  */int yydebug;#else /* !YYDEBUG */# define YYDPRINTF(Args)# define YYDSYMPRINT(Args)# define YYDSYMPRINTF(Title, Token, Value, Location)# define YY_STACK_PRINT(Bottom, Top)# define YY_REDUCE_PRINT(Rule)#endif /* !YYDEBUG *//* YYINITDEPTH -- initial size of the parser's stacks.  */#ifndef	YYINITDEPTH# define YYINITDEPTH 200#endif/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only   if the built-in stack extension method is used).   Do not make this value too large; the results are undefined if   SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)   evaluated with infinite-precision integer arithmetic.  */#if YYMAXDEPTH == 0# undef YYMAXDEPTH#endif#ifndef YYMAXDEPTH# define YYMAXDEPTH 10000#endif#if YYERROR_VERBOSE# ifndef yystrlen#  if defined (__GLIBC__) && defined (_STRING_H)#   define yystrlen strlen#  else/* Return the length of YYSTR.  */static YYSIZE_T#   if defined (__STDC__) || defined (__cplusplus)yystrlen (const char *yystr)#   elseyystrlen (yystr)     const char *yystr;#   endif{  register const char *yys = yystr;  while (*yys++ != '\0')    continue;  return yys - yystr - 1;}#  endif# endif# ifndef yystpcpy#  if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)#   define yystpcpy stpcpy#  else/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in   YYDEST.  */static char *#   if defined (__STDC__) || defined (__cplusplus)yystpcpy (char *yydest, const char *yysrc)#   elseyystpcpy (yydest, yysrc)     char *yydest;     const char *yysrc;#   endif{  register char *yyd = yydest;  register const char *yys = yysrc;  while ((*yyd++ = *yys++) != '\0')    continue;  return yyd - 1;}#  endif# endif#endif /* !YYERROR_VERBOSE */#if YYDEBUG/*--------------------------------.| Print this symbol on YYOUTPUT.  |`--------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidyysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)#elsestatic voidyysymprint (yyoutput, yytype, yyvaluep, yylocationp)    FILE *yyoutput;    int yytype;    YYSTYPE *yyvaluep;    YYLTYPE *yylocationp;#endif{  /* Pacify ``unused variable'' warnings.  */  (void) yyvaluep;  (void) yylocationp;  if (yytype < YYNTOKENS)    {      YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?