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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* gtk/gtkfilesel.c
......
......@@ -2,7 +2,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <gtk/gtk.h>
......@@ -460,7 +459,7 @@ load_file (const gchar *filename)
{
case 0:
/* Reading title */
while (*p == '/' || *p == '*' || isspace (*p))
while (*p == '/' || *p == '*' || g_ascii_isspace (*p))
p++;
r = p;
while (*r != '/' && strlen (r))
......@@ -468,7 +467,7 @@ load_file (const gchar *filename)
if (strlen (r) > 0)
p = r + 1;
q = p + strlen (p);
while (q > p && isspace (*(q - 1)))
while (q > p && g_ascii_isspace (*(q - 1)))
q--;
if (q > p)
......@@ -492,7 +491,7 @@ load_file (const gchar *filename)
case 1:
/* Reading body of info section */
while (isspace (*p))
while (g_ascii_isspace (*p))
p++;
if (*p == '*' && *(p + 1) == '/')
{
......@@ -503,11 +502,11 @@ load_file (const gchar *filename)
{
int len;
while (*p == '*' || isspace (*p))
while (*p == '*' || g_ascii_isspace (*p))
p++;
len = strlen (p);
while (isspace (*(p + len - 1)))
while (g_ascii_isspace (*(p + len - 1)))
len--;
if (len > 0)
......@@ -529,7 +528,7 @@ load_file (const gchar *filename)
case 2:
/* Skipping blank lines */
while (isspace (*p))
while (g_ascii_isspace (*p))
p++;
if (*p)
{
......
......@@ -25,10 +25,10 @@
*/
#include <locale.h>
#include <stdlib.h>
#include "gdk.h" /* For gdk_flush() */
#include "gdkpixmap.h"
#include "gdki18n.h"
#include "gdkinternals.h"
#include "gdkprivate-x11.h"
......
......@@ -24,7 +24,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -26,7 +26,6 @@
#include "config.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -38,7 +38,6 @@
/* We need glib.h for G_DIR_SEPARATOR and G_OS_WIN32 */
#include <glib.h>
#include <ctype.h>
/* Comment out all this code if we are using the GNU C Library, and are not
......
......@@ -29,7 +29,6 @@
#include "gtkmarshalers.h"
#include "gtksignal.h"
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
......
......@@ -33,7 +33,6 @@
#include "gtkintl.h"
#include <string.h>
#include <ctype.h>
enum {
PROP_0,
......@@ -532,7 +531,7 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label)
g_string_append (gstring, "Backslash");
break;
default:
g_string_append_unichar (gstring, toupper (key->accel_key));
g_string_append_unichar (gstring, g_unichar_toupper (key->accel_key));
break;
}
}
......@@ -542,7 +541,7 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label)
tmp = gtk_accelerator_name (key->accel_key, 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_free (tmp);
}
......
......@@ -27,7 +27,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
#include <ctype.h>
#include <string.h>
#include <stdarg.h>
#include "gtkbindings.h"
......
......@@ -32,7 +32,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "gdk/gdk.h"
#include "gdk/gdkkeysyms.h"
......
......@@ -30,7 +30,6 @@
#include "gtkintl.h"
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
static GSList *all_icon_factories = NULL;
......
......@@ -34,7 +34,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "gdk/gdkkeysyms.h"
#include "gtkbutton.h"
#include "gtkentry.h"
......
......@@ -32,7 +32,6 @@
#include "gtkwindow.h"
#include "gdk/gdkkeysyms.h"
#include "gtkclipboard.h"
#include "gdk/gdki18n.h"
#include <pango/pango.h>
#include "gtkimagemenuitem.h"
#include "gtkintl.h"
......
......@@ -59,7 +59,6 @@
#include "gtkwidget.h"
#include "gtkwindow.h"
#include "gtkprivate.h"
#include "gdk/gdki18n.h"
#include "config.h"
#include "gtkdebug.h"
#include "gtkintl.h"
......
......@@ -24,7 +24,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
#include <ctype.h>
#include <string.h> /* memset */
#include "gdk/gdkkeysyms.h"
#include "gtkaccelmap.h"
......
......@@ -24,7 +24,6 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
#include <ctype.h>
#include <string.h>
#include "gdk/gdkkeysyms.h"
#include "gdk/gdki18n.h"
......
......@@ -27,7 +27,6 @@
#include "config.h"
#include <locale.h>
#include <ctype.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
......
......@@ -55,7 +55,6 @@
#define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API
#include "gtktextbtree.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include "gtksignal.h"
......
......@@ -30,7 +30,6 @@
#include "gtktextiterprivate.h"
#include "gtkdebug.h"
#include <string.h>
#include <ctype.h>
#define FIX_OVERFLOWS(varname) if ((varname) == G_MININT) (varname) = G_MININT + 1
......
......@@ -53,7 +53,6 @@
#define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API
#include "gtktextbtree.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdio.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