Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/stdlib/strsuftoll.c,v retrieving revision 1.1.2.2 retrieving revision 1.2 diff -u -p -r1.1.2.2 -r1.2 --- src/lib/libc/stdlib/strsuftoll.c 2002/12/10 06:25:54 1.1.2.2 +++ src/lib/libc/stdlib/strsuftoll.c 2003/02/08 07:27:51 1.2 @@ -1,4 +1,4 @@ -/* $NetBSD: strsuftoll.c,v 1.1.2.2 2002/12/10 06:25:54 thorpej Exp $ */ +/* $NetBSD: strsuftoll.c,v 1.2 2003/02/08 07:27:51 itohy Exp $ */ /*- * Copyright (c) 2001-2002 The NetBSD Foundation, Inc. * All rights reserved. @@ -74,7 +74,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: strsuftoll.c,v 1.1.2.2 2002/12/10 06:25:54 thorpej Exp $"); +__RCSID("$NetBSD: strsuftoll.c,v 1.2 2003/02/08 07:27:51 itohy Exp $"); #endif /* LIBC_SCCS and not lint */ #ifdef _LIBC @@ -100,16 +100,11 @@ __RCSID("$NetBSD: strsuftoll.c,v 1.1.2.2 #include #ifdef _LIBC -# define _STRSUFTOLL _strsuftoll -# define _STRSUFTOLLX _strsuftollx # ifdef __weak_alias __weak_alias(strsuftoll, _strsuftoll) __weak_alias(strsuftollx, _strsuftollx) # endif -#else /* !LIBC */ -# define _STRSUFTOLL strsuftoll -# define _STRSUFTOLLX strsuftollx -#endif /* !LIBC */ +#endif /* LIBC */ /* * Convert an expression of the following forms to a (u)int64_t. @@ -127,7 +122,7 @@ __weak_alias(strsuftollx, _strsuftollx) */ /* LONGLONG */ long long -_STRSUFTOLL(const char *desc, const char *val, +strsuftoll(const char *desc, const char *val, long long min, long long max) { long long result; @@ -145,7 +140,7 @@ _STRSUFTOLL(const char *desc, const char */ /* LONGLONG */ long long -_STRSUFTOLLX(const char *desc, const char *val, +strsuftollx(const char *desc, const char *val, long long min, long long max, char *ebuf, size_t ebuflen) { long long num, t;