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,&,
&&&&&,&,&,&,&,
&&&&&,&,&,&,&,
&&&&&,&,&,&,&,
&&&&&,,,,,
&&&&,,12712,&&749,&&747,&&745,&&743,&&741,
&&&&&&739,&&737,&&735,&&733,&&731,&&729,&&727,&&725,&&723,&&721,
&&&&&&719,&&717,&&715,&&713,&&711,&&709,&&707,&&705,&&703,&&701,
&&&&&&699,&&697,&&695,&&693,&&691,&&689,&&687,&&685,&&683,&&681,
&&&&&&679,&&677,&&675,&&673,&&671,&&669,&&667,&&665,&&663,&&661,
&&&&&&659,&&657,&&655,&&653,&&651,&&649,&&647,&&645,&&643,&&641,
&&&&&&639,&&637,&&635,&&633,&&631,&&629,&&627,&&625,&&623,&&621,
&&&&&&619,&&617,&&615,&&613,&&611,&&609,&&607,&&605,&&603,&&601,
&&&&&&599,&&597,&&595,&&593,&&591,&&589,&&587,&&585,&&583,&&581,
&&&&&&579,&&577,&&575,&&573,&&571,&&569,&&567,&&565,&&563,&&561,
&&&&&&559,&&557,&&555,&&553,&&551,&&549,&&547,&&545,&&543,&&541,
&&&&&&539,&&537,&&535,&&533,&&531,&&529,&&527,&&525,&&523,&&521,
&&&&&&519,&&517,&&515,&&513,&&511,&&509,&&507,&&505,&&503,&&501,
&&&&&&499,&&497,&&495,&&493,&&491,&&489,&&487,&&485,&&483,&&481,
&&&&&&479,&&477,&&475,&&473,&&471,&&469,&&467,&&465,&&463,&&461,
&&&&&&459,&&455,&&452,&&451,&&447,&&446,&&445,&&442,&&441,&&440,
&&&&&&439,&&436,&&435,&&434,&&433,&&432,&&430,&&429,&&428,&&427,
&&&&&&424,&&422,&&420,&&419,&&418,&&417,&&415,&&414,&&413,&&412,
&&&&&&411,&&410,&&408,&&407,&&405,&&404,&&403,&&402,&&401,&&400,
&&&&&&399,&&397,&&396,&&395,&&393,&&392,&&391,&&390,&&388,&&387,
&&&&&&385,&&384,&&383,&&382,&&380,&&379,&&378,&&377,&&375,&&374,
&&&&&&373,&&372,&&370,&&369,&&368,&&367,&&366,&&365,&&364,&&362,
&&&&&&361,&&360,&&359,&&358,&&356,&&355,&&354,&&353,&&352,&&351,
&&&&&&350,&&349,&&348,&&347,&&345,&&344,&&343,&&341,&&340,&&339,
&&&&&&338,&&337,&&336,&&334,&&333,&&332,&&329,&&328,&&327,&&326,
&&&&&&325,&&324,&&323,&&321,&&320,&&319,&&316,&&315,&&314,&&313,
&&&&&&312,&&310,&&309,&&308,&&306,&&305,&&303,&&302,&&300,&&299,
&&&&&&298,&&297,&&295,&&293,&&292,&&291,&&289,&&288,&&286,&&285,
&&&&&&283,&&282,&&281,&&279,&&278,&&276,&&275,&&274,&&273,&&272,
&&&&&&271,&&269,&&268,&&267,&&266,&&264,&&263,&&261,&&260,&&258,
&&&&&&257,&&256,&&255,&&254,&&253,&&251,&&250,&&249,&&248,&&246,
&&&&&&245,&&244,&&243,&&242,&&241,&&240,&&238,&&236,&&235,&&234,
&&&&&&233,&&231,&&230,&&229,&&227,&&226,&&225,&&224,&&223,&&222,
&&&&&&221,&&219,&&217,&&216,&&215,&&214,&&213,&&212,&&211,&&210,
&&&&&&209,&&207,&&205,&&203,&&202,&&201,&&200,&&199,&&198,&&197,
&&&&&&196,&&194,&&193,&&192,&&191,&&190,&&189,&&188,&&187,&&185,
&&&&&&183,&&181,&&180,&&179,&&178,&&177,&&176,&&175,&&174,&&173,
&&&&&&172,&&171,&&170,&&169,&&168,&&167,&&166,&&165,&&164,&&163,
&&&&&&162,&&161,&&160,&&159,&&158,&&157,&&156,&&154,&&153,&&152,
&&&&&&151,&&150,&&149,&&148,&&147,&&146,&&145,&&144,&&143,&&142,
&&&&&&141,&&140,&&139,&&138,&&137,&&136,&&135,&&134,&&133,&&132,
&&&&&&131,&&130,&&129,&&128,&&127,&&126,&&125,&&122,&&121,&&120,
&&&&&&119,&&118,&&117,&&116,&&115,&&114,&&112,&&111,&&110,&&109,
&&&&&&108,&&107,&&106,&&105,&&104,&&103,&&102,&&101,&&&98,&&&97,
&&&&&&&96,&&&95,&&&94,&&&93,&&&92,&&&90,&&&89,&&&88,&&&87,&&&86,
&&&&&&&85,&&&84,&&&83,&&&81,&&&80,&&&79,&&&78,&&&77,&&&76,&&&75,
&&&&&&&74,&&&73,&&&72,&&&70,&&&68,&&&67,&&&66,&&&65,&&&64,&&&63,
&&&&&&&62,&&&61,&&&59,&&&58,&&&57,&&&56,&&&55,&&&54,&&&53,&&&52,
&&&&&&&48,&&&47,&&&45,&&&44,&&&43,&&&40,&&&39,&&&38,&&&37,&&&35,
&&&&&&&31,&&&30,&&&28,&&&27,&&&26,&&&22,&&&21,&&&20,&&&17,&&&14,
&&&&&&&13,&&&11,&&&&9,&&&&7,&,&,&,
&&&&&,&,&,&,&,
&&&&&,&,&,&,&,
&&&&&,&,&,&8614
static&yy_state_type&yy_last_accepting_
static&char&*yy_last_accepting_
extern&int&sfat_flex_
int&sfat_flex_debug&=&0;
/*&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()&yymore_used_but_not_detected
#define&YY_MORE_ADJ&0
#define&YY_RESTORE_YY_MORE_OFFSET
#line&1&&sf_attribute_table_parser.l&
**&Copyright&(C)&&Sourcefire,&Inc.
**&This&program&is&free&&you&can&redistribute&it&and/or&modify
**&it&under&the&terms&of&the&GNU&General&Public&License&Version&2&as
**&published&by&the&Free&Software&Foundation.&&You&may&not&use,&modify&or
**&distribute&this&program&under&any&other&version&of&the&GNU&General
**&Public&License.
**&This&program&is&distributed&in&the&hope&that&it&will&be&useful,
**&but&WITHOUT&ANY&WARRANTY;&without&even&the&implied&warranty&of
**&MERCHANTABILITY&or&FITNESS&FOR&A&PARTICULAR&PURPOSE.&&See&the
**&GNU&General&Public&License&for&more&details.
**&You&should&have&received&a&copy&of&the&GNU&General&Public&License
**&along&with&this&&if&not,&write&to&the&Free&Software
**&Foundation,&Inc.,&59&Temple&Place&-&Suite&330,&Boston,&MA&,&USA.
&*&Author:&Steven&Sturges
&*&sf_attribute_table_parser.l
&*&Lex&for&Attribute&Table
/*&Definitions&Section.
&*&Definitions&required&by&the&rules&section&are&in&here&prior&to&first&&
&*&&%%&&seperator
/*&Include&code&between&&%{&%}&&separators&at&top&of&generated
&*&lexer&source&file
#line&38&&sf_attribute_table_parser.l&
#ifdef&TARGET_BASED
#ifdef&HAVE_CONFIG_H
#include&&config.h&
#include&&stdlib.h&
#include&&util.h&
#include&&snort.h&
#include&&parser.h&
#include&&sftarget_reader.h&
#include&&sf_attribute_table.h&&/*&Generated&from&YACC&*/
extern&ServiceClient&sfat_client_or_
static&int&sfat_linenumber&=&0;
static&char*&sfat_
void&sfat_error(char&*err);
int&sfat_parse();
#define&YY_NO_UNPUT
/*&Change&flex&buffer&size&from&default&8K&to&STD_BUF&bytes&*/
#ifdef&YY_BUF_SIZE
#undef&&YY_BUF_SIZE
#define&YY_BUF_SIZE&STD_BUF
#define&YY_DECL&int&sfat_lex(void)
/*&At&end-of-file&return&assuming&no&more&files&to&scan*/
/*&Optimise&lexer&for&interactive&use&*/
/*&Declare&exclusive&start&conditions.
&*&Start&conditions&are&included&here&to&illustrate&how&to&add&simple
&*&state-machine&functionality&to&the&lexer
/*&Define&some&common&patterns&for&use&below&*/
/*&Rules&Section.
&*&All&rules&are&in&here&prior&to&second&&%%&&seperator
#line&6198&&sf_attribute_table_parser.c&
#define&INITIAL&0
#define&waiting_for_comma_prior_to_data&1
#define&waiting_for_data&2
#ifndef&YY_NO_UNISTD_H
/*&Special&case&for&&unistd.h&,&since&it&is&non-ANSI.&We&include&it&way
&*&down&here&because&we&want&the&user's&section&1&to&have&been&scanned&first.
&*&The&user&has&a&chance&to&override&it&with&an&option.
#include&&unistd.h&
#ifndef&YY_EXTRA_TYPE
#define&YY_EXTRA_TYPE&void&*
static&int&yy_init_globals&(void&);
/*&Macros&after&this&point&can&all&be&overridden&by&user&definitions&in
&*&section&1.
#ifndef&YY_SKIP_YYWRAP
#ifdef&__cplusplus
extern&&C&&int&sfatwrap&(void&);
extern&int&sfatwrap&(void&);
&&&&static&void&yyunput&(int&c,char&*buf_ptr&&);
#ifndef&yytext_ptr
static&void&yy_flex_strncpy&(char&*,yyconst&char&*,int&);
#ifdef&YY_NEED_STRLEN
static&int&yy_flex_strlen&(yyconst&char&*&);
#ifndef&YY_NO_INPUT
#ifdef&__cplusplus
static&int&yyinput&(void&);
static&int&input&(void&);
/*&Amount&of&stuff&to&slurp&up&with&each&read.&*/
#ifndef&YY_READ_BUF_SIZE
#define&YY_READ_BUF_SIZE&8192
/*&Copy&whatever&the&last&rule&matched&to&the&standard&output.&*/
#ifndef&ECHO
/*&This&used&to&be&an&fputs(),&but&since&the&string&might&contain&NUL's,
&*&we&now&use&fwrite().
#define&ECHO&(void)&fwrite(&sfattext,&sfatleng,&1,&sfatout&)
/*&Gets&input&and&stuffs&it&into&&buf&.&&number&of&characters&read,&or&YY_NULL,
&*&is&returned&in&&result&.
#ifndef&YY_INPUT
#define&YY_INPUT(buf,result,max_size)&
if&(&YY_CURRENT_BUFFER_LVALUE-&yy_is_interactive&)&
int&c&=&'*';&
size_t&n;&
for&(&n&=&0;&n&&&max_size&&&&
&&&&&(c&=&getc(&sfatin&))&!=&EOF&&&&c&!=&'n';&++n&)&
buf[n]&=&(char)&c;&
if&(&c&==&'n'&)&
buf[n++]&=&(char)&c;&
if&(&c&==&EOF&&&&ferror(&sfatin&)&)&
YY_FATAL_ERROR(&&input&in&flex&scanner&failed&&);&
result&=&n;&
while&(&(result&=&fread(buf,&1,&max_size,&sfatin))==0&&&&ferror(sfatin))&
if(&errno&!=&EINTR)&
YY_FATAL_ERROR(&&input&in&flex&scanner&failed&&);&
clearerr(sfatin);&
/*&No&semi-colon&after&&correct&usage&is&to&write&&yyterminate();&&-
&*&we&don't&want&an&extra&';'&after&the&&return&&because&that&will&cause
&*&some&compilers&to&complain&about&unreachable&statements.
#ifndef&yyterminate
#define&yyterminate()&return&YY_NULL
/*&Number&of&entries&by&which&start-condition&stack&grows.&*/
#ifndef&YY_START_STACK_INCR
#define&YY_START_STACK_INCR&25
/*&Report&a&fatal&error.&*/
#ifndef&YY_FATAL_ERROR
#define&YY_FATAL_ERROR(msg)&yy_fatal_error(&msg&)
/*&end&tables&serialization&structures&and&prototypes&*/
/*&Default&declaration&of&generated&scanner&-&a&define&so&the&user&can
&*&easily&add&parameters.
#ifndef&YY_DECL
#define&YY_DECL_IS_OURS&1
extern&int&sfatlex&(void);
#define&YY_DECL&int&sfatlex&(void)
#endif&/*&!YY_DECL&*/
/*&Code&executed&at&the&beginning&of&each&rule,&after&sfattext&and&sfatleng
&*&have&been&set&up.
#ifndef&YY_USER_ACTION
#define&YY_USER_ACTION
/*&Code&executed&at&the&end&of&each&rule.&*/
#ifndef&YY_BREAK
#define&YY_BREAK&
#define&YY_RULE_SETUP&
YY_USER_ACTION
/**&The&main&scanner&function&which&does&all&the&work.
register&yy_state_type&yy_current_
register&char&*yy_cp,&*yy_
register&int&yy_
#line&98&&sf_attribute_table_parser.l&
#line&6355&&sf_attribute_table_parser.c&
if&(&!(yy_init)&)
(yy_init)&=&1;
#ifdef&YY_USER_INIT
YY_USER_INIT;
if&(&!&(yy_start)&)
(yy_start)&=&1; /*&first&start&state&*/
if&(&!&sfatin&)
if&(&!&sfatout&)
sfatout&=&
if&(&!&YY_CURRENT_BUFFER&)&{
sfatensure_buffer_stack&();
YY_CURRENT_BUFFER_LVALUE&=
sfat_create_buffer(sfatin,YY_BUF_SIZE&);
sfat_load_buffer_state(&);
while&(&1&)
/*&loops&until&end-of-file&is&reached&*/
yy_cp&=&(yy_c_buf_p);
/*&Support&of&sfattext.&*/
*yy_cp&=&(yy_hold_char);
/*&yy_bp&points&to&the&position&in&yy_ch_buf&of&the&start&of
&*&the&current&run.
yy_bp&=&yy_
yy_current_state&=&(yy_start);
register&YY_CHAR&yy_c&=&yy_ec[YY_SC_TO_UI(*yy_cp)];
if&(&yy_accept[yy_current_state]&)
(yy_last_accepting_state)&=&yy_current_
(yy_last_accepting_cpos)&=&yy_
while&(&yy_chk[yy_base[yy_current_state]&+&yy_c]&!=&yy_current_state&)
yy_current_state&=&(int)&yy_def[yy_current_state];
if&(&yy_current_state&&=&8615&)
yy_c&=&yy_meta[(unsigned&int)&yy_c];
yy_current_state&=&yy_nxt[yy_base[yy_current_state]&+&(unsigned&int)&yy_c];
while&(&yy_current_state&!=&8614&);
yy_cp&=&(yy_last_accepting_cpos);
yy_current_state&=&(yy_last_accepting_state);
yy_find_action:
yy_act&=&yy_accept[yy_current_state];
YY_DO_BEFORE_ACTION;
do_action: /*&This&label&is&used&only&to&access&EOF&actions.&*/
switch&(&yy_act&)
{&/*&beginning&of&action&switch&*/
case&0:&/*&must&back&up&*/
/*&undo&the&effects&of&YY_DO_BEFORE_ACTION&*/
*yy_cp&=&(yy_hold_char);
yy_cp&=&(yy_last_accepting_cpos);
yy_current_state&=&(yy_last_accepting_state);
goto&yy_find_
YY_RULE_SETUP
#line&99&&sf_attribute_table_parser.l&
{&;&}&&/*&Handle&empty&whitespace&*/
YY_RULE_SETUP
#line&100&&sf_attribute_table_parser.l&
{&return&SF_START_SNORT_ATTRIBUTES;&}
YY_RULE_SETUP
#line&101&&sf_attribute_table_parser.l&
{&return&SF_END_SNORT_ATTRIBUTES;&}
YY_RULE_SETUP
#line&103&&sf_attribute_table_parser.l&
{&return&SF_AT_START_MAP_TABLE;&}
YY_RULE_SETUP
#line&104&&sf_attribute_table_parser.l&
{&return&SF_AT_END_MAP_TABLE;&}
YY_RULE_SETUP
#line&105&&sf_attribute_table_parser.l&
{&return&SF_AT_START_ENTRY;&}
YY_RULE_SETUP
#line&106&&sf_attribute_table_parser.l&
{&return&SF_AT_END_ENTRY;&}
YY_RULE_SETUP
#line&107&&sf_attribute_table_parser.l&
{&return&SF_AT_START_ENTRY_ID;&}
YY_RULE_SETUP
#line&108&&sf_attribute_table_parser.l&
{&return&SF_AT_END_ENTRY_ID;&}
YY_RULE_SETUP
#line&109&&sf_attribute_table_parser.l&
{&return&SF_AT_START_ENTRY_VALUE;&}
YY_RULE_SETUP
#line&110&&sf_attribute_table_parser.l&
{&return&SF_AT_END_ENTRY_VALUE;&}
YY_RULE_SETUP
#line&111&&sf_attribute_table_parser.l&
{&return&SF_AT_START_ATTRIBUTE_TABLE;&}
YY_RULE_SETUP
#line&112&&sf_attribute_table_parser.l&
{&return&SF_AT_END_ATTRIBUTE_TABLE;&}
YY_RULE_SETUP
#line&113&&sf_attribute_table_parser.l&
{&return&SF_AT_START_HOST;&}
YY_RULE_SETUP
#line&114&&sf_attribute_table_parser.l&
{&return&SF_AT_END_HOST;&}
YY_RULE_SETUP
#line&115&&sf_attribute_table_parser.l&
{&return&SF_AT_START_HOST_IP;&}
YY_RULE_SETUP
#line&116&&sf_attribute_table_parser.l&
{&return&SF_AT_END_HOST_IP;&}
YY_RULE_SETUP
#line&117&&sf_attribute_table_parser.l&
{&return&SF_AT_START_OS;&}
YY_RULE_SETUP
#line&118&&sf_attribute_table_parser.l&
{&return&SF_AT_END_OS;&}
YY_RULE_SETUP
#line&119&&sf_attribute_table_parser.l&
{&return&SF_AT_START_ATTRIBUTE_VALUE;&}
YY_RULE_SETUP
#line&120&&sf_attribute_table_parser.l&
{&return&SF_AT_END_ATTRIBUTE_VALUE;&}
YY_RULE_SETUP
#line&121&&sf_attribute_table_parser.l&
{&return&SF_AT_START_ATTRIBUTE_ID;&}
YY_RULE_SETUP
#line&122&&sf_attribute_table_parser.l&
{&return&SF_AT_END_ATTRIBUTE_ID;&}
YY_RULE_SETUP
#line&123&&sf_attribute_table_parser.l&
{&return&SF_AT_START_CONFIDENCE;&}
YY_RULE_SETUP
#line&124&&sf_attribute_table_parser.l&
{&return&SF_AT_END_CONFIDENCE;&}
YY_RULE_SETUP
#line&125&&sf_attribute_table_parser.l&
{&return&SF_AT_START_NAME;&}
YY_RULE_SETUP
#line&126&&sf_attribute_table_parser.l&
{&return&SF_AT_END_NAME;&}
YY_RULE_SETUP
#line&127&&sf_attribute_table_parser.l&
{&return&SF_AT_START_VENDOR;&}
YY_RULE_SETUP
#line&128&&sf_attribute_table_parser.l&
{&return&SF_AT_END_VENDOR;&}
YY_RULE_SETUP
#line&129&&sf_attribute_table_parser.l&
{&return&SF_AT_START_VERSION;&}
YY_RULE_SETUP
#line&130&&sf_attribute_table_parser.l&
{&return&SF_AT_END_VERSION;&}
YY_RULE_SETUP
#line&131&&sf_attribute_table_parser.l&
{&return&SF_AT_START_FRAG_POLICY;&}
YY_RULE_SETUP
#line&132&&sf_attribute_table_parser.l&
{&return&SF_AT_END_FRAG_POLICY;&}
YY_RULE_SETUP
#line&133&&sf_attribute_table_parser.l&
{&return&SF_AT_START_STREAM_POLICY;&}
YY_RULE_SETUP
#line&134&&sf_attribute_table_parser.l&
{&return&SF_AT_END_STREAM_POLICY;&}
YY_RULE_SETUP
#line&135&&sf_attribute_table_parser.l&
{&return&SF_AT_START_SERVICES;&}
YY_RULE_SETUP
#line&136&&sf_attribute_table_parser.l&
{&return&SF_AT_END_SERVICES;&}
YY_RULE_SETUP
#line&137&&sf_attribute_table_parser.l&
{&return&SF_AT_START_SERVICE;&}
YY_RULE_SETUP
#line&138&&sf_attribute_table_parser.l&
{&return&SF_AT_END_SERVICE;&}
YY_RULE_SETUP
#line&139&&sf_attribute_table_parser.l&
{&return&SF_AT_START_CLIENTS;&}
YY_RULE_SETUP
#line&140&&sf_attribute_table_parser.l&
{&return&SF_AT_END_CLIENTS;&}
YY_RULE_SETUP
#line&141&&sf_attribute_table_parser.l&
{&return&SF_AT_START_CLIENT;&}
YY_RULE_SETUP
#line&142&&sf_attribute_table_parser.l&
{&return&SF_AT_END_CLIENT;&}
YY_RULE_SETUP
#line&143&&sf_attribute_table_parser.l&
{&return&SF_AT_START_IPPROTO;&}
YY_RULE_SETUP
#line&144&&sf_attribute_table_parser.l&
{&return&SF_AT_END_IPPROTO;&}
YY_RULE_SETUP
#line&145&&sf_attribute_table_parser.l&
{&return&SF_AT_START_PROTOCOL;&}
YY_RULE_SETUP
#line&146&&sf_attribute_table_parser.l&
{&return&SF_AT_END_PROTOCOL;&}
YY_RULE_SETUP
#line&147&&sf_attribute_table_parser.l&
{&return&SF_AT_START_PORT;&}
YY_RULE_SETUP
#line&148&&sf_attribute_table_parser.l&
{&return&SF_AT_END_PORT;&}
YY_RULE_SETUP
#line&149&&sf_attribute_table_parser.l&
{&return&SF_AT_START_APPLICATION;&}
YY_RULE_SETUP
#line&150&&sf_attribute_table_parser.l&
{&return&SF_AT_END_APPLICATION;&}
YY_RULE_SETUP
#line&152&&sf_attribute_table_parser.l&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&sfat_lval.numericValue&=&strtol(&sfattext,&NULL,&10&);
#ifdef&DEBUG
&&&&&&&&&&&&&&&&&&&&&&&&&&&&DebugMessage(DEBUG_ATTRIBUTE,
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&Number&Value:&[%d]n&,&sfat_lval.numericValue);
&&&&&&&&&&&&&&&&&&&&&&&&&&&&return&SF_AT_NUMERIC;
&&&&&&&&&&&&&&&&&&&&&&&&}
YY_RULE_SETUP
#line&160&&sf_attribute_table_parser.l&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&/*&Store&the&value&of&the&string,&but&not
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*&more&than&STD_BUF.&*/
&&&&&&&&&&&&&&&&&&&&&&&&&&&&int&i;
&&&&&&&&&&&&&&&&&&&&&&&&&&&&for&(i=0;&i&&&sfatleng&&&&i&&&STD_BUF;&i++)
&&&&&&&&&&&&&&&&&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&sfat_lval.stringValue[i]&=&sfattext[i];
&&&&&&&&&&&&&&&&&&&&&&&&&&&&}
&&&&&&&&&&&&&&&&&&&&&&&&&&&&sfat_lval.stringValue[i]&=&'';
#ifdef&DEBUG
&&&&&&&&&&&&&&&&&&&&&&&&&&&&DebugMessage(DEBUG_ATTRIBUTE,
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&String&Value:&[%s]n&,&sfat_lval.stringValue);
&&&&&&&&&&&&&&&&&&&&&&&&&&&&return&SF_AT_STRING;
&&&&&&&&&&&&&&&&&&&&&&&&}
/*&rule&54&can&match&eol&*/
YY_RULE_SETUP
#line&175&&sf_attribute_table_parser.l&
{&sfat_linenumber++;&}
YY_RULE_SETUP
#line&176&&sf_attribute_table_parser.l&
{&;&/*&Do&nothing&--&ignore&it&*/}
YY_RULE_SETUP
#line&178&&sf_attribute_table_parser.l&
{&return&0;&}
/*&Error,&no&meaningful&input&provided&*/
case&YY_STATE_EOF(INITIAL):
case&YY_STATE_EOF(waiting_for_comma_prior_to_data):
case&YY_STATE_EOF(waiting_for_data):
#line&181&&sf_attribute_table_parser.l&
{&yyterminate();&}
YY_RULE_SETUP
#line&183&&sf_attribute_table_parser.l&
#line&6748&&sf_attribute_table_parser.c&
case&YY_END_OF_BUFFER:
/*&Amount&of&text&matched&not&including&the&EOB&char.&*/
int&yy_amount_of_matched_text&=&(int)&(yy_cp&-&(yytext_ptr))&-&1;
/*&Undo&the&effects&of&YY_DO_BEFORE_ACTION.&*/
*yy_cp&=&(yy_hold_char);
YY_RESTORE_YY_MORE_OFFSET
if&(&YY_CURRENT_BUFFER_LVALUE-&yy_buffer_status&==&YY_BUFFER_NEW&)
/*&We're&scanning&a&new&file&or&input&source.&&It's
&*&possible&that&this&happened&because&the&user
&*&just&pointed&sfatin&at&a&new&source&and&called
&*&sfatlex().&&If&so,&then&we&have&to&assure
&*&consistency&between&YY_CURRENT_BUFFER&and&our
&*&globals.&&Here&is&the&right&place&to&do&so,&because
&*&this&is&the&first&action&(other&than&possibly&a
&*&back-up)&that&will&match&for&the&new&input&source.
(yy_n_chars)&=&YY_CURRENT_BUFFER_LVALUE-&yy_n_
YY_CURRENT_BUFFER_LVALUE-&yy_input_file&=&
YY_CURRENT_BUFFER_LVALUE-&yy_buffer_status&=&YY_BUFFER_NORMAL;
/*&Note&that&here&we&test&for&yy_c_buf_p&&&=&&to&the&position
&*&of&the&first&EOB&in&the&buffer,&since&yy_c_buf_p&will
&*&already&have&been&incremented&past&the&NUL&character
&*&(since&all&states&make&transitions&on&EOB&to&the
&*&end-of-buffer&state).&&Contrast&this&with&the&test
&*&in&input().
if&(&(yy_c_buf_p)&&=&&YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf[(yy_n_chars)]&)
{&/*&This&was&really&a&NUL.&*/
yy_state_type&yy_next_
(yy_c_buf_p)&=&(yytext_ptr)&+&yy_amount_of_matched_
yy_current_state&=&yy_get_previous_state(&&);
/*&Okay,&we're&now&positioned&to&make&the&NUL
&*&transition.&&We&couldn't&have
&*&yy_get_previous_state()&go&ahead&and&do&it
&*&for&us&because&it&doesn't&know&how&to&deal
&*&with&the&possibility&of&jamming&(and&we&don't
&*&want&to&build&jamming&into&it&because&then&it
&*&will&run&more&slowly).
yy_next_state&=&yy_try_NUL_trans(&yy_current_state&);
yy_bp&=&(yytext_ptr)&+&YY_MORE_ADJ;
if&(&yy_next_state&)
/*&Consume&the&NUL.&*/
yy_cp&=&++(yy_c_buf_p);
yy_current_state&=&yy_next_
yy_cp&=&(yy_last_accepting_cpos);
yy_current_state&=&(yy_last_accepting_state);
goto&yy_find_
else&switch&(&yy_get_next_buffer(&&)&)
case&EOB_ACT_END_OF_FILE:
(yy_did_buffer_switch_on_eof)&=&0;
if&(&sfatwrap(&)&)
/*&Note:&because&we've&taken&care&in
&*&yy_get_next_buffer()&to&have&set&up
&*&sfattext,&we&can&now&set&up
&*&yy_c_buf_p&so&that&if&some&total
&*&hoser&(like&flex&itself)&wants&to
&*&call&the&scanner&after&we&return&the
&*&YY_NULL,&it'll&still&work&-&another
&*&YY_NULL&will&get&returned.
(yy_c_buf_p)&=&(yytext_ptr)&+&YY_MORE_ADJ;
yy_act&=&YY_STATE_EOF(YY_START);
if&(&!&(yy_did_buffer_switch_on_eof)&)
YY_NEW_FILE;
case&EOB_ACT_CONTINUE_SCAN:
(yy_c_buf_p)&=
(yytext_ptr)&+&yy_amount_of_matched_
yy_current_state&=&yy_get_previous_state(&&);
yy_cp&=&(yy_c_buf_p);
yy_bp&=&(yytext_ptr)&+&YY_MORE_ADJ;
case&EOB_ACT_LAST_MATCH:
(yy_c_buf_p)&=
&YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf[(yy_n_chars)];
yy_current_state&=&yy_get_previous_state(&&);
yy_cp&=&(yy_c_buf_p);
yy_bp&=&(yytext_ptr)&+&YY_MORE_ADJ;
goto&yy_find_
YY_FATAL_ERROR(
&fatal&flex&scanner&internal&error--no&action&found&&);
}&/*&end&of&action&switch&*/
}&/*&end&of&scanning&one&token&*/
}&/*&end&of&sfatlex&*/
/*&yy_get_next_buffer&-&try&to&read&in&a&new&buffer
&*&Returns&a&code&representing&an&action:
&* EOB_ACT_LAST_MATCH&-
&* EOB_ACT_CONTINUE_SCAN&-&continue&scanning&from&current&position
&* EOB_ACT_END_OF_FILE&-&end&of&file
static&int&yy_get_next_buffer&(void)
&&&& register&char&*dest&=&YY_CURRENT_BUFFER_LVALUE-&yy_ch_
register&char&*source&=&(yytext_ptr);
register&int&number_to_move,&i;
if&(&(yy_c_buf_p)&&&&YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf[(yy_n_chars)&+&1]&)
YY_FATAL_ERROR(
&fatal&flex&scanner&internal&error--end&of&buffer&missed&&);
if&(&YY_CURRENT_BUFFER_LVALUE-&yy_fill_buffer&==&0&)
{&/*&Don't&try&to&fill&the&buffer,&so&this&is&an&EOF.&*/
if&(&(yy_c_buf_p)&-&(yytext_ptr)&-&YY_MORE_ADJ&==&1&)
/*&We&matched&a&single&character,&the&EOB,&so
&*&treat&this&as&a&final&EOF.
return&EOB_ACT_END_OF_FILE;
/*&We&matched&some&text&prior&to&the&EOB,&first
&*&process&it.
return&EOB_ACT_LAST_MATCH;
/*&Try&to&read&more&data.&*/
/*&First&move&last&chars&to&start&of&buffer.&*/
number_to_move&=&(int)&((yy_c_buf_p)&-&(yytext_ptr))&-&1;
for&(&i&=&0;&i&&&number_to_&++i&)
*(dest++)&=&*(source++);
if&(&YY_CURRENT_BUFFER_LVALUE-&yy_buffer_status&==&YY_BUFFER_EOF_PENDING&)
/*&don't&do&the&read,&it's&not&guaranteed&to&return&an&EOF,
&*&just&force&an&EOF
YY_CURRENT_BUFFER_LVALUE-&yy_n_chars&=&(yy_n_chars)&=&0;
int&num_to_read&=
YY_CURRENT_BUFFER_LVALUE-&yy_buf_size&-&number_to_move&-&1;
while&(&num_to_read&&=&0&)
{&/*&Not&enough&room&in&the&buffer&-&grow&it.&*/
/*&just&a&shorter&name&for&the&current&buffer&*/
YY_BUFFER_STATE&b&=&YY_CURRENT_BUFFER;
int&yy_c_buf_p_offset&=
(int)&((yy_c_buf_p)&-&b-&yy_ch_buf);
if&(&b-&yy_is_our_buffer&)
int&new_size&=&b-&yy_buf_size&*&2;
if&(&new_size&&=&0&)
b-&yy_buf_size&+=&b-&yy_buf_size&/&8;
b-&yy_buf_size&*=&2;
b-&yy_ch_buf&=&(char&*)
/*&Include&room&in&for&2&EOB&chars.&*/
sfatrealloc((void&*)&b-&yy_ch_buf,b-&yy_buf_size&+&2&&);
/*&Can't&grow&it,&we&don't&own&it.&*/
b-&yy_ch_buf&=&0;
if&(&!&b-&yy_ch_buf&)
YY_FATAL_ERROR(
&fatal&error&-&scanner&input&buffer&overflow&&);
(yy_c_buf_p)&=&&b-&yy_ch_buf[yy_c_buf_p_offset];
num_to_read&=&YY_CURRENT_BUFFER_LVALUE-&yy_buf_size&-
number_to_move&-&1;
if&(&num_to_read&&&YY_READ_BUF_SIZE&)
num_to_read&=&YY_READ_BUF_SIZE;
/*&Read&in&more&data.&*/
YY_INPUT(&(&YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf[number_to_move]),
(yy_n_chars),&num_to_read&);
YY_CURRENT_BUFFER_LVALUE-&yy_n_chars&=&(yy_n_chars);
if&(&(yy_n_chars)&==&0&)
if&(&number_to_move&==&YY_MORE_ADJ&)
ret_val&=&EOB_ACT_END_OF_FILE;
sfatrestart(sfatin&&);
ret_val&=&EOB_ACT_LAST_MATCH;
YY_CURRENT_BUFFER_LVALUE-&yy_buffer_status&=
YY_BUFFER_EOF_PENDING;
ret_val&=&EOB_ACT_CONTINUE_SCAN;
(yy_n_chars)&+=&number_to_
YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf[(yy_n_chars)]&=&YY_END_OF_BUFFER_CHAR;
YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf[(yy_n_chars)&+&1]&=&YY_END_OF_BUFFER_CHAR;
(yytext_ptr)&=&&YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf[0];
return&ret_
/*&yy_get_previous_state&-&get&the&state&just&before&the&EOB&char&was&reached&*/
&&&&static&yy_state_type&yy_get_previous_state&(void)
register&yy_state_type&yy_current_
register&char&*yy_
yy_current_state&=&(yy_start);
for&(&yy_cp&=&(yytext_ptr)&+&YY_MORE_ADJ;&yy_cp&&&(yy_c_buf_p);&++yy_cp&)
register&YY_CHAR&yy_c&=&(*yy_cp&?&yy_ec[YY_SC_TO_UI(*yy_cp)]&:&1);
if&(&yy_accept[yy_current_state]&)
(yy_last_accepting_state)&=&yy_current_
(yy_last_accepting_cpos)&=&yy_
while&(&yy_chk[yy_base[yy_current_state]&+&yy_c]&!=&yy_current_state&)
yy_current_state&=&(int)&yy_def[yy_current_state];
if&(&yy_current_state&&=&8615&)
yy_c&=&yy_meta[(unsigned&int)&yy_c];
yy_current_state&=&yy_nxt[yy_base[yy_current_state]&+&(unsigned&int)&yy_c];
return&yy_current_
/*&yy_try_NUL_trans&-&try&to&make&a&transition&on&the&NUL&character
&*&synopsis
&* next_state&=&yy_try_NUL_trans(&current_state&);
&&&&static&yy_state_type&yy_try_NUL_trans&&(yy_state_type&yy_current_state&)
register&int&yy_is_
&&&& register&char&*yy_cp&=&(yy_c_buf_p);
register&YY_CHAR&yy_c&=&1;
if&(&yy_accept[yy_current_state]&)
(yy_last_accepting_state)&=&yy_current_
(yy_last_accepting_cpos)&=&yy_
while&(&yy_chk[yy_base[yy_current_state]&+&yy_c]&!=&yy_current_state&)
yy_current_state&=&(int)&yy_def[yy_current_state];
if&(&yy_current_state&&=&8615&)
yy_c&=&yy_meta[(unsigned&int)&yy_c];
yy_current_state&=&yy_nxt[yy_base[yy_current_state]&+&(unsigned&int)&yy_c];
yy_is_jam&=&(yy_current_state&==&8614);
return&yy_is_jam&?&0&:&yy_current_
&&&&static&void&yyunput&(int&c,&register&char&*&yy_bp&)
register&char&*yy_
&&&&yy_cp&=&(yy_c_buf_p);
/*&undo&effects&of&setting&up&sfattext&*/
*yy_cp&=&(yy_hold_char);
if&(&yy_cp&&&YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf&+&2&)
{&/*&need&to&shift&things&up&to&make&room&*/
/*&+2&for&EOB&chars.&*/
register&int&number_to_move&=&(yy_n_chars)&+&2;
register&char&*dest&=&&YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf[
YY_CURRENT_BUFFER_LVALUE-&yy_buf_size&+&2];
register&char&*source&=
&YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf[number_to_move];
while&(&source&&&YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf&)
*--dest&=&*--
yy_cp&+=&(int)&(dest&-&source);
yy_bp&+=&(int)&(dest&-&source);
YY_CURRENT_BUFFER_LVALUE-&yy_n_chars&=
(yy_n_chars)&=&YY_CURRENT_BUFFER_LVALUE-&yy_buf_
if&(&yy_cp&&&YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf&+&2&)
YY_FATAL_ERROR(&&flex&scanner&push-back&overflow&&);
*--yy_cp&=&(char)&c;
(yytext_ptr)&=&yy_
(yy_hold_char)&=&*yy_
(yy_c_buf_p)&=&yy_
#ifndef&YY_NO_INPUT
#ifdef&__cplusplus
&&&&static&int&yyinput&(void)
&&&&static&int&input&&(void)
*(yy_c_buf_p)&=&(yy_hold_char);
if&(&*(yy_c_buf_p)&==&YY_END_OF_BUFFER_CHAR&)
/*&yy_c_buf_p&now&points&to&the&character&we&want&to&return.
&*&If&this&occurs&*before*&the&EOB&characters,&then&it's&a
&*&valid&NUL;&if&not,&then&we've&hit&the&end&of&the&buffer.
if&(&(yy_c_buf_p)&&&&YY_CURRENT_BUFFER_LVALUE-&yy_ch_buf[(yy_n_chars)]&)
/*&This&was&really&a&NUL.&*/
*(yy_c_buf_p)&=&'';
{&/*&need&more&input&*/
int&offset&=&(yy_c_buf_p)&-&(yytext_ptr);
++(yy_c_buf_p);
switch&(&yy_get_next_buffer(&&)&)
case&EOB_ACT_LAST_MATCH:
/*&This&happens&because&yy_g_n_b()
&*&sees&that&we've&accumulated&a
&*&token&and&flags&that&we&need&to
&*&try&matching&the&token&before
&*&proceeding.&&But&for&input(),
&*&there's&no&matching&to&consider.
&*&So&convert&the&EOB_ACT_LAST_MATCH
&*&to&EOB_ACT_END_OF_FILE.
/*&Reset&buffer&status.&*/
sfatrestart(sfatin&);
/*FALLTHROUGH*/
case&EOB_ACT_END_OF_FILE:
if&(&sfatwrap(&)&)
return&EOF;
if&(&!&(yy_did_buffer_switch_on_eof)&)
YY_NEW_FILE;
#ifdef&__cplusplus
return&yyinput();
return&input();
case&EOB_ACT_CONTINUE_SCAN:
(yy_c_buf_p)&=&(yytext_ptr)&+&
c&=&*(unsigned&char&*)&(yy_c_buf_p); /*&cast&for&8-bit&char's&*/
*(yy_c_buf_p)&=&''; /*&preserve&sfattext&*/
(yy_hold_char)&=&*++(yy_c_buf_p);
#endif /*&ifndef&YY_NO_INPUT&*/
/**&Immediately&switch&to&a&different&input&stream.
&*&@param&input_file&A&readable&stream.
&*&@note&This&function&does&not&reset&the&start&condition&to&@c&INITIAL&.
&&&&void&sfatrestart&&(FILE&*&input_file&)
if&(&!&YY_CURRENT_BUFFER&){
&&&&&&&&sfatensure_buffer_stack&();
YY_CURRENT_BUFFER_LVALUE&=
&&&&&&&&&&&&sfat_create_buffer(sfatin,YY_BUF_SIZE&);
sfat_init_buffer(YY_CURRENT_BUFFER,input_file&);
sfat_load_buffer_state(&);
/**&Switch&to&a&different&input&buffer.
&*&@param&new_buffer&The&new&input&buffer.
&&&&void&sfat_switch_to_buffer&&(YY_BUFFER_STATE&&new_buffer&)
/*&TODO.&We&should&be&able&to&replace&this&entire&function&body
sfatpop_buffer_state();
sfatpush_buffer_state(new_buffer);
sfatensure_buffer_stack&();
if&(&YY_CURRENT_BUFFER&==&new_buffer&)
if&(&YY_CURRENT_BUFFER&)
/*&Flush&out&information&for&old&buffer.&*/
*(yy_c_buf_p)&=&(yy_hold_char);
YY_CURRENT_BUFFER_LVALUE-&yy_buf_pos&=&(yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE-&yy_n_chars&=&(yy_n_chars);
YY_CURRENT_BUFFER_LVALUE&=&new_
sfat_load_buffer_state(&);
/*&We&don't&actually&know&whether&we&did&this&switch&during
&*&EOF&(sfatwrap())&processing,&but&the&only&time&this&flag
&*&is&looked&at&is&after&sfatwrap()&is&called,&so&it's&safe
&*&to&go&ahead&and&always&set&it.
(yy_did_buffer_switch_on_eof)&=&1;
static&void&sfat_load_buffer_state&&(void)
&&&& (yy_n_chars)&=&YY_CURRENT_BUFFER_LVALUE-&yy_n_
(yytext_ptr)&=&(yy_c_buf_p)&=&YY_CURRENT_BUFFER_LVALUE-&yy_buf_
sfatin&=&YY_CURRENT_BUFFER_LVALUE-&yy_input_
(yy_hold_char)&=&*(yy_c_buf_p);
/**&Allocate&and&initialize&an&input&buffer&state.
&*&@param&file&A&readable&stream.
&*&@param&size&The&character&buffer&size&in&bytes.&When&in&doubt,&use&@c&YY_BUF_SIZE.
&*&@return&the&allocated&buffer&state.
&&&&YY_BUFFER_STATE&sfat_create_buffer&&(FILE&*&file,&int&&size&)
YY_BUFFER_STATE&b;
b&=&(YY_BUFFER_STATE)&sfatalloc(sizeof(&struct&yy_buffer_state&)&&);
if&(&!&b&)
YY_FATAL_ERROR(&&out&of&dynamic&memory&in&sfat_create_buffer()&&);
b-&yy_buf_size&=&
/*&yy_ch_buf&has&to&be&2&characters&longer&than&the&size&given&because
&*&we&need&to&put&in&2&end-of-buffer&characters.
b-&yy_ch_buf&=&(char&*)&sfatalloc(b-&yy_buf_size&+&2&&);
if&(&!&b-&yy_ch_buf&)
YY_FATAL_ERROR(&&out&of&dynamic&memory&in&sfat_create_buffer()&&);
b-&yy_is_our_buffer&=&1;
sfat_init_buffer(b,file&);
/**&Destroy&the&buffer.
&*&@param&b&a&buffer&created&with&sfat_create_buffer()
&&&&void&sfat_delete_buffer&(YY_BUFFER_STATE&&b&)
if&(&!&b&)
if&(&b&==&YY_CURRENT_BUFFER&)&/*&Not&sure&if&we&should&pop&here.&*/
YY_CURRENT_BUFFER_LVALUE&=&(YY_BUFFER_STATE)&0;
if&(&b-&yy_is_our_buffer&)
sfatfree((void&*)&b-&yy_ch_buf&&);
sfatfree((void&*)&b&&);
/*&Initializes&or&reinitializes&a&buffer.
&*&This&function&is&sometimes&called&more&than&once&on&the&same&buffer,
&*&such&as&during&a&sfatrestart()&or&at&EOF.
&&&&static&void&sfat_init_buffer&&(YY_BUFFER_STATE&&b,&FILE&*&file&)
int&oerrno&=&
sfat_flush_buffer(b&);
b-&yy_input_file&=&
b-&yy_fill_buffer&=&1;
&&&&/*&If&b&is&the&current&buffer,&then&sfat_init_buffer&was&_probably_
&&&&&*&called&from&sfatrestart()&or&through&yy_get_next_buffer.
&&&&&*&In&that&case,&we&don't&want&to&reset&the&lineno&or&column.
&&&&if&(b&!=&YY_CURRENT_BUFFER){
&&&&&&&&b-&yy_bs_lineno&=&1;
&&&&&&&&b-&yy_bs_column&=&0;
&&&&&&&&b-&yy_is_interactive&=&0;
/**&Discard&all&buffered&characters.&On&the&next&scan,&YY_INPUT&will&be&called.
&*&@param&b&the&buffer&state&to&be&flushed,&usually&@c&YY_CURRENT_BUFFER.
&&&&void&sfat_flush_buffer&(YY_BUFFER_STATE&&b&)
&&&& if&(&!&b&)
b-&yy_n_chars&=&0;
/*&We&always&need&two&end-of-buffer&characters.&&The&first&causes
&*&a&transition&to&the&end-of-buffer&state.&&The&second&causes
&*&a&jam&in&that&state.
b-&yy_ch_buf[0]&=&YY_END_OF_BUFFER_CHAR;
b-&yy_ch_buf[1]&=&YY_END_OF_BUFFER_CHAR;
b-&yy_buf_pos&=&&b-&yy_ch_buf[0];
b-&yy_at_bol&=&1;
b-&yy_buffer_status&=&YY_BUFFER_NEW;
if&(&b&==&YY_CURRENT_BUFFER&)
sfat_load_buffer_state(&);
/**&Pushes&the&new&state&onto&the&stack.&The&new&state&becomes
&*&&the&current&state.&This&function&will&allocate&the&stack
&*&&if&necessary.
&*&&@param&new_buffer&The&new&state.
void&sfatpush_buffer_state&(YY_BUFFER_STATE&new_buffer&)
&&&& if&(new_buffer&==&NULL)
sfatensure_buffer_stack();
/*&This&block&is&copied&from&sfat_switch_to_buffer.&*/
if&(&YY_CURRENT_BUFFER&)
/*&Flush&out&information&for&old&buffer.&*/
*(yy_c_buf_p)&=&(yy_hold_char);
YY_CURRENT_BUFFER_LVALUE-&yy_buf_pos&=&(yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE-&yy_n_chars&=&(yy_n_chars);
/*&Only&push&if&top&exists.&Otherwise,&replace&top.&*/
if&(YY_CURRENT_BUFFER)
(yy_buffer_stack_top)++;
YY_CURRENT_BUFFER_LVALUE&=&new_
/*&copied&from&sfat_switch_to_buffer.&*/
sfat_load_buffer_state(&);
(yy_did_buffer_switch_on_eof)&=&1;
/**&Removes&and&deletes&the&top&of&the&stack,&if&present.
&*&&The&next&element&becomes&the&new&top.
void&sfatpop_buffer_state&(void)
&&&& if&(!YY_CURRENT_BUFFER)
sfat_delete_buffer(YY_CURRENT_BUFFER&);
YY_CURRENT_BUFFER_LVALUE&=&NULL;
if&((yy_buffer_stack_top)&&&0)
--(yy_buffer_stack_top);
if&(YY_CURRENT_BUFFER)&{
sfat_load_buffer_state(&);
(yy_did_buffer_switch_on_eof)&=&1;
/*&Allocates&the&stack&if&it&does&not&exist.
&*&&Guarantees&space&for&at&least&one&push.
static&void&sfatensure_buffer_stack&(void)
int&num_to_
if&(!(yy_buffer_stack))&{
/*&First&allocation&is&just&for&2&elements,&since&we&don't&know&if&this
&*&scanner&will&even&need&a&stack.&We&use&2&instead&of&1&to&avoid&an
&*&immediate&realloc&on&the&next&call.
&&&&&&&&&*/
num_to_alloc&=&1;
(yy_buffer_stack)&=&(struct&yy_buffer_state**)sfatalloc
(num_to_alloc&*&sizeof(struct&yy_buffer_state*)
memset((yy_buffer_stack),&0,&num_to_alloc&*&sizeof(struct&yy_buffer_state*));
(yy_buffer_stack_max)&=&num_to_
(yy_buffer_stack_top)&=&0;
if&((yy_buffer_stack_top)&&=&((yy_buffer_stack_max))&-&1){
/*&Increase&the&buffer&to&prepare&for&a&possible&push.&*/
int&grow_size&=&8&/*&arbitrary&grow&size&*/;
num_to_alloc&=&(yy_buffer_stack_max)&+&grow_
(yy_buffer_stack)&=&(struct&yy_buffer_state**)sfatrealloc
((yy_buffer_stack),
num_to_alloc&*&sizeof(struct&yy_buffer_state*)
/*&zero&only&the&new&slots.*/
memset((yy_buffer_stack)&+&(yy_buffer_stack_max),&0,&grow_size&*&sizeof(struct&yy_buffer_state*));
(yy_buffer_stack_max)&=&num_to_
/**&Setup&the&input&buffer&state&to&scan&directly&from&a&user-specified&character&buffer.
&*&@param&base&the&character&buffer
&*&@param&size&the&size&in&bytes&of&the&character&buffer
&*&@return&the&newly&allocated&buffer&state&object.&
YY_BUFFER_STATE&sfat_scan_buffer&&(char&*&base,&yy_size_t&&size&)
YY_BUFFER_STATE&b;
if&(&size&&&2&||
&&&&&base[size-2]&!=&YY_END_OF_BUFFER_CHAR&||
&&&&&base[size-1]&!=&YY_END_OF_BUFFER_CHAR&)
/*&They&forgot&to&leave&room&for&the&EOB's.&*/
b&=&(YY_BUFFER_STATE)&sfatalloc(sizeof(&struct&yy_buffer_state&)&&);
if&(&!&b&)
YY_FATAL_ERROR(&&out&of&dynamic&memory&in&sfat_scan_buffer()&&);
b-&yy_buf_size&=&size&-&2; /*&&-&2&&to&take&care&of&EOB's&*/
b-&yy_buf_pos&=&b-&yy_ch_buf&=&
b-&yy_is_our_buffer&=&0;
b-&yy_input_file&=&0;
b-&yy_n_chars&=&b-&yy_buf_
b-&yy_is_interactive&=&0;
b-&yy_at_bol&=&1;
b-&yy_fill_buffer&=&0;
b-&yy_buffer_status&=&YY_BUFFER_NEW;
sfat_switch_to_buffer(b&&);
/**&Setup&the&input&buffer&state&to&scan&a&string.&The&next&call&to&sfatlex()&will
&*&scan&from&a&@e&copy&of&@a&str.
&*&@param&str&a&NUL-terminated&string&to&scan
&*&@return&the&newly&allocated&buffer&state&object.
&*&@note&If&you&want&to&scan&bytes&that&may&contain&NUL&values,&then&use
&*&&&&&&&sfat_scan_bytes()&instead.
YY_BUFFER_STATE&sfat_scan_string&(yyconst&char&*&yystr&)
return&sfat_scan_bytes(yystr,strlen(yystr)&);
/**&Setup&the&input&buffer&state&to&scan&the&given&bytes.&The&next&call&to&sfatlex()&will
&*&scan&from&a&@e&copy&of&@a&bytes.
&*&@param&bytes&the&byte&buffer&to&scan
&*&@param&len&the&number&of&bytes&in&the&buffer&pointed&to&by&@a&bytes.
&*&@return&the&newly&allocated&buffer&state&object.
YY_BUFFER_STATE&sfat_scan_bytes&&(yyconst&char&*&yybytes,&int&&_yybytes_len&)
YY_BUFFER_STATE&b;
yy_size_t&n;
/*&Get&memory&for&full&buffer,&including&space&for&trailing&EOB's.&*/
n&=&_yybytes_len&+&2;
buf&=&(char&*)&sfatalloc(n&&);
if&(&!&buf&)
YY_FATAL_ERROR(&&out&of&dynamic&memory&in&sfat_scan_bytes()&&);
for&(&i&=&0;&i&&&_yybytes_&++i&)
buf[i]&=&yybytes[i];
buf[_yybytes_len]&=&buf[_yybytes_len+1]&=&YY_END_OF_BUFFER_CHAR;
b&=&sfat_scan_buffer(buf,n&);
if&(&!&b&)
YY_FATAL_ERROR(&&bad&buffer&in&sfat_scan_bytes()&&);
/*&It's&okay&to&grow&etc.&this&buffer,&and&we&should&throw&it
&*&away&when&we're&done.
b-&yy_is_our_buffer&=&1;
#ifndef&YY_EXIT_FAILURE
#define&YY_EXIT_FAILURE&2
static&void&yy_fatal_error&(yyconst&char*&msg&)
&&&& (void)&fprintf(&stderr,&&%sn&,&msg&);
exit(&YY_EXIT_FAILURE&);
/*&Redefine&yyless()&so&it&works&in&section&3&code.&*/
#undef&yyless
#define&yyless(n)&
/*&Undo&effects&of&setting&up&sfattext.&*/&
&&&&&&&&int&yyless_macro_arg&=&(n);&
&&&&&&&&YY_LESS_LINENO(yyless_macro_arg);
sfattext[sfatleng]&=&(yy_hold_char);&
(yy_c_buf_p)&=&sfattext&+&yyless_macro_&
(yy_hold_char)&=&*(yy_c_buf_p);&
*(yy_c_buf_p)&=&'';&
sfatleng&=&yyless_macro_&
while&(&0&)
/*&Accessor&&methods&(get/set&functions)&to&struct&members.&*/
/**&Get&the&current&line&number.
int&sfatget_lineno&&(void)
&&&&return&
/**&Get&the&input&stream.
FILE&*sfatget_in&&(void)
&&&&&&&&return&
/**&Get&the&output&stream.
FILE&*sfatget_out&&(void)
&&&&&&&&return&
/**&Get&the&length&of&the&current&token.
int&sfatget_leng&&(void)
&&&&&&&&return&
/**&Get&the&current&token.
char&*sfatget_text&&(void)
&&&&&&&&return&
/**&Set&the&current&line&number.
&*&@param&line_number
void&sfatset_lineno&(int&&line_number&)
&&&&sfatlineno&=&line_
/**&Set&the&input&stream.&This&does&not&discard&the&current
&*&input&buffer.
&*&@param&in_str&A&readable&stream.
&*&@see&sfat_switch_to_buffer
void&sfatset_in&(FILE&*&&in_str&)
&&&&&&&&sfatin&=&in_str&;
void&sfatset_out&(FILE&*&&out_str&)
&&&&&&&&sfatout&=&out_str&;
int&sfatget_debug&&(void)
&&&&&&&&return&sfat_flex_
void&sfatset_debug&(int&&bdebug&)
&&&&&&&&sfat_flex_debug&=&bdebug&;
static&int&yy_init_globals&(void)
&&&&&&&&/*&Initialization&is&the&same&as&for&the&non-reentrant&scanner.
&&&&&*&This&function&is&called&from&sfatlex_destroy(),&so&don't&allocate&here.
&&&&(yy_buffer_stack)&=&0;
&&&&(yy_buffer_stack_top)&=&0;
&&&&(yy_buffer_stack_max)&=&0;
&&&&(yy_c_buf_p)&=&(char&*)&0;
&&&&(yy_init)&=&0;
&&&&(yy_start)&=&0;
/*&Defined&in&main.c&*/
#ifdef&YY_STDINIT
&&&&sfatin&=&
&&&&sfatout&=&
&&&&sfatin&=&(FILE&*)&0;
&&&&sfatout&=&(FILE&*)&0;
&&&&/*&For&future&reference:&Set&errno&on&error,&since&we&are&called&by
&&&&&*&sfatlex_init()
&&&&return&0;
/*&sfatlex_destroy&is&for&both&reentrant&and&non-reentrant&scanners.&*/
int&sfatlex_destroy&&(void)
&&&&/*&Pop&the&buffer&stack,&destroying&each&element.&*/
while(YY_CURRENT_BUFFER){
sfat_delete_buffer(YY_CURRENT_BUFFER&&);
YY_CURRENT_BUFFER_LVALUE&=&NULL;
sfatpop_buffer_state();
/*&Destroy&the&stack&itself.&*/
sfatfree((yy_buffer_stack)&);
(yy_buffer_stack)&=&NULL;
&&&&/*&Reset&the&globals.&This&is&important&in&a&non-reentrant&scanner&so&the&next&time
&&&&&*&sfatlex()&is&called,&initialization&will&occur.&*/
&&&&yy_init_globals(&);
&&&&return&0;
&*&Internal&utility&routines.
#ifndef&yytext_ptr
static&void&yy_flex_strncpy&(char*&s1,&yyconst&char&*&s2,&int&n&)
register&int&i;
for&(&i&=&0;&i&&&n;&++i&)
s1[i]&=&s2[i];
#ifdef&YY_NEED_STRLEN
static&int&yy_flex_strlen&(yyconst&char&*&s&)
register&int&n;
for&(&n&=&0;&s[n];&++n&)
void&*sfatalloc&(yy_size_t&&size&)
return&(void&*)&malloc(&size&);
void&*sfatrealloc&&(void&*&ptr,&yy_size_t&&size&)
/*&The&cast&to&(char&*)&in&the&following&accommodates&both
&*&implementations&that&use&char*&generic&pointers,&and&those
&*&that&use&void*&generic&pointers.&&It&works&with&the&latter
&*&because&both&ANSI&C&and&C++&allow&castless&assignment&from
&*&any&pointer&type&to&void*,&and&deal&with&argument&conversions
&*&as&though&doing&an&assignment.
return&(void&*)&realloc(&(char&*)&ptr,&size&);
void&sfatfree&(void&*&ptr&)
free(&(char&*)&ptr&); /*&see&sfatrealloc()&for&(char&*)&cast&*/
#define&YYTABLES_NAME&&yytables&
#line&183&&sf_attribute_table_parser.l&
char&*sfat_grammar_error=NULL;
char&sfat_grammar_error_printed=0;
char&*sfat_saved_file&=&NULL;
static&char&sfat_saved_file_set&=&0;
char&parse_error&=&0;
char&sfat_error_message[STD_BUF];
int&ParseTargetMap(char&*filename)
&&&&int&done&=&0;
&&&&int&ret&=&SFAT_ERROR;
&&&&parse_error&=&0;
&&&&sfat_grammar_error_printed&=&0;
&&&&if&(!filename)
&&&&&&&&return&SFAT_OK;
&&&&sfatin&=&fopen(filename,&&r&);
&&&&if&(!sfatin)
&&&&&&&&SnortSnprintf(sfat_error_message,&STD_BUF,
&&&&&&&&&&&&&%s(%d):&Failed&to&open&target-based&attribute&file:&'%s'n&,
&&&&&&&&&&&&file_name,&file_line,&filename);
&&&&&&&&return&
&&&&sfat_filename&=&
&&&&if&(feof(sfatin))
&&&&&&&&SnortSnprintf(sfat_error_message,&STD_BUF,
&&&&&&&&&&&&&%s(%d):&Emtpy&target-based&attribute&file:&'%s'n&,
&&&&&&&&&&&&file_name,&file_line,&filename);
&&&&&&&&fclose(sfatin);
&&&&&&&&return&
&&&&done&=&sfat_parse();
&&&&if&(!done)
&&&&&&&&sfat_error(&&);
&&&&&&&&fclose(sfatin);
&&&&&&&&return&
&&&&fclose(sfatin);
&&&&if&(parse_error&==&1)
&&&&&&&&return&
&&&&ret&=&SFAT_OK;
&&&&/*&Everything&parsed&ok,&save&off&the&filename&*/
&&&&if&(sfat_saved_file_set&&&&sfat_saved_file)
&&&&&&&&if&(!strcmp(sfat_saved_file,&sfat_filename))
&&&&&&&&&&&&/*&Same&filename,&we're&done.&*/
&&&&&&&&&&&&return&
&&&&&&&&sfat_saved_file_set&=&0;
&&&&/*&Save&off&the&new&filename.&*/
&&&&if&(sfat_saved_file)
&&&&&&&&free(sfat_saved_file);
&&&&sfat_saved_file&=&SnortStrdup(sfat_filename);
&&&&sfat_saved_file_set&=&1;
&&&&return&
void&sfat_error(char&*err)
&&&&if&(sfat_grammar_error_printed&!=&0)
&&&&&&&&parse_error&=&1;
&&&&if&(sfat_grammar_error)
&&&&&&&&SnortSnprintf(sfat_error_message,&STD_BUF,
&&&&&&&&&&&&&%s(%d)&==&&Invalid&Attribute&Table&specification:&'%s'.n&
&&&&&&&&&&&&&Please&verify&the&grammar&at&or&near&line&%d&(tag&'%s'):&%sn&,
&&&&&&&&&&&&file_name,&file_line,&sfat_filename,&sfat_linenumber,&sfattext,
&&&&&&&&&&&&sfat_grammar_error);
&&&&&&&&SnortSnprintf(sfat_error_message,&STD_BUF,
&&&&&&&&&&&&&%s(%d)&==&&Invalid&Attribute&Table&specification:&'%s'.n&
&&&&&&&&&&&&&Please&verify&the&grammar&at&or&near&line&%d&(tag&'%s').n&,
&&&&&&&&&&&&file_name,&file_line,&sfat_filename,&sfat_linenumber,&sfattext);
&&&&parse_error&=&1;
#endif&/*&TARGET_BASED&*/
CopyRight &
verySource.Com All Rights reserved.  京公网安备:88

我要回帖

更多关于 单片机0xff是什么意思 的文章

 

随机推荐