expspec_yy_cpp-source.html

来自「一个tabu search算法框架」· HTML 代码 · 共 969 行 · 第 1/5 页

HTML
969
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>EasyLocal++ Documentation</title>
  <link href="local.css" rel="stylesheet" type="text/css">
</head>

<body lang="en">

<table width="100%" border="0">
  <tbody>
    <tr>
      <td colspan="2"><h1 class="nojustify">EasyLocal++ Documentation</h1>
        <hr>
      </td>
    </tr>
    <tr>
      <td width="30" align="center">&nbsp;</td>
      <td>
<!-- Generated by Doxygen 1.2.5 on Sat Jun 9 14:57:32 2001 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>ExpSpec.yy.cpp</h1><div class="fragment"><pre>00001 <font class="preprocessor">#line 2 "ExpSpec.yy.cpp"</font>
00002 <font class="preprocessor"></font><font class="comment">/* A lexical scanner generated by flex */</font>
00003 
00004 <font class="comment">/* Scanner skeleton version:</font>
00005 <font class="comment"> * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $</font>
00006 <font class="comment"> */</font>
00007 
00008 <font class="preprocessor">#define FLEX_SCANNER</font>
00009 <font class="preprocessor"></font><font class="preprocessor">#define YY_FLEX_MAJOR_VERSION 2</font>
00010 <font class="preprocessor"></font><font class="preprocessor">#define YY_FLEX_MINOR_VERSION 5</font>
00011 <font class="preprocessor"></font>
00012 <font class="preprocessor">#include &lt;stdio.h&gt;</font>
00013 
00014 
00015 <font class="comment">/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */</font>
00016 <font class="preprocessor">#ifdef c_plusplus</font>
00017 <font class="preprocessor"></font><font class="preprocessor">#ifndef __cplusplus</font>
00018 <font class="preprocessor"></font><font class="preprocessor">#define __cplusplus</font>
00019 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00020 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00021 <font class="preprocessor"></font>
00022 
00023 <font class="preprocessor">#ifdef __cplusplus</font>
00024 <font class="preprocessor"></font>
00025 <font class="preprocessor">#include &lt;stdlib.h&gt;</font>
00026 <font class="preprocessor">#include &lt;unistd.h&gt;</font>
00027 
00028 <font class="comment">/* Use prototypes in function declarations. */</font>
00029 <font class="preprocessor">#define YY_USE_PROTOS</font>
00030 <font class="preprocessor"></font>
00031 <font class="comment">/* The "const" storage-class-modifier is valid. */</font>
00032 <font class="preprocessor">#define YY_USE_CONST</font>
00033 <font class="preprocessor"></font>
00034 <font class="preprocessor">#else   </font><font class="comment">/* ! __cplusplus */</font>
00035 
00036 <font class="preprocessor">#if __STDC__</font>
00037 <font class="preprocessor"></font>
00038 <font class="preprocessor">#define YY_USE_PROTOS</font>
00039 <font class="preprocessor"></font><font class="preprocessor">#define YY_USE_CONST</font>
00040 <font class="preprocessor"></font>
00041 <font class="preprocessor">#endif  </font><font class="comment">/* __STDC__ */</font>
00042 <font class="preprocessor">#endif  </font><font class="comment">/* ! __cplusplus */</font>
00043 
00044 <font class="preprocessor">#ifdef __TURBOC__</font>
00045 <font class="preprocessor"></font><font class="preprocessor"> #pragma warn -rch</font>
00046 <font class="preprocessor"></font><font class="preprocessor"> #pragma warn -use</font>
00047 <font class="preprocessor"></font><font class="preprocessor">#include &lt;io.h&gt;</font>
00048 <font class="preprocessor">#include &lt;stdlib.h&gt;</font>
00049 <font class="preprocessor">#define YY_USE_CONST</font>
00050 <font class="preprocessor"></font><font class="preprocessor">#define YY_USE_PROTOS</font>
00051 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00052 <font class="preprocessor"></font>
00053 <font class="preprocessor">#ifdef YY_USE_CONST</font>
00054 <font class="preprocessor"></font><font class="preprocessor">#define yyconst const</font>
00055 <font class="preprocessor"></font><font class="preprocessor">#else</font>
00056 <font class="preprocessor"></font><font class="preprocessor">#define yyconst</font>
00057 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00058 <font class="preprocessor"></font>
00059 
00060 <font class="preprocessor">#ifdef YY_USE_PROTOS</font>
00061 <font class="preprocessor"></font><font class="preprocessor">#define YY_PROTO(proto) proto</font>
00062 <font class="preprocessor"></font><font class="preprocessor">#else</font>
00063 <font class="preprocessor"></font><font class="preprocessor">#define YY_PROTO(proto) ()</font>
00064 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00065 <font class="preprocessor"></font>
00066 <font class="comment">/* Returned upon end-of-file. */</font>
00067 <font class="preprocessor">#define YY_NULL 0</font>
00068 <font class="preprocessor"></font>
00069 <font class="comment">/* Promotes a possibly negative, possibly signed char to an unsigned</font>
00070 <font class="comment"> * integer for use as an array index.  If the signed char is negative,</font>
00071 <font class="comment"> * we want to instead treat it as an 8-bit unsigned char, hence the</font>
00072 <font class="comment"> * double cast.</font>
00073 <font class="comment"> */</font>
00074 <font class="preprocessor">#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)</font>
00075 <font class="preprocessor"></font>
00076 <font class="comment">/* Enter a start condition.  This macro really ought to take a parameter,</font>
00077 <font class="comment"> * but we do it the disgusting crufty way forced on us by the ()-less</font>
00078 <font class="comment"> * definition of BEGIN.</font>
00079 <font class="comment"> */</font>
00080 <font class="preprocessor">#define BEGIN yy_start = 1 + 2 *</font>
00081 <font class="preprocessor"></font>
00082 <font class="comment">/* Translate the current start state into a value that can be later handed</font>
00083 <font class="comment"> * to BEGIN to return to the state.  The YYSTATE alias is for lex</font>
00084 <font class="comment"> * compatibility.</font>
00085 <font class="comment"> */</font>
00086 <font class="preprocessor">#define YY_START ((yy_start - 1) / 2)</font>
00087 <font class="preprocessor"></font><font class="preprocessor">#define YYSTATE YY_START</font>
00088 <font class="preprocessor"></font>
00089 <font class="comment">/* Action number for EOF rule of a given start state. */</font>
00090 <font class="preprocessor">#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)</font>
00091 <font class="preprocessor"></font>
00092 <font class="comment">/* Special action meaning "start processing a new file". */</font>
00093 <font class="preprocessor">#define YY_NEW_FILE yyrestart( yyin )</font>
00094 <font class="preprocessor"></font>
00095 <font class="preprocessor">#define YY_END_OF_BUFFER_CHAR 0</font>
00096 <font class="preprocessor"></font>
00097 <font class="comment">/* Size of default input buffer. */</font>
00098 <font class="preprocessor">#define YY_BUF_SIZE 16384</font>
00099 <font class="preprocessor"></font>
00100 <font class="keyword">typedef</font> <font class="keyword">struct </font>yy_buffer_state *YY_BUFFER_STATE;
00101 
00102 <font class="keyword">extern</font> <font class="keywordtype">int</font> yyleng;
00103 <font class="keyword">extern</font> FILE *yyin, *yyout;
00104 
00105 <font class="preprocessor">#define EOB_ACT_CONTINUE_SCAN 0</font>
00106 <font class="preprocessor"></font><font class="preprocessor">#define EOB_ACT_END_OF_FILE 1</font>
00107 <font class="preprocessor"></font><font class="preprocessor">#define EOB_ACT_LAST_MATCH 2</font>
00108 <font class="preprocessor"></font>
00109 <font class="comment">/* The funky do-while in the following #define is used to turn the definition</font>
00110 <font class="comment"> * int a single C statement (which needs a semi-colon terminator).  This</font>
00111 <font class="comment"> * avoids problems with code like:</font>
00112 <font class="comment"> *</font>
00113 <font class="comment"> *      if ( condition_holds )</font>
00114 <font class="comment"> *              yyless( 5 );</font>
00115 <font class="comment"> *      else</font>
00116 <font class="comment"> *              do_something_else();</font>
00117 <font class="comment"> *</font>
00118 <font class="comment"> * Prior to using the do-while the compiler would get upset at the</font>
00119 <font class="comment"> * "else" because it interpreted the "if" statement as being all</font>
00120 <font class="comment"> * done when it reached the ';' after the yyless() call.</font>
00121 <font class="comment"> */</font>
00122 
00123 <font class="comment">/* Return all but the first 'n' matched characters back to the input stream. */</font>
00124 
00125 <font class="preprocessor">#define yyless(n) \</font>
00126 <font class="preprocessor">        do \</font>
00127 <font class="preprocessor">                { \</font>
00128 <font class="preprocessor">                </font><font class="comment">/* Undo effects of setting up yytext. */</font> \
00129                 *yy_cp = yy_hold_char; \
00130                 YY_RESTORE_YY_MORE_OFFSET \
00131                 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
00132                 YY_DO_BEFORE_ACTION; <font class="comment">/* set up yytext again */</font> \
00133                 } \
00134         while ( 0 )
00135 
00136 <font class="preprocessor">#define unput(c) yyunput( c, yytext_ptr )</font>
00137 <font class="preprocessor"></font>
00138 <font class="comment">/* The following is because we cannot portably get our hands on size_t</font>
00139 <font class="comment"> * (without autoconf's help, which isn't available because we want</font>
00140 <font class="comment"> * flex-generated scanners to compile on their own).</font>
00141 <font class="comment"> */</font>
00142 <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> yy_size_t;
00143 
00144 
00145 <font class="keyword">struct </font>yy_buffer_state
00146         {
00147         FILE *yy_input_file;
00148 
00149         <font class="keywordtype">char</font> *yy_ch_buf;                <font class="comment">/* input buffer */</font>
00150         <font class="keywordtype">char</font> *yy_buf_pos;               <font class="comment">/* current position in input buffer */</font>
00151 
00152         <font class="comment">/* Size of input buffer in bytes, not including room for EOB</font>
00153 <font class="comment">         * characters.</font>
00154 <font class="comment">         */</font>
00155         yy_size_t yy_buf_size;
00156 
00157         <font class="comment">/* Number of characters read into yy_ch_buf, not including EOB</font>
00158 <font class="comment">         * characters.</font>
00159 <font class="comment">         */</font>
00160         <font class="keywordtype">int</font> yy_n_chars;
00161 
00162         <font class="comment">/* Whether we "own" the buffer - i.e., we know we created it,</font>
00163 <font class="comment">         * and can realloc() it to grow it, and should free() it to</font>
00164 <font class="comment">         * delete it.</font>
00165 <font class="comment">         */</font>
00166         <font class="keywordtype">int</font> yy_is_our_buffer;
00167 
00168         <font class="comment">/* Whether this is an "interactive" input source; if so, and</font>
00169 <font class="comment">         * if we're using stdio for input, then we want to use getc()</font>
00170 <font class="comment">         * instead of fread(), to make sure we stop fetching input after</font>

⌨️ 快捷键说明

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