diff options
-rw-r--r-- | ChangeLog | 16 | ||||
-rw-r--r-- | ChangeLog.pre-1-0 | 16 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 16 | ||||
-rw-r--r-- | ChangeLog.pre-1-2 | 16 | ||||
-rw-r--r-- | ChangeLog.pre-1-4 | 16 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 16 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 16 | ||||
-rw-r--r-- | pango/fonts.c | 11 | ||||
-rw-r--r-- | pango/modules.c | 1 | ||||
-rw-r--r-- | pango/pango-markup.c | 11 | ||||
-rw-r--r-- | pango/pango-utils.c | 15 | ||||
-rw-r--r-- | pango/pangoft2-fontmap.c | 1 | ||||
-rw-r--r-- | pango/pangox-fontmap.c | 1 |
13 files changed, 132 insertions, 20 deletions
@@ -1,3 +1,19 @@ +2002-02-09 Darin Adler <darin@bentspoon.com> + + * pango/fonts.c: (getword): isspace -> g_ascii_isspace + (pango_font_description_from_string): isspace -> g_ascii_isspace + * pango/modules.c: Remove unneeded <ctype.h> include. + * pango/pango-markup.c: (xml_isspace): New. + (pango_parse_markup): isspace -> xml_isspace + (span_parse_func): isdigit -> g_ascii_isdigit + * pango/pango-utils.c: (pango_trim_string): isspace -> g_ascii_isspace + (pango_skip_space): isspace -> g_ascii_isspace + (pango_scan_word): isspace -> g_ascii_isspace + (pango_scan_string): isspace -> g_ascii_isspace + (pango_scan_int): isspace -> g_ascii_isspace + * pango/pangoft2-fontmap.c: Remove unneeded <ctype.h> include. + * pango/pangox-fontmap.c: Remove unneeded <ctype.h> include. + 2002-02-07 Tor Lillqvist <tml@iki.fi> * examples/pangoft2topgm.c (main): Accept also outfile name on diff --git a/ChangeLog.pre-1-0 b/ChangeLog.pre-1-0 index 64f3677e..06b7748d 100644 --- a/ChangeLog.pre-1-0 +++ b/ChangeLog.pre-1-0 @@ -1,3 +1,19 @@ +2002-02-09 Darin Adler <darin@bentspoon.com> + + * pango/fonts.c: (getword): isspace -> g_ascii_isspace + (pango_font_description_from_string): isspace -> g_ascii_isspace + * pango/modules.c: Remove unneeded <ctype.h> include. + * pango/pango-markup.c: (xml_isspace): New. + (pango_parse_markup): isspace -> xml_isspace + (span_parse_func): isdigit -> g_ascii_isdigit + * pango/pango-utils.c: (pango_trim_string): isspace -> g_ascii_isspace + (pango_skip_space): isspace -> g_ascii_isspace + (pango_scan_word): isspace -> g_ascii_isspace + (pango_scan_string): isspace -> g_ascii_isspace + (pango_scan_int): isspace -> g_ascii_isspace + * pango/pangoft2-fontmap.c: Remove unneeded <ctype.h> include. + * pango/pangox-fontmap.c: Remove unneeded <ctype.h> include. + 2002-02-07 Tor Lillqvist <tml@iki.fi> * examples/pangoft2topgm.c (main): Accept also outfile name on diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 64f3677e..06b7748d 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,19 @@ +2002-02-09 Darin Adler <darin@bentspoon.com> + + * pango/fonts.c: (getword): isspace -> g_ascii_isspace + (pango_font_description_from_string): isspace -> g_ascii_isspace + * pango/modules.c: Remove unneeded <ctype.h> include. + * pango/pango-markup.c: (xml_isspace): New. + (pango_parse_markup): isspace -> xml_isspace + (span_parse_func): isdigit -> g_ascii_isdigit + * pango/pango-utils.c: (pango_trim_string): isspace -> g_ascii_isspace + (pango_skip_space): isspace -> g_ascii_isspace + (pango_scan_word): isspace -> g_ascii_isspace + (pango_scan_string): isspace -> g_ascii_isspace + (pango_scan_int): isspace -> g_ascii_isspace + * pango/pangoft2-fontmap.c: Remove unneeded <ctype.h> include. + * pango/pangox-fontmap.c: Remove unneeded <ctype.h> include. + 2002-02-07 Tor Lillqvist <tml@iki.fi> * examples/pangoft2topgm.c (main): Accept also outfile name on diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2 index 64f3677e..06b7748d 100644 --- a/ChangeLog.pre-1-2 +++ b/ChangeLog.pre-1-2 @@ -1,3 +1,19 @@ +2002-02-09 Darin Adler <darin@bentspoon.com> + + * pango/fonts.c: (getword): isspace -> g_ascii_isspace + (pango_font_description_from_string): isspace -> g_ascii_isspace + * pango/modules.c: Remove unneeded <ctype.h> include. + * pango/pango-markup.c: (xml_isspace): New. + (pango_parse_markup): isspace -> xml_isspace + (span_parse_func): isdigit -> g_ascii_isdigit + * pango/pango-utils.c: (pango_trim_string): isspace -> g_ascii_isspace + (pango_skip_space): isspace -> g_ascii_isspace + (pango_scan_word): isspace -> g_ascii_isspace + (pango_scan_string): isspace -> g_ascii_isspace + (pango_scan_int): isspace -> g_ascii_isspace + * pango/pangoft2-fontmap.c: Remove unneeded <ctype.h> include. + * pango/pangox-fontmap.c: Remove unneeded <ctype.h> include. + 2002-02-07 Tor Lillqvist <tml@iki.fi> * examples/pangoft2topgm.c (main): Accept also outfile name on diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index 64f3677e..06b7748d 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,19 @@ +2002-02-09 Darin Adler <darin@bentspoon.com> + + * pango/fonts.c: (getword): isspace -> g_ascii_isspace + (pango_font_description_from_string): isspace -> g_ascii_isspace + * pango/modules.c: Remove unneeded <ctype.h> include. + * pango/pango-markup.c: (xml_isspace): New. + (pango_parse_markup): isspace -> xml_isspace + (span_parse_func): isdigit -> g_ascii_isdigit + * pango/pango-utils.c: (pango_trim_string): isspace -> g_ascii_isspace + (pango_skip_space): isspace -> g_ascii_isspace + (pango_scan_word): isspace -> g_ascii_isspace + (pango_scan_string): isspace -> g_ascii_isspace + (pango_scan_int): isspace -> g_ascii_isspace + * pango/pangoft2-fontmap.c: Remove unneeded <ctype.h> include. + * pango/pangox-fontmap.c: Remove unneeded <ctype.h> include. + 2002-02-07 Tor Lillqvist <tml@iki.fi> * examples/pangoft2topgm.c (main): Accept also outfile name on diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index 64f3677e..06b7748d 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,19 @@ +2002-02-09 Darin Adler <darin@bentspoon.com> + + * pango/fonts.c: (getword): isspace -> g_ascii_isspace + (pango_font_description_from_string): isspace -> g_ascii_isspace + * pango/modules.c: Remove unneeded <ctype.h> include. + * pango/pango-markup.c: (xml_isspace): New. + (pango_parse_markup): isspace -> xml_isspace + (span_parse_func): isdigit -> g_ascii_isdigit + * pango/pango-utils.c: (pango_trim_string): isspace -> g_ascii_isspace + (pango_skip_space): isspace -> g_ascii_isspace + (pango_scan_word): isspace -> g_ascii_isspace + (pango_scan_string): isspace -> g_ascii_isspace + (pango_scan_int): isspace -> g_ascii_isspace + * pango/pangoft2-fontmap.c: Remove unneeded <ctype.h> include. + * pango/pangox-fontmap.c: Remove unneeded <ctype.h> include. + 2002-02-07 Tor Lillqvist <tml@iki.fi> * examples/pangoft2topgm.c (main): Accept also outfile name on diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index 64f3677e..06b7748d 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,19 @@ +2002-02-09 Darin Adler <darin@bentspoon.com> + + * pango/fonts.c: (getword): isspace -> g_ascii_isspace + (pango_font_description_from_string): isspace -> g_ascii_isspace + * pango/modules.c: Remove unneeded <ctype.h> include. + * pango/pango-markup.c: (xml_isspace): New. + (pango_parse_markup): isspace -> xml_isspace + (span_parse_func): isdigit -> g_ascii_isdigit + * pango/pango-utils.c: (pango_trim_string): isspace -> g_ascii_isspace + (pango_skip_space): isspace -> g_ascii_isspace + (pango_scan_word): isspace -> g_ascii_isspace + (pango_scan_string): isspace -> g_ascii_isspace + (pango_scan_int): isspace -> g_ascii_isspace + * pango/pangoft2-fontmap.c: Remove unneeded <ctype.h> include. + * pango/pangox-fontmap.c: Remove unneeded <ctype.h> include. + 2002-02-07 Tor Lillqvist <tml@iki.fi> * examples/pangoft2topgm.c (main): Accept also outfile name on diff --git a/pango/fonts.c b/pango/fonts.c index 7c1c79b6..5051604c 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -20,7 +20,6 @@ */ #include <stdlib.h> -#include <ctype.h> #include <math.h> #include <string.h> @@ -763,11 +762,11 @@ getword (const char *str, const char *last, size_t *wordlen) { const char *result; - while (last > str && isspace (*(last - 1))) + while (last > str && g_ascii_isspace (*(last - 1))) last--; result = last; - while (result > str && !isspace (*(result - 1))) + while (result > str && !g_ascii_isspace (*(result - 1))) result--; *wordlen = last - result; @@ -855,16 +854,16 @@ pango_font_description_from_string (const char *str) /* Remainder (str => p) is family list. Trim off trailing commas and leading and trailing white space */ - while (last > str && isspace (*(last - 1))) + while (last > str && g_ascii_isspace (*(last - 1))) last--; if (last > str && *(last - 1) == ',') last--; - while (last > str && isspace (*(last - 1))) + while (last > str && g_ascii_isspace (*(last - 1))) last--; - while (isspace (*str)) + while (g_ascii_isspace (*str)) str++; if (str != last) diff --git a/pango/modules.c b/pango/modules.c index fe028274..f280920f 100644 --- a/pango/modules.c +++ b/pango/modules.c @@ -21,7 +21,6 @@ #include "config.h" -#include <ctype.h> #include <stdio.h> #include <string.h> #include <limits.h> diff --git a/pango/pango-markup.c b/pango/pango-markup.c index b57ee136..b2814468 100644 --- a/pango/pango-markup.c +++ b/pango/pango-markup.c @@ -22,7 +22,6 @@ #include <string.h> #include <stdlib.h> #include <errno.h> -#include <ctype.h> #include <pango/pango-attributes.h> #include <pango/pango-font.h> @@ -534,6 +533,12 @@ text_handler (GMarkupParseContext *context, } } +static gboolean +xml_isspace (char c) +{ + return c == ' ' || c == '\t' || c == '\n' || c == '\r'; +} + static GMarkupParser pango_markup_parser = { start_element_handler, end_element_handler, @@ -614,7 +619,7 @@ pango_parse_markup (const char *markup_text, p = markup_text; end = markup_text + length; - while (p != end && isspace (*p)) + while (p != end && xml_isspace (*p)) ++p; if (end - p >= 8 && strncmp (p, "<markup>", 8) == 0) @@ -955,7 +960,7 @@ span_parse_func (MarkupData *md, if (size) { - if (isdigit (*size)) + if (g_ascii_isdigit (*size)) { char *end = NULL; gulong n; diff --git a/pango/pango-utils.c b/pango/pango-utils.c index 7ef78746..051ed8ad 100644 --- a/pango/pango-utils.c +++ b/pango/pango-utils.c @@ -19,7 +19,6 @@ * Boston, MA 02111-1307, USA. */ -#include <ctype.h> #include <errno.h> #include <string.h> #include <stdlib.h> @@ -73,11 +72,11 @@ pango_trim_string (const char *str) g_return_val_if_fail (str != NULL, NULL); - while (*str && isspace (*str)) + while (*str && g_ascii_isspace (*str)) str++; len = strlen (str); - while (len > 0 && isspace (str[len-1])) + while (len > 0 && g_ascii_isspace (str[len-1])) len--; return g_strndup (str, len); @@ -264,7 +263,7 @@ pango_skip_space (const char **pos) { const char *p = *pos; - while (isspace (*p)) + while (g_ascii_isspace (*p)) p++; *pos = p; @@ -288,7 +287,7 @@ pango_scan_word (const char **pos, GString *out) { const char *p = *pos; - while (isspace (*p)) + while (g_ascii_isspace (*p)) p++; if (!((*p >= 'A' && *p <= 'Z') || @@ -331,7 +330,7 @@ pango_scan_string (const char **pos, GString *out) { const char *p = *pos; - while (isspace (*p)) + while (g_ascii_isspace (*p)) p++; if (!*p) @@ -390,7 +389,7 @@ pango_scan_string (const char **pos, GString *out) { g_string_truncate (out, 0); - while (*p && !isspace (*p)) + while (*p && !g_ascii_isspace (*p)) { g_string_append_c (out, *p); p++; @@ -420,7 +419,7 @@ pango_scan_int (const char **pos, int *out) char buf[32]; const char *p = *pos; - while (isspace (*p)) + while (g_ascii_isspace (*p)) p++; if (*p < '0' || *p > '9') diff --git a/pango/pangoft2-fontmap.c b/pango/pangoft2-fontmap.c index 44b383b3..de47afcb 100644 --- a/pango/pangoft2-fontmap.c +++ b/pango/pangoft2-fontmap.c @@ -23,7 +23,6 @@ #include "config.h" #include <glib.h> -#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/pango/pangox-fontmap.c b/pango/pangox-fontmap.c index 5e28a000..79c332e2 100644 --- a/pango/pangox-fontmap.c +++ b/pango/pangox-fontmap.c @@ -19,7 +19,6 @@ * Boston, MA 02111-1307, USA. */ -#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> |