libgweather r256 - in trunk: . libgweather
- From: danw svn gnome org
- To: svn-commits-list gnome org
- Subject: libgweather r256 - in trunk: . libgweather
- Date: Wed, 18 Jun 2008 17:51:53 +0000 (UTC)
Author: danw
Date: Wed Jun 18 17:51:53 2008
New Revision: 256
URL: http://svn.gnome.org/viewvc/libgweather?rev=256&view=rev
Log:
* libgweather/weather.c (dmsh2rad): s/toupper/g_ascii_toupper/
* libgweather/weather-met.c (met_reprocess):
s/isspace/g_ascii_isspace/. s/strncasecmp/g_ascii_strncasecmp/
Modified:
trunk/ChangeLog
trunk/libgweather/weather-met.c
trunk/libgweather/weather.c
Modified: trunk/libgweather/weather-met.c
==============================================================================
--- trunk/libgweather/weather-met.c (original)
+++ trunk/libgweather/weather-met.c Wed Jun 18 17:51:53 2008
@@ -47,7 +47,7 @@
x += len; /* End mark */
while (*p && p < x) {
- if (isspace (*p)) {
+ if (g_ascii_isspace (*p)) {
if (!spacing) {
spacing = 1;
lastspace = o;
@@ -65,19 +65,19 @@
}
if (*p == '&') {
- if (strncasecmp (p, "&", 5) == 0) {
+ if (g_ascii_strncasecmp (p, "&", 5) == 0) {
*o++ = '&';
count++;
p += 5;
continue;
}
- if (strncasecmp (p, "<", 4) == 0) {
+ if (g_ascii_strncasecmp (p, "<", 4) == 0) {
*o++ = '<';
count++;
p += 4;
continue;
}
- if (strncasecmp (p, ">", 4) == 0) {
+ if (g_ascii_strncasecmp (p, ">", 4) == 0) {
*o++ = '>';
count++;
p += 4;
@@ -85,11 +85,11 @@
}
}
if (*p == '<') {
- if (strncasecmp (p, "<BR>", 4) == 0) {
+ if (g_ascii_strncasecmp (p, "<BR>", 4) == 0) {
*o++ = '\n';
count = 0;
}
- if (strncasecmp (p, "<B>", 3) == 0) {
+ if (g_ascii_strncasecmp (p, "<B>", 3) == 0) {
*o++ = '\n';
*o++ = '\n';
count = 0;
Modified: trunk/libgweather/weather.c
==============================================================================
--- trunk/libgweather/weather.c (original)
+++ trunk/libgweather/weather.c Wed Jun 18 17:51:53 2008
@@ -76,7 +76,7 @@
return DBL_MAX;
value = (gdouble)((deg * 60 + min) * 60 + sec) * M_PI / 648000.;
- dir = toupper (latlon[strlen (latlon) - 1]);
+ dir = g_ascii_toupper (latlon[strlen (latlon) - 1]);
if (dir == 'W' || dir == 'S')
value = -value;
else if (dir != 'E' && dir != 'N' && (value != 0.0 || dir != '0'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]