From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 4 Mar 2012 11:50:32 +0000 (+0000)
Subject: Relocate ijb_isdigit()'s definition to project.h
X-Git-Tag: v_3_0_20~405
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/user-manual/faq/static/@default-cgi@toggle?a=commitdiff_plain;h=d6bf4ff30d9a44dd4fa182deb4639878eb67ad86;p=privoxy.git

Relocate ijb_isdigit()'s definition to project.h
---

diff --git a/filters.c b/filters.c
index 817aa921..d7861f09 100644
--- a/filters.c
+++ b/filters.c
@@ -1,4 +1,4 @@
-const char filters_rcs[] = "$Id: filters.c,v 1.164 2011/12/31 14:47:44 fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.165 2012/02/29 19:34:04 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/filters.c,v $
@@ -76,15 +76,6 @@ const char filters_rcs[] = "$Id: filters.c,v 1.164 2011/12/31 14:47:44 fabiankei
 
 const char filters_h_rcs[] = FILTERS_H_VERSION;
 
-/* Fix a problem with Solaris.  There should be no effect on other
- * platforms.
- * Solaris's isspace() is a macro which uses it's argument directly
- * as an array index.  Therefore we need to make sure that high-bit
- * characters generate +ve values, and ideally we also want to make
- * the argument match the declared parameter type of "int".
- */
-#define ijb_isdigit(__X) isdigit((int)(unsigned char)(__X))
-
 typedef char *(*filter_function_ptr)();
 static filter_function_ptr get_filter_function(const struct client_state *csp);
 static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size);
diff --git a/project.h b/project.h
index 74c7453e..b52b0b83 100644
--- a/project.h
+++ b/project.h
@@ -1,7 +1,7 @@
 #ifndef PROJECT_H_INCLUDED
 #define PROJECT_H_INCLUDED
 /** Version string. */
-#define PROJECT_H_VERSION "$Id: project.h,v 1.172 2012/03/04 11:49:24 fabiankeil Exp $"
+#define PROJECT_H_VERSION "$Id: project.h,v 1.173 2012/03/04 11:49:44 fabiankeil Exp $"
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/project.h,v $
@@ -167,6 +167,7 @@ typedef int jb_err;
  * some unspecified Solaris versions.
  * Note: Remember to #include <ctype.h> if you use these macros.
  */
+#define ijb_isdigit(__X) isdigit((int)(unsigned char)(__X))
 #define ijb_isupper(__X) isupper((int)(unsigned char)(__X))
 #define ijb_toupper(__X) toupper((int)(unsigned char)(__X))
 #define ijb_tolower(__X) tolower((int)(unsigned char)(__X))