Don't include ctype.h needlessly. (#156424, Morten Welinder)

2004-10-26  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.c:
	* glib/gkeyfile.c: Don't include ctype.h needlessly.  (#156424,
	Morten Welinder)
This commit is contained in:
Matthias Clasen 2004-10-26 05:23:40 +00:00 committed by Matthias Clasen
parent 196be2da77
commit ee36299b55
6 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,6 @@
2004-10-26 Matthias Clasen <mclasen@redhat.com> 2004-10-26 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c:
* glib/gkeyfile.c: Don't include ctype.h needlessly. (#156424, * glib/gkeyfile.c: Don't include ctype.h needlessly. (#156424,
Morten Welinder) Morten Welinder)

View File

@ -1,5 +1,6 @@
2004-10-26 Matthias Clasen <mclasen@redhat.com> 2004-10-26 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c:
* glib/gkeyfile.c: Don't include ctype.h needlessly. (#156424, * glib/gkeyfile.c: Don't include ctype.h needlessly. (#156424,
Morten Welinder) Morten Welinder)

View File

@ -1,5 +1,6 @@
2004-10-26 Matthias Clasen <mclasen@redhat.com> 2004-10-26 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c:
* glib/gkeyfile.c: Don't include ctype.h needlessly. (#156424, * glib/gkeyfile.c: Don't include ctype.h needlessly. (#156424,
Morten Welinder) Morten Welinder)

View File

@ -1,5 +1,6 @@
2004-10-26 Matthias Clasen <mclasen@redhat.com> 2004-10-26 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c:
* glib/gkeyfile.c: Don't include ctype.h needlessly. (#156424, * glib/gkeyfile.c: Don't include ctype.h needlessly. (#156424,
Morten Welinder) Morten Welinder)

View File

@ -1,5 +1,6 @@
2004-10-26 Matthias Clasen <mclasen@redhat.com> 2004-10-26 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c:
* glib/gkeyfile.c: Don't include ctype.h needlessly. (#156424, * glib/gkeyfile.c: Don't include ctype.h needlessly. (#156424,
Morten Welinder) Morten Welinder)

View File

@ -30,8 +30,6 @@
#include "config.h" #include "config.h"
#include <ctype.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif
@ -72,7 +70,6 @@
# include <windows.h> # include <windows.h>
# undef STRICT # undef STRICT
# include <lmcons.h> /* For UNLEN */ # include <lmcons.h> /* For UNLEN */
# include <ctype.h>
#endif /* G_PLATFORM_WIN32 */ #endif /* G_PLATFORM_WIN32 */
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
@ -429,7 +426,7 @@ g_parse_debug_string (const gchar *string,
} }
for (i=0; i<nkeys; i++) for (i=0; i<nkeys; i++)
if (g_ascii_strncasecmp(keys[i].key, p, q - p) == 0 && if (g_ascii_strncasecmp (keys[i].key, p, q - p) == 0 &&
keys[i].key[q - p] == '\0') keys[i].key[q - p] == '\0')
result |= keys[i].value; result |= keys[i].value;