Commit 6ec06edb authored by Darin Adler's avatar Darin Adler

isspace -> g_ascii_isspace Remove gdki8n.h include. Remove <ctype.h>

	* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
	* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
	* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
	* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
	* gtk/fnmatch.c: Remove <ctype.h> include.
	* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
	* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
	g_unichar_toupper, toupper -> g_unichar_totile
	* gtk/gtkbindings.c: Remove <ctype.h> include.
	* gtk/gtkfontsel.c: Remove <ctype.h> include.
	* gtk/gtkiconfactory.c: Remove <ctype.h> include.
	* gtk/gtkinputdialog.c: Remove <ctype.h> include.
	* gtk/gtklabel.c: Remove <ctype.h> include.
	* gtk/gtkmain.c: Remove <ctype.h> include.
	* gtk/gtkmenu.c: Remove <ctype.h> include.
	* gtk/gtkoldeditable.c: Remove <ctype.h> include.
	* gtk/gtkrc.c: Remove <ctype.h> include.
	* gtk/gtktextbtree.c: Remove <ctype.h> include.
	* gtk/gtktextiter.c: Remove <ctype.h> include.
	* gtk/gtktextsegment.c: Remove <ctype.h> include.
parent 27fec072
2002-02-08 Darin Adler <darin@bentspoon.com>
* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
* gtk/fnmatch.c: Remove <ctype.h> include.
* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
g_unichar_toupper, toupper -> g_unichar_totile
* gtk/gtkbindings.c: Remove <ctype.h> include.
* gtk/gtkfontsel.c: Remove <ctype.h> include.
* gtk/gtkiconfactory.c: Remove <ctype.h> include.
* gtk/gtkinputdialog.c: Remove <ctype.h> include.
* gtk/gtklabel.c: Remove <ctype.h> include.
* gtk/gtkmain.c: Remove <ctype.h> include.
* gtk/gtkmenu.c: Remove <ctype.h> include.
* gtk/gtkoldeditable.c: Remove <ctype.h> include.
* gtk/gtkrc.c: Remove <ctype.h> include.
* gtk/gtktextbtree.c: Remove <ctype.h> include.
* gtk/gtktextiter.c: Remove <ctype.h> include.
* gtk/gtktextsegment.c: Remove <ctype.h> include.
2002-02-08 Sven Neumann <sven@gimp.org> 2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c * gtk/gtkfilesel.c
......
2002-02-08 Darin Adler <darin@bentspoon.com>
* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
* gtk/fnmatch.c: Remove <ctype.h> include.
* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
g_unichar_toupper, toupper -> g_unichar_totile
* gtk/gtkbindings.c: Remove <ctype.h> include.
* gtk/gtkfontsel.c: Remove <ctype.h> include.
* gtk/gtkiconfactory.c: Remove <ctype.h> include.
* gtk/gtkinputdialog.c: Remove <ctype.h> include.
* gtk/gtklabel.c: Remove <ctype.h> include.
* gtk/gtkmain.c: Remove <ctype.h> include.
* gtk/gtkmenu.c: Remove <ctype.h> include.
* gtk/gtkoldeditable.c: Remove <ctype.h> include.
* gtk/gtkrc.c: Remove <ctype.h> include.
* gtk/gtktextbtree.c: Remove <ctype.h> include.
* gtk/gtktextiter.c: Remove <ctype.h> include.
* gtk/gtktextsegment.c: Remove <ctype.h> include.
2002-02-08 Sven Neumann <sven@gimp.org> 2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c * gtk/gtkfilesel.c
......
2002-02-08 Darin Adler <darin@bentspoon.com>
* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
* gtk/fnmatch.c: Remove <ctype.h> include.
* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
g_unichar_toupper, toupper -> g_unichar_totile
* gtk/gtkbindings.c: Remove <ctype.h> include.
* gtk/gtkfontsel.c: Remove <ctype.h> include.
* gtk/gtkiconfactory.c: Remove <ctype.h> include.
* gtk/gtkinputdialog.c: Remove <ctype.h> include.
* gtk/gtklabel.c: Remove <ctype.h> include.
* gtk/gtkmain.c: Remove <ctype.h> include.
* gtk/gtkmenu.c: Remove <ctype.h> include.
* gtk/gtkoldeditable.c: Remove <ctype.h> include.
* gtk/gtkrc.c: Remove <ctype.h> include.
* gtk/gtktextbtree.c: Remove <ctype.h> include.
* gtk/gtktextiter.c: Remove <ctype.h> include.
* gtk/gtktextsegment.c: Remove <ctype.h> include.
2002-02-08 Sven Neumann <sven@gimp.org> 2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c * gtk/gtkfilesel.c
......
2002-02-08 Darin Adler <darin@bentspoon.com>
* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
* gtk/fnmatch.c: Remove <ctype.h> include.
* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
g_unichar_toupper, toupper -> g_unichar_totile
* gtk/gtkbindings.c: Remove <ctype.h> include.
* gtk/gtkfontsel.c: Remove <ctype.h> include.
* gtk/gtkiconfactory.c: Remove <ctype.h> include.
* gtk/gtkinputdialog.c: Remove <ctype.h> include.
* gtk/gtklabel.c: Remove <ctype.h> include.
* gtk/gtkmain.c: Remove <ctype.h> include.
* gtk/gtkmenu.c: Remove <ctype.h> include.
* gtk/gtkoldeditable.c: Remove <ctype.h> include.
* gtk/gtkrc.c: Remove <ctype.h> include.
* gtk/gtktextbtree.c: Remove <ctype.h> include.
* gtk/gtktextiter.c: Remove <ctype.h> include.
* gtk/gtktextsegment.c: Remove <ctype.h> include.
2002-02-08 Sven Neumann <sven@gimp.org> 2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c * gtk/gtkfilesel.c
......
2002-02-08 Darin Adler <darin@bentspoon.com>
* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
* gtk/fnmatch.c: Remove <ctype.h> include.
* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
g_unichar_toupper, toupper -> g_unichar_totile
* gtk/gtkbindings.c: Remove <ctype.h> include.
* gtk/gtkfontsel.c: Remove <ctype.h> include.
* gtk/gtkiconfactory.c: Remove <ctype.h> include.
* gtk/gtkinputdialog.c: Remove <ctype.h> include.
* gtk/gtklabel.c: Remove <ctype.h> include.
* gtk/gtkmain.c: Remove <ctype.h> include.
* gtk/gtkmenu.c: Remove <ctype.h> include.
* gtk/gtkoldeditable.c: Remove <ctype.h> include.
* gtk/gtkrc.c: Remove <ctype.h> include.
* gtk/gtktextbtree.c: Remove <ctype.h> include.
* gtk/gtktextiter.c: Remove <ctype.h> include.
* gtk/gtktextsegment.c: Remove <ctype.h> include.
2002-02-08 Sven Neumann <sven@gimp.org> 2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c * gtk/gtkfilesel.c
......
2002-02-08 Darin Adler <darin@bentspoon.com>
* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
* gtk/fnmatch.c: Remove <ctype.h> include.
* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
g_unichar_toupper, toupper -> g_unichar_totile
* gtk/gtkbindings.c: Remove <ctype.h> include.
* gtk/gtkfontsel.c: Remove <ctype.h> include.
* gtk/gtkiconfactory.c: Remove <ctype.h> include.
* gtk/gtkinputdialog.c: Remove <ctype.h> include.
* gtk/gtklabel.c: Remove <ctype.h> include.
* gtk/gtkmain.c: Remove <ctype.h> include.
* gtk/gtkmenu.c: Remove <ctype.h> include.
* gtk/gtkoldeditable.c: Remove <ctype.h> include.
* gtk/gtkrc.c: Remove <ctype.h> include.
* gtk/gtktextbtree.c: Remove <ctype.h> include.
* gtk/gtktextiter.c: Remove <ctype.h> include.
* gtk/gtktextsegment.c: Remove <ctype.h> include.
2002-02-08 Sven Neumann <sven@gimp.org> 2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c * gtk/gtkfilesel.c
......
2002-02-08 Darin Adler <darin@bentspoon.com>
* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
* gtk/fnmatch.c: Remove <ctype.h> include.
* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
g_unichar_toupper, toupper -> g_unichar_totile
* gtk/gtkbindings.c: Remove <ctype.h> include.
* gtk/gtkfontsel.c: Remove <ctype.h> include.
* gtk/gtkiconfactory.c: Remove <ctype.h> include.
* gtk/gtkinputdialog.c: Remove <ctype.h> include.
* gtk/gtklabel.c: Remove <ctype.h> include.
* gtk/gtkmain.c: Remove <ctype.h> include.
* gtk/gtkmenu.c: Remove <ctype.h> include.
* gtk/gtkoldeditable.c: Remove <ctype.h> include.
* gtk/gtkrc.c: Remove <ctype.h> include.
* gtk/gtktextbtree.c: Remove <ctype.h> include.
* gtk/gtktextiter.c: Remove <ctype.h> include.
* gtk/gtktextsegment.c: Remove <ctype.h> include.
2002-02-08 Sven Neumann <sven@gimp.org> 2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c * gtk/gtkfilesel.c
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <ctype.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
...@@ -460,7 +459,7 @@ load_file (const gchar *filename) ...@@ -460,7 +459,7 @@ load_file (const gchar *filename)
{ {
case 0: case 0:
/* Reading title */ /* Reading title */
while (*p == '/' || *p == '*' || isspace (*p)) while (*p == '/' || *p == '*' || g_ascii_isspace (*p))
p++; p++;
r = p; r = p;
while (*r != '/' && strlen (r)) while (*r != '/' && strlen (r))
...@@ -468,7 +467,7 @@ load_file (const gchar *filename) ...@@ -468,7 +467,7 @@ load_file (const gchar *filename)
if (strlen (r) > 0) if (strlen (r) > 0)
p = r + 1; p = r + 1;
q = p + strlen (p); q = p + strlen (p);
while (q > p && isspace (*(q - 1))) while (q > p && g_ascii_isspace (*(q - 1)))
q--; q--;
if (q > p) if (q > p)
...@@ -492,7 +491,7 @@ load_file (const gchar *filename) ...@@ -492,7 +491,7 @@ load_file (const gchar *filename)
case 1: case 1:
/* Reading body of info section */ /* Reading body of info section */
while (isspace (*p)) while (g_ascii_isspace (*p))
p++; p++;
if (*p == '*' && *(p + 1) == '/') if (*p == '*' && *(p + 1) == '/')
{ {
...@@ -503,11 +502,11 @@ load_file (const gchar *filename) ...@@ -503,11 +502,11 @@ load_file (const gchar *filename)
{ {
int len; int len;
while (*p == '*' || isspace (*p)) while (*p == '*' || g_ascii_isspace (*p))
p++; p++;
len = strlen (p); len = strlen (p);
while (isspace (*(p + len - 1))) while (g_ascii_isspace (*(p + len - 1)))
len--; len--;
if (len > 0) if (len > 0)
...@@ -529,7 +528,7 @@ load_file (const gchar *filename) ...@@ -529,7 +528,7 @@ load_file (const gchar *filename)
case 2: case 2:
/* Skipping blank lines */ /* Skipping blank lines */
while (isspace (*p)) while (g_ascii_isspace (*p))
p++; p++;
if (*p) if (*p)
{ {
......
...@@ -25,10 +25,10 @@ ...@@ -25,10 +25,10 @@
*/ */
#include <locale.h> #include <locale.h>
#include <stdlib.h>
#include "gdk.h" /* For gdk_flush() */ #include "gdk.h" /* For gdk_flush() */
#include "gdkpixmap.h" #include "gdkpixmap.h"
#include "gdki18n.h"
#include "gdkinternals.h" #include "gdkinternals.h"
#include "gdkprivate-x11.h" #include "gdkprivate-x11.h"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "config.h" #include "config.h"
#include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
/* We need glib.h for G_DIR_SEPARATOR and G_OS_WIN32 */ /* We need glib.h for G_DIR_SEPARATOR and G_OS_WIN32 */
#include <glib.h> #include <glib.h>
#include <ctype.h>
/* Comment out all this code if we are using the GNU C Library, and are not /* Comment out all this code if we are using the GNU C Library, and are not
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "gtkmarshalers.h" #include "gtkmarshalers.h"
#include "gtksignal.h" #include "gtksignal.h"
#include <ctype.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "gtkintl.h" #include "gtkintl.h"
#include <string.h> #include <string.h>
#include <ctype.h>
enum { enum {
PROP_0, PROP_0,
...@@ -532,7 +531,7 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label) ...@@ -532,7 +531,7 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label)
g_string_append (gstring, "Backslash"); g_string_append (gstring, "Backslash");
break; break;
default: default:
g_string_append_unichar (gstring, toupper (key->accel_key)); g_string_append_unichar (gstring, g_unichar_toupper (key->accel_key));
break; break;
} }
} }
...@@ -542,7 +541,7 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label) ...@@ -542,7 +541,7 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label)
tmp = gtk_accelerator_name (key->accel_key, 0); tmp = gtk_accelerator_name (key->accel_key, 0);
if (tmp[0] != 0 && tmp[1] == 0) if (tmp[0] != 0 && tmp[1] == 0)
tmp[0] = toupper (tmp[0]); tmp[0] = g_unichar_totitle (tmp[0]);
g_string_append (gstring, tmp); g_string_append (gstring, tmp);
g_free (tmp); g_free (tmp);
} }
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#include <ctype.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include "gtkbindings.h" #include "gtkbindings.h"
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <ctype.h>
#include "gdk/gdk.h" #include "gdk/gdk.h"
#include "gdk/gdkkeysyms.h" #include "gdk/gdkkeysyms.h"
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "gtkintl.h" #include "gtkintl.h"
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <ctype.h>
#include <string.h> #include <string.h>
static GSList *all_icon_factories = NULL; static GSList *all_icon_factories = NULL;
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h>
#include "gdk/gdkkeysyms.h" #include "gdk/gdkkeysyms.h"
#include "gtkbutton.h" #include "gtkbutton.h"
#include "gtkentry.h" #include "gtkentry.h"
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "gtkwindow.h" #include "gtkwindow.h"
#include "gdk/gdkkeysyms.h" #include "gdk/gdkkeysyms.h"
#include "gtkclipboard.h" #include "gtkclipboard.h"
#include "gdk/gdki18n.h"
#include <pango/pango.h> #include <pango/pango.h>
#include "gtkimagemenuitem.h" #include "gtkimagemenuitem.h"
#include "gtkintl.h" #include "gtkintl.h"
......
...@@ -59,7 +59,6 @@ ...@@ -59,7 +59,6 @@
#include "gtkwidget.h" #include "gtkwidget.h"
#include "gtkwindow.h" #include "gtkwindow.h"
#include "gtkprivate.h" #include "gtkprivate.h"
#include "gdk/gdki18n.h"
#include "config.h" #include "config.h"
#include "gtkdebug.h" #include "gtkdebug.h"
#include "gtkintl.h" #include "gtkintl.h"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#include <ctype.h>
#include <string.h> /* memset */ #include <string.h> /* memset */
#include "gdk/gdkkeysyms.h" #include "gdk/gdkkeysyms.h"
#include "gtkaccelmap.h" #include "gtkaccelmap.h"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#include <ctype.h>
#include <string.h> #include <string.h>
#include "gdk/gdkkeysyms.h" #include "gdk/gdkkeysyms.h"
#include "gdk/gdki18n.h" #include "gdk/gdki18n.h"
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "config.h" #include "config.h"
#include <locale.h> #include <locale.h>
#include <ctype.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif
......
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
#define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API
#include "gtktextbtree.h" #include "gtktextbtree.h"
#include <string.h> #include <string.h>
#include <ctype.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include "gtksignal.h" #include "gtksignal.h"
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "gtktextiterprivate.h" #include "gtktextiterprivate.h"
#include "gtkdebug.h" #include "gtkdebug.h"
#include <string.h> #include <string.h>
#include <ctype.h>
#define FIX_OVERFLOWS(varname) if ((varname) == G_MININT) (varname) = G_MININT + 1 #define FIX_OVERFLOWS(varname) if ((varname) == G_MININT) (varname) = G_MININT + 1
......
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
#define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API
#include "gtktextbtree.h" #include "gtktextbtree.h"
#include <string.h> #include <string.h>
#include <ctype.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include "gtktexttag.h" #include "gtktexttag.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment