~ubuntu-branches/ubuntu/precise/cmake/precise-updates

« back to all changes in this revision

Viewing changes to Source/cmExprLexer.cxx

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-01-17 23:04:07 UTC
  • mfrom: (1.13.6)
  • Revision ID: package-import@ubuntu.com-20120117230407-14cdb6g0mxmh29bl
Tags: 2.8.7-0ubuntu1
* New upstream release
  - Add increase_ctest_test_timeout.diff to increase timeout period
    of a test

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
typedef signed char flex_int8_t;
45
45
typedef short int flex_int16_t;
46
46
typedef int flex_int32_t;
47
 
typedef unsigned char flex_uint8_t; 
 
47
typedef unsigned char flex_uint8_t;
48
48
typedef unsigned short int flex_uint16_t;
49
49
typedef unsigned int flex_uint32_t;
50
50
#endif /* ! C99 */
165
165
#define EOB_ACT_LAST_MATCH 2
166
166
 
167
167
    #define YY_LESS_LINENO(n)
168
 
    
 
168
 
169
169
/* Return all but the first "n" matched characters back to the input
170
170
   stream. */
171
171
#define yyless(n) \
231
231
 
232
232
    int yy_bs_lineno; /**< The line count. */
233
233
    int yy_bs_column; /**< The column count. */
234
 
    
 
234
 
235
235
  /* Whether to try to fill the input buffer when we reach the
236
236
   * end of it.
237
237
   */
787
787
case 1:
788
788
YY_RULE_SETUP
789
789
#line 88 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
790
 
{ yylvalp->Number = atoi(yytext); return exp_NUMBER; } 
 
790
{ yylvalp->Number = atoi(yytext); return exp_NUMBER; }
791
791
case 2:
792
792
YY_RULE_SETUP
793
793
#line 90 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
795
795
case 3:
796
796
YY_RULE_SETUP
797
797
#line 91 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
798
 
{ return exp_MINUS; } 
 
798
{ return exp_MINUS; }
799
799
case 4:
800
800
YY_RULE_SETUP
801
801
#line 92 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
802
 
{ return exp_TIMES; } 
 
802
{ return exp_TIMES; }
803
803
case 5:
804
804
YY_RULE_SETUP
805
805
#line 93 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
806
 
{ return exp_DIVIDE; } 
 
806
{ return exp_DIVIDE; }
807
807
case 6:
808
808
YY_RULE_SETUP
809
809
#line 94 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
810
 
{ return exp_MOD; } 
 
810
{ return exp_MOD; }
811
811
case 7:
812
812
YY_RULE_SETUP
813
813
#line 95 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
814
 
{ return exp_OR; } 
 
814
{ return exp_OR; }
815
815
case 8:
816
816
YY_RULE_SETUP
817
817
#line 96 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
818
 
{ return exp_AND; } 
 
818
{ return exp_AND; }
819
819
case 9:
820
820
YY_RULE_SETUP
821
821
#line 97 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
822
 
{ return exp_XOR; } 
 
822
{ return exp_XOR; }
823
823
case 10:
824
824
YY_RULE_SETUP
825
825
#line 98 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
826
 
{ return exp_NOT; } 
 
826
{ return exp_NOT; }
827
827
case 11:
828
828
YY_RULE_SETUP
829
829
#line 99 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
830
 
{ return exp_SHIFTLEFT; } 
 
830
{ return exp_SHIFTLEFT; }
831
831
case 12:
832
832
YY_RULE_SETUP
833
833
#line 100 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
834
 
{ return exp_SHIFTRIGHT; } 
 
834
{ return exp_SHIFTRIGHT; }
835
835
case 13:
836
836
YY_RULE_SETUP
837
837
#line 101 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
1319
1319
    YY_BUFFER_STATE cmExpr_yy_create_buffer  (FILE * file, int  size , yyscan_t yyscanner)
1320
1320
{
1321
1321
  YY_BUFFER_STATE b;
1322
 
    
 
1322
 
1323
1323
  b = (YY_BUFFER_STATE) cmExpr_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
1324
1324
  if ( ! b )
1325
1325
    YY_FATAL_ERROR( "out of dynamic memory in cmExpr_yy_create_buffer()" );
1363
1363
#ifndef __cplusplus
1364
1364
extern int isatty (int );
1365
1365
#endif /* __cplusplus */
1366
 
    
 
1366
 
1367
1367
/* Initializes or reinitializes a buffer.
1368
1368
 * This function is sometimes called more than once on the same buffer,
1369
1369
 * such as during a cmExpr_yyrestart() or at EOF.
1389
1389
    }
1390
1390
 
1391
1391
        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1392
 
    
 
1392
 
1393
1393
  errno = oerrno;
1394
1394
}
1395
1395
 
1493
1493
    yyg->yy_buffer_stack = (struct yy_buffer_state**)cmExpr_yyalloc
1494
1494
                (nuto_alloc * sizeof(struct yy_buffer_state*)
1495
1495
                , yyscanner);
1496
 
    
 
1496
 
1497
1497
    memset(yyg->yy_buffer_stack, 0, nuto_alloc * sizeof(struct yy_buffer_state*));
1498
 
        
 
1498
 
1499
1499
    yyg->yy_buffer_stack_max = nuto_alloc;
1500
1500
    yyg->yy_buffer_stack_top = 0;
1501
1501
    return;
1522
1522
 * @param base the character buffer
1523
1523
 * @param size the size in bytes of the character buffer
1524
1524
 * @param yyscanner The scanner object.
1525
 
 * @return the newly allocated buffer state object. 
 
1525
 * @return the newly allocated buffer state object.
1526
1526
 */
1527
1527
YY_BUFFER_STATE cmExpr_yy_scan_buffer  (char * base, yy_size_t  size , yyscan_t yyscanner)
1528
1528
{
1529
1529
  YY_BUFFER_STATE b;
1530
 
    
 
1530
 
1531
1531
  if ( size < 2 ||
1532
1532
       base[size-2] != YY_END_OF_BUFFER_CHAR ||
1533
1533
       base[size-1] != YY_END_OF_BUFFER_CHAR )
1554
1554
}
1555
1555
 
1556
1556
/** Setup the input buffer state to scan a string. The next call to cmExpr_yylex() will
1557
 
 * scan from a @e copy of @a str.
1558
 
 * @param str a NUL-terminated string to scan
 
1557
 * scan from a @e copy of @a yy_str.
1559
1558
 * @param yy_str a NUL-terminated string to scan
1560
1559
 * @param yyscanner The scanner object.
1561
1560
 * @return the newly allocated buffer state object.
1564
1563
 */
1565
1564
YY_BUFFER_STATE cmExpr_yy_scan_string (yyconst char * yy_str , yyscan_t yyscanner)
1566
1565
{
1567
 
    
 
1566
 
1568
1567
  return cmExpr_yy_scan_bytes(yy_str,strlen(yy_str) ,yyscanner);
1569
1568
}
1570
1569
 
1581
1580
  char *buf;
1582
1581
  yy_size_t n;
1583
1582
  int i;
1584
 
    
 
1583
 
1585
1584
  /* Get memory for full buffer, including space for trailing EOB's. */
1586
1585
  n = len + 2;
1587
1586
  buf = (char *) cmExpr_yyalloc(n ,yyscanner );
1649
1648
int cmExpr_yyget_lineno  (yyscan_t yyscanner)
1650
1649
{
1651
1650
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1652
 
    
 
1651
 
1653
1652
        if (! YY_CURRENT_BUFFER)
1654
1653
            return 0;
1655
 
    
 
1654
 
1656
1655
    return yylineno;
1657
1656
}
1658
1657
 
1662
1661
int cmExpr_yyget_column  (yyscan_t yyscanner)
1663
1662
{
1664
1663
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1665
 
    
 
1664
 
1666
1665
        if (! YY_CURRENT_BUFFER)
1667
1666
            return 0;
1668
 
    
 
1667
 
1669
1668
    return yycolumn;
1670
1669
}
1671
1670
 
1726
1725
 
1727
1726
        /* lineno is only valid if an input buffer exists. */
1728
1727
        if (! YY_CURRENT_BUFFER )
1729
 
           yy_fatal_error( "cmExpr_yyset_lineno called with no buffer" , yyscanner); 
1730
 
    
 
1728
           yy_fatal_error( "cmExpr_yyset_lineno called with no buffer" , yyscanner);
 
1729
 
1731
1730
    yylineno = line_number;
1732
1731
}
1733
1732
 
1734
1733
/** Set the current column.
1735
 
 * @param line_number
 
1734
 * @param column_no
1736
1735
 * @param yyscanner The scanner object.
1737
1736
 */
1738
1737
void cmExpr_yyset_column (int  column_no , yyscan_t yyscanner)
1741
1740
 
1742
1741
        /* column is only valid if an input buffer exists. */
1743
1742
        if (! YY_CURRENT_BUFFER )
1744
 
           yy_fatal_error( "cmExpr_yyset_column called with no buffer" , yyscanner); 
1745
 
    
 
1743
           yy_fatal_error( "cmExpr_yyset_column called with no buffer" , yyscanner);
 
1744
 
1746
1745
    yycolumn = column_no;
1747
1746
}
1748
1747