mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Fri Jan 26 12:20:45 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* stdlib/strtol.c: Undo last change. ANSI C changed since the draft I checked yesterday. Sigh.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1992, 1994, 1995, 1996 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1992, 1994, 1995 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
@ -112,11 +112,7 @@ INTERNAL (strtol) (nptr, endptr, base, group)
|
||||
int base;
|
||||
int group;
|
||||
{
|
||||
#if UNSIGNED
|
||||
#define negative 0
|
||||
#else
|
||||
int negative;
|
||||
#endif
|
||||
register unsigned LONG int cutoff;
|
||||
register unsigned int cutlim;
|
||||
register unsigned LONG int i;
|
||||
@ -162,7 +158,6 @@ INTERNAL (strtol) (nptr, endptr, base, group)
|
||||
if (*s == '\0')
|
||||
goto noconv;
|
||||
|
||||
#if !UNSIGNED
|
||||
/* Check for a sign. */
|
||||
if (*s == '-')
|
||||
{
|
||||
@ -176,7 +171,6 @@ INTERNAL (strtol) (nptr, endptr, base, group)
|
||||
}
|
||||
else
|
||||
negative = 0;
|
||||
#endif
|
||||
|
||||
if (base == 16 && s[0] == '0' && toupper (s[1]) == 'X')
|
||||
s += 2;
|
||||
|
Reference in New Issue
Block a user