[BACK]Return to lex.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / parse

Diff for /OpenXM_contrib2/asir2000/parse/lex.c between version 1.46 and 1.47

version 1.46, 2010/08/03 04:34:44 version 1.47, 2015/08/04 06:20:45
Line 45 
Line 45 
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  *   *
  * $OpenXM: OpenXM_contrib2/asir2000/parse/lex.c,v 1.45 2010/04/16 07:13:42 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/parse/lex.c,v 1.46 2010/08/03 04:34:44 noro Exp $
 */  */
 #include <ctype.h>  #include <ctype.h>
 #include "ca.h"  #include "ca.h"
Line 301  int yylex()
Line 301  int yylex()
                 }                  }
                 if ( floatingpoint ) {                  if ( floatingpoint ) {
                         Ungetc(c); REALLOC_NBUF nbuf[i] = 0;                          Ungetc(c); REALLOC_NBUF nbuf[i] = 0;
 #if defined(PARI)  
                         if ( !bigfloat ) {                          if ( !bigfloat ) {
                                 dbl = (double)atof(nbuf+DLENGTH);                                  dbl = (double)atof(nbuf+DLENGTH);
                                 MKReal(dbl,real); r = (Obj)real;                                  MKReal(dbl,real); r = (Obj)real;
                         } else                          } else
                                 strtobf(nbuf,(BF *)&r);                                  strtobf(nbuf,(BF *)&r);
 #else  
                         dbl = (double)atof(nbuf+DLENGTH);  
                         MKReal(dbl,real); r = (Obj)real;  
 #endif  
                 } else {                  } else {
                         Ungetc(c);                          Ungetc(c);
                         i -= DLENGTH; d = (i%DLENGTH?i/DLENGTH+1:i/DLENGTH);                          i -= DLENGTH; d = (i%DLENGTH?i/DLENGTH+1:i/DLENGTH);

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>