You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2002/06/18 03:19:46 UTC
cvs commit: apache-1.3/src/include ap.h
jim 2002/06/17 18:19:46
Modified: src/ap ap_strtol.c
src/include ap.h
Log:
Fold ap_strtol fully into API
Revision Changes Path
1.3 +3 -6 apache-1.3/src/ap/ap_strtol.c
Index: ap_strtol.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/ap/ap_strtol.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ap_strtol.c 18 Jun 2002 01:04:41 -0000 1.2
+++ ap_strtol.c 18 Jun 2002 01:19:46 -0000 1.3
@@ -88,7 +88,7 @@
* SUCH DAMAGE.
*/
-
+#include "httpd.h"
#include <limits.h>
#include <errno.h>
#include <stdlib.h>
@@ -101,11 +101,8 @@
* Assumes that the upper and lower case
* alphabets and digits are each contiguous.
*/
-long
-ap_strtol(nptr, endptr, base)
- const char *nptr;
- char **endptr;
- int base;
+
+API_EXPORT(long) ap_strtol(const char *nptr, char **endptr, int base)
{
const char *s;
unsigned long acc;
1.34 +2 -0 apache-1.3/src/include/ap.h
Index: ap.h
===================================================================
RCS file: /home/cvs/apache-1.3/src/include/ap.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- ap.h 13 Mar 2002 21:05:28 -0000 1.33
+++ ap.h 18 Jun 2002 01:19:46 -0000 1.34
@@ -74,6 +74,8 @@
int ap_execle(const char *, const char *, ...);
int ap_execve(const char *, char * const argv[], char * const envp[]);
API_EXPORT(int) ap_getpass(const char *prompt, char *pwbuf, size_t bufsiz);
+API_EXPORT(long) ap_strtol(const char *nptr, char **endptr, int base);
+
/* small utility macros to make things easier to read */