📄 config_scan.c
字号:
666, 260, 260, 260, 260, 260, 260, 260, 261, 696, 261, 261, 261, 261, 261, 261, 261, 267, 665, 267, 267, 267, 267, 267, 267, 267, 268, 662, 268, 268, 268, 268, 268, 268, 268, 271, 660, 271, 271, 271, 271, 271, 271, 271, 272, 651, 272, 272, 272, 272, 272, 272, 272, 311, 312, 311, 650, 311, 313, 314, 649, 648, 312, 314, 312, 314, 313, 315, 313, 315, 316, 315, 318, 317, 318, 317, 316, 317, 316, 647, 319, 317, 319, 320, 646, 320, 319, 321, 645, 321, 321, 320, 322, 323, 322, 323, 324, 325, 324, 325, 322, 326, 325, 326, 327, 713, 327, 324, 328, 329, 328, 329, 330, 328, 330, 331, 333, 336, 713, 331, 333, 331, 333, 334, 329, 334, 335, 644, 335, 334, 387, 335, 387, 389, 387, 389, 391, 394, 391, 394, 391, 336, 398, 336, 398, 336, 342, 342, 342, 342, 342, 342, 342, 343, 642, 343, 343, 343, 343, 343, 343, 343, 344, 344, 344, 344, 344, 344, 344, 350, 350, 350, 350, 350, 350, 350, 351, 640, 351, 351, 351, 351, 351, 351, 351, 352, 352, 352, 352, 352, 352, 352, 355, 355, 355, 355, 355, 355, 355, 356, 638, 356, 356, 356, 356, 356, 356, 356, 357, 357, 357, 357, 357, 357, 357, 390, 392, 390, 392, 637, 395, 393, 395, 635, 621, 390, 392, 393, 620, 393, 395, 396, 397, 396, 397, 399, 397, 399, 400, 399, 396, 401, 400, 402, 400, 403, 619, 403, 402, 401, 402, 401, 404, 714, 405, 403, 407, 404, 407, 404, 405, 406, 405, 406, 408, 617, 714, 406, 407, 410, 616, 410, 408, 411, 408, 411, 614, 412, 411, 412, 414, 413, 460, 413, 460, 413, 412, 413, 414, 611, 414, 419, 610, 419, 419, 419, 419, 419, 419, 419, 425, 608, 425, 425, 425, 425, 425, 425, 425, 429, 607, 429, 429, 429, 429, 429, 429, 429, 461, 462, 463, 462, 463, 461, 464, 461, 464, 465, 466, 465, 463, 467, 468, 467, 603, 473, 466, 473, 466, 469, 468, 469, 468, 470, 469, 470, 471, 601, 471, 470, 472, 471, 472, 474, 600, 474, 472, 475, 474, 475, 476, 480, 477, 480, 476, 475, 476, 477, 479, 477, 479, 480, 481, 482, 481, 482, 479, 483, 482, 483, 484, 597, 484, 484, 596, 483, 489, 489, 489, 489, 489, 489, 489, 490, 577, 490, 490, 490, 490, 490, 490, 490, 494, 494, 494, 494, 494, 494, 494, 495, 576, 495, 495, 495, 495, 495, 495, 495, 498, 498, 498, 498, 498, 498, 498, 499, 575, 499, 499, 499, 499, 499, 499, 499, 524, 525, 524, 526, 527, 526, 527, 573, 525, 527, 525, 572, 528, 526, 528, 529, 530, 529, 530, 531, 532, 531, 532, 532, 533, 571, 533, 530, 534, 535, 534, 535, 537, 569, 535, 533, 536, 537, 536, 537, 540, 538, 536, 538, 539, 568, 539, 540, 541, 540, 541, 538, 542, 543, 542, 567, 564, 543, 541, 543, 548, 548, 548, 548, 548, 548, 548, 553, 553, 553, 553, 553, 553, 553, 557, 557, 557, 557, 557, 557, 557, 579, 580, 579, 580, 581, 582, 581, 582, 581, 583, 584, 583, 584, 585, 586, 587, 586, 587, 563, 562, 584, 585, 560, 585, 586, 588, 589, 588, 589, 590, 591, 590, 591, 559, 589, 588, 592, 590, 592, 593, 594, 593, 594, 558, 595, 593, 595, 555, 622, 592, 622, 554, 594, 599, 599, 599, 599, 599, 599, 599, 602, 602, 602, 602, 602, 602, 602, 606, 606, 606, 606, 606, 606, 606, 623, 552, 623, 623, 624, 625, 624, 625, 626, 627, 626, 627, 628, 629, 628, 629, 551, 628, 629, 630, 631, 630, 631, 632, 633, 632, 633, 652, 631, 652, 653, 632, 655, 654, 653, 654, 653, 654, 655, 656, 655, 656, 657, 658, 659, 658, 659, 549, 547, 656, 657, 673, 657, 673, 674, 676, 674, 676, 546, 674, 676, 673, 675, 675, 544, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 677, 678, 677, 678, 679, 677, 679, 678, 680, 692, 523, 692, 680, 698, 680, 693, 679, 693, 697, 698, 697, 698, 522, 699, 692, 699, 693, 700, 701, 700, 701, 711, 701, 711, 712, 715, 712, 715, 716, 717, 716, 717, 718, 716, 712, 723, 718, 723, 718, 724, 725, 724, 726, 730, 725, 730, 725, 726, 731, 726, 731, 732, 731, 732, 734, 738, 736, 738, 734, 521, 734, 736, 520, 736, 740, 740, 740, 740, 740, 740, 740, 741, 741, 741, 741, 741, 741, 741, 742, 742, 742, 742, 742, 742, 742, 743, 743, 518, 743, 743, 743, 743, 744, 517, 744, 745, 516, 515, 745, 745, 745, 745, 746, 746, 514, 746, 746, 746, 746, 747, 747, 513, 747, 747, 747, 747, 748, 512, 510, 748, 748, 748, 749, 749, 509, 749, 749, 749, 749, 750, 508, 507, 750, 750, 750, 751, 751, 506, 751, 751, 751, 751, 752, 505, 752, 753, 503, 501, 753, 500, 753, 755, 497, 755, 756, 496, 493, 756, 756, 756, 756, 757, 492, 757, 758, 491, 488, 758, 487, 758, 759, 486, 759, 760, 485, 760, 761, 459, 761, 763, 458, 763, 765, 457, 765, 767, 456, 767, 770, 770, 455, 770, 770, 770, 770, 771, 771, 454, 771, 771, 771, 771, 772, 772, 452, 772, 772, 772, 772, 773, 773, 451, 773, 773, 773, 773, 450, 449, 447, 446, 445, 444, 443, 441, 440, 439, 438, 437, 435, 433, 432, 431, 430, 428, 427, 426, 424, 422, 421, 420, 418, 417, 416, 415, 409, 388, 386, 385, 383, 382, 381, 380, 379, 378, 377, 376, 375, 374, 373, 372, 371, 370, 368, 367, 366, 365, 363, 362, 360, 359, 354, 353, 349, 348, 347, 345, 341, 340, 339, 338, 332, 307, 306, 305, 304, 303, 302, 301, 300, 297, 296, 295, 294, 293, 292, 291, 288, 287, 286, 285, 284, 283, 281, 280, 276, 275, 274, 273, 270, 269, 266, 265, 264, 263, 262, 258, 257, 256, 227, 226, 225, 224, 223, 222, 221, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 205, 204, 203, 202, 201, 200, 199, 198, 195, 194, 192, 186, 185, 180, 179, 178, 177, 176, 169, 168, 167, 166, 138, 137, 135, 134, 133, 132, 130, 129, 128, 127, 125, 124, 123, 122, 121, 120, 119, 117, 116, 115, 113, 108, 107, 106, 105, 99, 97, 96, 95, 94, 90, 89, 88, 84, 83, 81, 80, 75, 74, 73, 53, 52, 51, 47, 46, 43, 42, 41, 40, 37, 36, 31, 20, 19, 12, 11, 6, 5, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739 } ;static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;static char *yy_full_match;static int yy_lp;#define REJECT \{ \*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \yy_cp = yy_full_match; /* restore poss. backed-over text */ \++yy_lp; \goto find_rule; \}#define yymore() yymore_used_but_not_detected#define YY_MORE_ADJ 0#define YY_RESTORE_YY_MORE_OFFSETchar *yytext;#line 1 "config_scan.l"#define INITIAL 0/* * Copyright (c) 1997, 1998, 1999 * Inferno Nettverk A/S, Norway. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. The above copyright notice, this list of conditions and the following * disclaimer must appear in all copies of the software, derivative works * or modified versions, and any portions thereof, aswell as in all * supporting documentation. * 2. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by * Inferno Nettverk A/S, Norway. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Inferno Nettverk A/S requests users of this software to return to * * Software Distribution Coordinator or sdc@inet.no * Inferno Nettverk A/S * Oslo Research Park * Gaustadal閑n 21 * N-0349 Oslo * Norway * * any improvements or extensions that they make and grant Inferno Nettverk A/S * the rights to redistribute these changes. * */#line 45 "config_scan.l"#include "common.h"#include "yacconfig.h"#include "config_parse.h"extern int parseinit;extern const int configtype;static const char rcsid[] ="$Id: config_scan.l,v 1.51 1999/12/22 09:29:24 karls Exp $";/*%option debug *//* non-exclusive startconditions. */#define start_address 1#define start_port 2/* exclusive startconditions */#define lineprefix 3#define start_command 4#define start_compatibility 5#define start_line 6#define start_log 7#define start_logoutput 8#define start_option 9#define start_proxyprotocol 10#define start_username 11#define start_service 12#define start_srchost 13#define start_protocol 14#line 1215 "lex.yy.c"/* Macros after this point can all be overridden by user definitions in * section 1. */#ifndef YY_SKIP_YYWRAP#ifdef __cplusplusextern "C" int yywrap YY_PROTO(( void ));#elseextern int yywrap YY_PROTO(( void ));#endif#endif#ifndef YY_NO_UNPUTstatic void yyunput YY_PROTO(( int c, char *buf_ptr ));#endif#ifndef yytext_ptrstatic void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));#endif#ifdef YY_NEED_STRLENstatic int yy_flex_strlen YY_PROTO(( yyconst char * ));#endif#ifndef YY_NO_INPUT#ifdef __cplusplusstatic int yyinput YY_PROTO(( void ));#elsestatic int input YY_PROTO(( void ));#endif#endif#if YY_STACK_USEDstatic int yy_start_stack_ptr = 0;static int yy_start_stack_depth = 0;static int *yy_start_stack = 0;#ifndef YY_NO_PUSH_STATEstatic void yy_push_state YY_PROTO(( int new_state ));#endif#ifndef YY_NO_POP_STATEstatic void yy_pop_state YY_PROTO(( void ));#endif#ifndef YY_NO_TOP_STATEstatic int yy_top_state YY_PROTO(( void ));#endif#else#define YY_NO_PUSH_STATE 1#define YY_NO_POP_STATE 1#define YY_NO_TOP_STATE 1#endif#ifdef YY_MALLOC_DECLYY_MALLOC_DECL#else#ifdef __STDC__#ifndef __cplusplus#include <stdlib.h>#endif#else/* Just try to get by without declaring the routines. This will fail * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) * or sizeof(void*) != sizeof(int). */#endif#endif/* Amount of stuff to slurp up with each read. */#ifndef YY_READ_BUF_SIZE#define YY_READ_BUF_SIZE 8192#endif/* 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( yytext, yyleng, 1, yyout )#endif/* 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->yy_is_interactive ) \ { \ int c = '*', n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -