~ubuntu-branches/ubuntu/saucy/bluez/saucy

« back to all changes in this revision

Viewing changes to tools/lexer.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-07-04 13:28:49 UTC
  • mfrom: (1.1.38)
  • Revision ID: package-import@ubuntu.com-20120704132849-tmwu1x7p2vxcclt1
Tags: 4.101-0ubuntu1
* New upstream release
* debian/libbluetooth3.symbols:
  - Updated
* debian/patches/10-unregister_interface_on_exit.patch:
* debian/patches/11-explicitly_close.patch:
* debian/patches/python3.patch:
  - Applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
typedef unsigned char flex_uint8_t; 
54
54
typedef unsigned short int flex_uint16_t;
55
55
typedef unsigned int flex_uint32_t;
56
 
#endif /* ! C99 */
57
56
 
58
57
/* Limits of integral types. */
59
58
#ifndef INT8_MIN
84
83
#define UINT32_MAX             (4294967295U)
85
84
#endif
86
85
 
 
86
#endif /* ! C99 */
 
87
 
87
88
#endif /* ! FLEXINT_H */
88
89
 
89
90
#ifdef __cplusplus
140
141
 
141
142
/* Size of default input buffer. */
142
143
#ifndef YY_BUF_SIZE
 
144
#ifdef __ia64__
 
145
/* On IA-64, the buffer size is 16k, not 8k.
 
146
 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
 
147
 * Ditto for the __ia64__ case accordingly.
 
148
 */
 
149
#define YY_BUF_SIZE 32768
 
150
#else
143
151
#define YY_BUF_SIZE 16384
 
152
#endif /* __ia64__ */
144
153
#endif
145
154
 
146
155
/* The state buf must be large enough to hold one state per character in the main buffer.
516
525
 
517
526
int yyerror(char *str);
518
527
 
519
 
#line 520 "tools/lexer.c"
 
528
#line 529 "tools/lexer.c"
520
529
 
521
530
#define INITIAL 0
522
531
 
595
604
 
596
605
/* Amount of stuff to slurp up with each read. */
597
606
#ifndef YY_READ_BUF_SIZE
 
607
#ifdef __ia64__
 
608
/* On IA-64, the buffer size is 16k, not 8k */
 
609
#define YY_READ_BUF_SIZE 16384
 
610
#else
598
611
#define YY_READ_BUF_SIZE 8192
 
612
#endif /* __ia64__ */
599
613
#endif
600
614
 
601
615
/* Copy whatever the last rule matched to the standard output. */
614
628
        if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
615
629
                { \
616
630
                int c = '*'; \
617
 
                unsigned n; \
 
631
                size_t n; \
618
632
                for ( n = 0; n < max_size && \
619
633
                             (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
620
634
                        buf[n] = (char) c; \
699
713
#line 64 "lexer.l"
700
714
 
701
715
 
702
 
#line 703 "tools/lexer.c"
 
716
#line 717 "tools/lexer.c"
703
717
 
704
718
        if ( !(yy_init) )
705
719
                {
862
876
#line 115 "lexer.l"
863
877
ECHO;
864
878
        YY_BREAK
865
 
#line 866 "tools/lexer.c"
 
879
#line 880 "tools/lexer.c"
866
880
case YY_STATE_EOF(INITIAL):
867
881
        yyterminate();
868
882
 
1583
1597
 
1584
1598
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1585
1599
 * scan from a @e copy of @a bytes.
1586
 
 * @param bytes the byte buffer to scan
1587
 
 * @param len the number of bytes in the buffer pointed to by @a bytes.
 
1600
 * @param yybytes the byte buffer to scan
 
1601
 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
1588
1602
 * 
1589
1603
 * @return the newly allocated buffer state object.
1590
1604
 */