ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-1.0/libBASS/BASSlex.c
(Generate patch)

Comparing trunk/OOPSE-1.0/libBASS/BASSlex.c (file contents):
Revision 1346 by gezelter, Fri Jul 16 21:49:39 2004 UTC vs.
Revision 1348 by gezelter, Mon Jul 19 16:47:57 2004 UTC

# Line 2 | Line 2
2   /* A lexical scanner generated by flex */
3  
4   /* Scanner skeleton version:
5 < * $Header: /Volumes/Gezelter/cvsroot/OOPSE-1.0/libBASS/BASSlex.c,v 1.1 2004-07-16 21:49:39 gezelter Exp $
5 > * $Header: /Volumes/Gezelter/cvsroot/OOPSE-1.0/libBASS/BASSlex.c,v 1.2 2004-07-19 16:47:57 gezelter Exp $
6   */
7  
8   #define FLEX_SCANNER
# Line 10 | Line 10
10   #define YY_FLEX_MINOR_VERSION 5
11  
12   #include <stdio.h>
13 #include <unistd.h>
13  
14  
15   /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
# Line 24 | Line 23
23   #ifdef __cplusplus
24  
25   #include <stdlib.h>
26 + #include <unistd.h>
27  
28   /* Use prototypes in function declarations. */
29   #define YY_USE_PROTOS
# Line 1709 | Line 1709 | static int input()
1709   #endif
1710          {
1711          int c;
1712 +        static int _xpg = -1;
1713 +
1714 +        if (_xpg == -1)
1715 +                {
1716 +                        char *_xpgenv = getenv("_XPG");
1717 +                        if (_xpgenv == NULL)
1718 +                                _xpg = 0;
1719 +                        else
1720 +                                {
1721 +                                _xpg = atoi(_xpgenv);
1722 +                                if (_xpg < 0)
1723 +                                        _xpg = 0;
1724 +                                }
1725 +                }
1726  
1727          *yy_c_buf_p = yy_hold_char;
1728  
# Line 1746 | Line 1760 | static int input()
1760                                          /* fall through */
1761  
1762                                  case EOB_ACT_END_OF_FILE:
1763 <                                        {
1764 <                                        if ( yywrap() )
1765 <                                                return EOF;
1766 <
1767 <                                        if ( ! yy_did_buffer_switch_on_eof )
1768 <                                                YY_NEW_FILE;
1763 >                                        if (_xpg)
1764 >                                                return 0;
1765 >                                        else
1766 >                                                {
1767 >                                                if ( yywrap() )
1768 >                                                        return 0;
1769 >
1770 >                                                if ( ! yy_did_buffer_switch_on_eof )
1771 >                                                        YY_NEW_FILE;
1772   #ifdef __cplusplus
1773 <                                        return yyinput();
1774 < #else
1775 <                                        return input();
1773 >                                                return yyinput();
1774 > #else
1775 >                                                return input();
1776   #endif
1777 <                                        }
1777 >                                                }
1778  
1779                                  case EOB_ACT_CONTINUE_SCAN:
1780                                          yy_c_buf_p = yytext_ptr + offset;
# Line 1886 | Line 1903 | YY_BUFFER_STATE b;
1903          }
1904  
1905  
1906 + #ifndef YY_ALWAYS_INTERACTIVE
1907 + #ifndef YY_NEVER_INTERACTIVE
1908 + extern int isatty YY_PROTO(( int ));
1909 + #endif
1910 + #endif
1911  
1912   #ifdef YY_USE_PROTOS
1913   void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines