Changeset e24823 in git for Singular/libparse.cc


Ignore:
Timestamp:
Oct 5, 2005, 3:38:50 PM (19 years ago)
Author:
Oliver Wienand <wienand@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
584d650acc2807ed93c9dbb7a496bb817f9a7d1f
Parents:
5f27266799b83f86331407b246bcdf97ea18db77
Message:
Makefile.in:

Anpassungen für vollst. Compilieren unter Cygwin, protected from different Systems


git-svn-id: file:///usr/local/Singular/svn/trunk@8688 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/libparse.cc

    r5f27266 re24823  
    2020
    2121/* Scanner skeleton version:
    22  * $Header: /exports/cvsroot-2/cvsroot/Singular/libparse.cc,v 1.9 2005-09-24 15:02:08 Singular Exp $
     22 * $Header: /exports/cvsroot-2/cvsroot/Singular/libparse.cc,v 1.10 2005-10-05 13:38:50 wienand Exp $
    2323 */
    2424
     
    2828
    2929#include <stdio.h>
    30 #include <unistd.h>
    31 
     30#include <errno.h>
    3231
    3332/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
     
    4241
    4342#include <stdlib.h>
     43#ifndef _WIN32
     44#include <unistd.h>
     45#endif
    4446
    4547/* Use prototypes in function declarations. */
     
    8082#define YY_PROTO(proto) ()
    8183#endif
     84
    8285
    8386/* Returned upon end-of-file. */
     
    10521055*  Computer Algebra System SINGULAR     *
    10531056****************************************/
    1054 /* $Id: libparse.cc,v 1.9 2005-09-24 15:02:08 Singular Exp $ */
     1057/* $Id: libparse.cc,v 1.10 2005-10-05 13:38:50 wienand Exp $ */
    10551058#include <stdio.h>
    10561059#include <string.h>
     
    13671370                result = n; \
    13681371                } \
    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                }
    13721386#endif
    13731387
     
    14181432        {
    14191433        register yy_state_type yy_current_state;
    1420         register char *yy_cp = NULL, *yy_bp = NULL;
     1434        register char *yy_cp, *yy_bp;
    14211435        register int yy_act;
    14221436
     
    28532867
    28542868
    2855 #ifndef YY_NO_INPUT
    28562869#ifdef __cplusplus
    28572870static int yyinput()
     
    29262939        return c;
    29272940        }
    2928 #endif /* YY_NO_INPUT */
     2941
    29292942
    29302943#ifdef YY_USE_PROTOS
     
    30373050
    30383051
     3052#ifndef _WIN32
     3053#include <unistd.h>
     3054#else
     3055#ifndef YY_ALWAYS_INTERACTIVE
     3056#ifndef YY_NEVER_INTERACTIVE
     3057extern int isatty YY_PROTO(( int ));
     3058#endif
     3059#endif
     3060#endif
    30393061
    30403062#ifdef YY_USE_PROTOS
Note: See TracChangeset for help on using the changeset viewer.