Changeset e24823 in git for Singular/libparse.cc
- Timestamp:
- Oct 5, 2005, 3:38:50 PM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 584d650acc2807ed93c9dbb7a496bb817f9a7d1f
- Parents:
- 5f27266799b83f86331407b246bcdf97ea18db77
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/libparse.cc
r5f27266 re24823 20 20 21 21 /* Scanner skeleton version: 22 * $Header: /exports/cvsroot-2/cvsroot/Singular/libparse.cc,v 1. 9 2005-09-24 15:02:08 SingularExp $22 * $Header: /exports/cvsroot-2/cvsroot/Singular/libparse.cc,v 1.10 2005-10-05 13:38:50 wienand Exp $ 23 23 */ 24 24 … … 28 28 29 29 #include <stdio.h> 30 #include <unistd.h> 31 30 #include <errno.h> 32 31 33 32 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ … … 42 41 43 42 #include <stdlib.h> 43 #ifndef _WIN32 44 #include <unistd.h> 45 #endif 44 46 45 47 /* Use prototypes in function declarations. */ … … 80 82 #define YY_PROTO(proto) () 81 83 #endif 84 82 85 83 86 /* Returned upon end-of-file. */ … … 1052 1055 * Computer Algebra System SINGULAR * 1053 1056 ****************************************/ 1054 /* $Id: libparse.cc,v 1. 9 2005-09-24 15:02:08 SingularExp $ */1057 /* $Id: libparse.cc,v 1.10 2005-10-05 13:38:50 wienand Exp $ */ 1055 1058 #include <stdio.h> 1056 1059 #include <string.h> … … 1367 1370 result = n; \ 1368 1371 } \ 1369 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ 1370 && ferror( yyin ) ) \ 1371 YY_FATAL_ERROR( "input in flex scanner failed" ); 1372 else \ 1373 { \ 1374 errno=0; \ 1375 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ 1376 { \ 1377 if( errno != EINTR) \ 1378 { \ 1379 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 1380 break; \ 1381 } \ 1382 errno=0; \ 1383 clearerr(yyin); \ 1384 } \ 1385 } 1372 1386 #endif 1373 1387 … … 1418 1432 { 1419 1433 register yy_state_type yy_current_state; 1420 register char *yy_cp = NULL, *yy_bp = NULL;1434 register char *yy_cp, *yy_bp; 1421 1435 register int yy_act; 1422 1436 … … 2853 2867 2854 2868 2855 #ifndef YY_NO_INPUT2856 2869 #ifdef __cplusplus 2857 2870 static int yyinput() … … 2926 2939 return c; 2927 2940 } 2928 #endif /* YY_NO_INPUT */ 2941 2929 2942 2930 2943 #ifdef YY_USE_PROTOS … … 3037 3050 3038 3051 3052 #ifndef _WIN32 3053 #include <unistd.h> 3054 #else 3055 #ifndef YY_ALWAYS_INTERACTIVE 3056 #ifndef YY_NEVER_INTERACTIVE 3057 extern int isatty YY_PROTO(( int )); 3058 #endif 3059 #endif 3060 #endif 3039 3061 3040 3062 #ifdef YY_USE_PROTOS
Note: See TracChangeset
for help on using the changeset viewer.