⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ael_lex.c

📁 Asterisk-1.4.4最新内核源代码
💻 C
📖 第 1 页 / 共 5 页
字号:
    {   0,        0,    0,   39,   42,   81,  120,  159,  198,   47,   54,      310,  985,  307,  985,  304,    0,  276,  985,  985,  985,      985,   42,  985,  985,  289,  985,  281,  265,   31,  276,       32,  265,   33,  270,   45,  258,  276,  272,   48,  251,      263,  985,  985,  985,   73,  985,  985,   89,  985,  237,      985,  985,  985,  276,  315,  985,  985,  985,  354,  985,      289,  985,   66,  288,  285,    0,  252,    0,  401,  985,      247,  256,   64,  245,  252,  239,  235,  238,  239,  234,      238,  254,  236,  246,  235,  244,  227,  231,   47,  235,      234,  103,  985,  985,  137,  985,  142,  176,  181,  439,      985,  985,  985,  478,  517,  556,  595,  634,  985,  985,      985,  673,  985,  712,  751,  790,  829,  261,  985,  103,      985,  104,  985,  238,    0,  876,  221,  238,  233,  231,      214,  231,  226,  220,    0,  226,  212,  207,  213,  205,      207,  202,  200,  197,  211,  209,  193,  193,  199,  198,      192,  197,    0,  199,  100,  185,    0,  184,  201,    0,        0,  187,  178,  174,    0,  178,  187,  176,  168,  172,      184,  178,  158,  176,    0,    0,  151,  158,  159,  167,      154,  156,  151,  151,    0,  137,  140,  132,  130,  131,        0,  134,  131,  114,  112,  112,  119,  105,    0,  106,      116,  103,    0,  111,    0,  110,  106,   91,    0,   95,        0,   94,    0,   96,   68,    0,   64,   57,   76,    0,        0,   52,   44,    0,    0,    0,  168,    0,    0,    0,       50,  985,  985,  922,  927,  932,  937,  940,  945,  950,      955,  960,  964,  969,  974,  979    } ;static yyconst flex_int16_t yy_def[247] =    {   0,      233,    1,  234,  234,  235,  235,  236,  236,  237,  237,      233,  233,  233,  233,  233,  238,  238,  233,  233,  233,      233,  238,  233,  233,  233,  233,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  233,  233,  233,  239,  233,  233,  239,  233,  240,      233,  233,  233,  240,  241,  233,  233,  233,  241,  233,      242,  233,  243,  233,  233,  238,  238,  238,  244,  233,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  239,  233,  233,  239,  233,  239,  239,  239,  240,      233,  233,  233,  240,  240,  240,  240,  241,  233,  233,      233,  241,  233,  241,  241,  241,  241,  242,  233,  243,      233,  243,  233,  238,  245,  244,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,      238,  238,  238,  238,  238,  238,  233,  238,  238,  246,      246,  233,    0,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233    } ;static yyconst flex_int16_t yy_nxt[1033] =    {   0,       12,   13,   14,   15,   16,   16,   17,   18,   19,   20,       16,   21,   22,   23,   24,   25,   16,   26,   16,   16,       12,   16,   27,   28,   29,   30,   31,   32,   33,   34,       35,   36,   16,   16,   37,   16,   16,   38,   39,   40,       16,   16,   41,   16,   42,   43,   44,   46,   47,   62,       46,   47,   68,   73,   69,  232,   62,   63,   46,   48,       49,   46,   48,   49,   63,   76,   79,   74,  121,   80,       88,   77,   82,   83,   89,  146,  122,  227,  123,  227,       84,   93,   94,   46,  229,   49,   46,  147,   49,   51,       52,  228,   93,   95,   96,   53,  226,   97,   98,  225,       51,   54,   52,  129,  130,  121,  121,  224,   97,   95,       99,   93,   94,  233,  122,  233,  233,   93,  223,   96,      222,  221,   93,   95,   96,   51,  177,   52,   51,   52,      178,  220,  219,   97,   53,   99,  218,  217,  216,   51,       54,   52,  215,  214,  213,   97,   98,   93,  212,   96,       93,   94,  211,  210,  209,  208,   97,   95,   99,  207,      206,   93,   95,   96,   51,  205,   52,   56,   57,  227,       58,  227,  204,  230,  203,  202,  201,  200,   56,   59,       60,   97,  199,   99,   93,   94,   93,  198,   96,   93,       94,  197,  196,  195,  194,   93,   95,   96,  193,  192,       93,   95,   96,   56,  191,   60,   56,   57,  190,   58,      189,  188,  187,  186,  185,  184,  183,   56,   59,   60,       93,  182,   96,  181,  180,   93,  179,   96,  176,  175,      174,  173,  172,  171,  170,  169,  168,  167,  166,  165,      164,  163,   56,  162,   60,  101,  102,  161,  160,  159,      158,  103,  157,  156,  155,  154,  101,  104,  102,  153,      152,  151,  150,  119,  149,  148,  145,  144,  143,  142,      141,  140,  139,  138,  137,  136,  135,  134,  133,  132,      131,  101,  128,  102,  105,  106,  127,  124,   65,   64,      107,  119,   91,   90,   87,  105,  104,  106,   86,   85,       81,   78,   75,   72,   71,   70,   67,   65,   64,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      105,  233,  106,  109,  110,  233,  111,  233,  233,  233,      233,  233,  233,  233,  109,  112,  113,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  109,      233,  113,  114,  115,  233,  116,  233,  233,  233,  233,      233,  233,  233,  114,  112,  117,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  114,  233,      117,  125,  125,  233,  125,  233,  233,  233,  125,  125,      125,  233,  125,  233,  125,  125,  125,  233,  125,  233,      233,  125,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  125,  101,  102,  233,      233,  233,  233,  103,  233,  233,  233,  233,  101,  104,      102,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  101,  233,  102,  105,  106,  233,  233,      233,  233,  107,  233,  233,  233,  233,  105,  104,  106,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  105,  233,  106,  101,  102,  233,  233,  233,      233,  103,  233,  233,  233,  233,  101,  104,  102,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  101,  233,  102,  101,  102,  233,  233,  233,  233,      103,  233,  233,  233,  233,  101,  104,  102,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      101,  233,  102,  101,  102,  233,  233,  233,  233,  103,      233,  233,  233,  233,  101,  104,  102,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  101,      233,  102,  109,  110,  233,  111,  233,  233,  233,  233,      233,  233,  233,  109,  112,  113,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  109,  233,      113,  114,  115,  233,  116,  233,  233,  233,  233,  233,      233,  233,  114,  112,  117,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  114,  233,  117,      109,  110,  233,  111,  233,  233,  233,  233,  233,  233,      233,  109,  112,  113,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  109,  233,  113,  109,      110,  233,  111,  233,  233,  233,  233,  233,  233,  233,      109,  112,  113,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  109,  233,  113,  109,  110,      233,  111,  233,  233,  233,  233,  233,  233,  233,  109,      112,  113,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  109,  233,  113,  109,  110,  233,      111,  233,  233,  233,  233,  233,  233,  233,  109,  112,      113,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  109,  233,  113,  125,  125,  233,  125,      233,  233,  233,  125,  125,  125,  233,  125,  233,  125,      125,  125,  233,  125,  233,  233,  125,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  125,   45,   45,   45,   45,   45,   50,   50,   50,       50,   50,   55,   55,   55,   55,   55,   61,   61,   61,       61,   61,   66,   66,   66,   92,   92,   92,   92,   92,      100,  100,  100,  100,  100,  108,  108,  108,  108,  108,      118,  118,  118,  118,  120,  120,  120,  120,  120,  126,      233,  126,  126,  126,  125,  233,  125,  125,  125,  231,      231,  231,  233,  231,   11,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233    } ;static yyconst flex_int16_t yy_chk[1033] =    {   0,        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    3,    3,    9,        4,    4,   22,   29,   22,  231,   10,    9,    3,    3,        3,    4,    4,    4,   10,   31,   33,   29,   63,   33,       39,   31,   35,   35,   39,   89,   63,  219,   63,  219,       35,   45,   45,    3,  223,    3,    4,   89,    4,    5,        5,  222,   45,   45,   45,    5,  218,   48,   48,  217,        5,    5,    5,   73,   73,  120,  122,  215,   48,   48,       48,   92,   92,  120,  122,  120,  122,   45,  214,   45,      212,  210,   92,   92,   92,    5,  155,    5,    6,    6,      155,  208,  207,   48,    6,   48,  206,  204,  202,    6,        6,    6,  201,  200,  198,   95,   95,   92,  197,   92,       97,   97,  196,  195,  194,  193,   95,   95,   95,  192,      190,   97,   97,   97,    6,  189,    6,    7,    7,  227,        7,  227,  188,  227,  187,  186,  184,  183,    7,    7,        7,   95,  182,   95,   98,   98,   97,  181,   97,   99,       99,  180,  179,  178,  177,   98,   98,   98,  174,  173,       99,   99,   99,    7,  172,    7,    8,    8,  171,    8,      170,  169,  168,  167,  166,  164,  163,    8,    8,    8,       98,  162,   98,  159,  158,   99,  156,   99,  154,  152,      151,  150,  149,  148,  147,  146,  145,  144,  143,  142,      141,  140,    8,  139,    8,   50,   50,  138,  137,  136,      134,   50,  133,  132,  131,  130,   50,   50,   50,  129,      128,  127,  124,  118,   91,   90,   88,   87,   86,   85,       84,   83,   82,   81,   80,   79,   78,   77,   76,   75,       74,   50,   72,   50,   54,   54,   71,   67,   65,   64,       54,   61,   41,   40,   38,   54,   54,   54,   37,   36,       34,   32,   30,   28,   27,   25,   17,   15,   13,   11,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,       54,    0,   54,   55,   55,    0,   55,    0,    0,    0,        0,    0,    0,    0,   55,   55,   55,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,   55,        0,   55,   59,   59,    0,   59,    0,    0,    0,    0,        0,    0,    0,   59,   59,   59,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,   59,    0,       59,   69,   69,    0,   69,    0,    0,    0,   69,   69,       69,    0,   69,    0,   69,   69,   69,    0,   69,    0,        0,   69,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,   69,  100,  100,    0,        0,    0,    0,  100,    0,    0,    0,    0,  100,  100,      100,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,  100,    0,  100,  104,  104,    0,    0,        0,    0,  104,    0,    0,    0,    0,  104,  104,  104,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,  104,    0,  104,  105,  105,    0,    0,    0,        0,  105,    0,    0,    0,    0,  105,  105,  105,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,  105,    0,  105,  106,  106,    0,    0,    0,    0,      106,    0,    0,    0,    0,  106,  106,  106,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,      106,    0,  106,  107,  107,    0,    0,    0,    0,  107,        0,    0,    0,    0,  107,  107,  107,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,  107,        0,  107,  108,  108,    0,  108,    0,    0,    0,    0,        0,    0,    0,  108,  108,  108,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,  108,    0,      108,  112,  112,    0,  112,    0,    0,    0,    0,    0,        0,    0,  112,  112,  112,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,  112,    0,  112,      114,  114,    0,  114,    0,    0,    0,    0,    0,    0,        0,  114,  114,  114,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,  114,    0,  114,  115,      115,    0,  115,    0,    0,    0,    0,    0,    0,    0,      115,  115,  115,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,  115,    0,  115,  116,  116,        0,  116,    0,    0,    0,    0,    0,    0,    0,  116,      116,  116,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,  116,    0,  116,  117,  117,    0,      117,    0,    0,    0,    0,    0,    0,    0,  117,  117,      117,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,  117,    0,  117,  126,  126,    0,  126,        0,    0,    0,  126,  126,  126,    0,  126,    0,  126,      126,  126,    0,  126,    0,    0,  126,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,  126,  234,  234,  234,  234,  234,  235,  235,  235,      235,  235,  236,  236,  236,  236,  236,  237,  237,  237,      237,  237,  238,  238,  238,  239,  239,  239,  239,  239,      240,  240,  240,  240,  240,  241,  241,  241,  241,  241,      242,  242,  242,  242,  243,  243,  243,  243,  243,  244,        0,  244,  244,  244,  245,    0,  245,  245,  245,  246,      246,  246,    0,  246,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233,  233,  233,  233,  233,  233,  233,  233,  233,      233,  233    } ;/* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */#define REJECT reject_used_but_not_detected#define yymore() (yyg->yy_more_flag = 1)#define YY_MORE_ADJ yyg->yy_more_len#define YY_RESTORE_YY_MORE_OFFSET#line 1 "ael.flex"/* * Asterisk -- An open source telephony toolkit. * * Copyright (C) 2006, Digium, Inc. * * Steve Murphy <murf@parsetree.com> * * See http://www.asterisk.org for more information about * the Asterisk project. Please do not directly contact * any of the maintainers of this project for assistance; * the project provides a web site, mailing lists and IRC * channels for your use. * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. *//*! \file * * \brief Flex scanner description of tokens used in AEL2 . * *//* * Start with flex options: * * %x describes the contexts we have: paren, semic and argg, plus INITIAL *//* prefix used for various globally-visible functions and variables. * This renames also ael_yywrap, but since we do not use it, we just * add option noyywrap to remove it. *//* batch gives a bit more performance if we are using it in * a non-interactive mode. We probably don't care much. *//* outfile is the filename to be used instead of lex.yy.c *//* * These are not supported in flex 2.5.4, but we need them * at the moment: * reentrant produces a thread-safe parser. Not 100% sure that * we require it, though. * bison-bridge passes an additional yylval argument to ael_yylex(). * bison-locations is probably not needed. */#line 59 "ael.flex"ASTERISK_FILE_VERSION(__FILE__, "$Revision: 59206 $")#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include "asterisk/logger.h"#include "asterisk/utils.h"#include "ael/ael.tab.h"#include "asterisk/ael_structs.h"/* * A stack to keep track of matching brackets ( [ { } ] ) */static char pbcstack[400];	/* XXX missing size checks */static int pbcpos = 0;static void pbcpush(char x);static int pbcpop(char x);static int parencount = 0;/* * current line, column and filename, updated as we read the input. */static int my_lineno = 1;	/* current line in the source */static int my_col = 1;		/* current column in the source */char *my_file = 0;		/* used also in the bison code */char *prev_word;		/* XXX document it */#define MAX_INCLUDE_DEPTH 50/* * flex is not too smart, and generates global functions * without prototypes so the compiler may complain. * To avoid that, we declare the prototypes here, * even though these functions are not used. */int ael_yyget_column  (yyscan_t yyscanner);void ael_yyset_column (int  column_no , yyscan_t yyscanner);int ael_yyparse (struct parse_io *);/* * A stack to process include files. * As we switch into the new file we need to store the previous * state to restore it later. */struct stackelement {	char *fname;	int lineno;	int colno;	YY_BUFFER_STATE bufstate;};static struct stackelement  include_stack[MAX_INCLUDE_DEPTH];static int include_stack_index = 0;/* * if we use the @n feature of bison, we must supply the start/end * location of tokens in the structure pointed by yylloc. * Simple tokens are just assumed to be on the same line, so * the line number is constant, and the column is incremented * by the length of the token. */#ifdef FLEX_BETA	/* set for 2.5.33 *//* compute the total number of lines and columns in the text * passed as argument. */static void pbcwhere(const char *text, int *line, int *col ){	int loc_line = *line;	int loc_col = *col;	char c;	while ( (c = *text++) ) {		if ( c == '\t' ) {			loc_col += 8 - (loc_col % 8);		} else if ( c == '\n' ) {

⌨️ 快捷键说明

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