aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-12-05 04:19:12 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-12-05 04:19:12 +0800
commit79737076b89ff4a7018927bdc5516535516ed769 (patch)
treefe6604c80a515911600c05379d97e0fd68709699
parent8a4239fc9ea2642b3f0ffdec4339248d4a615d2a (diff)
downloadgsoc2013-evolution-79737076b89ff4a7018927bdc5516535516ed769.tar.gz
gsoc2013-evolution-79737076b89ff4a7018927bdc5516535516ed769.tar.zst
gsoc2013-evolution-79737076b89ff4a7018927bdc5516535516ed769.zip
macro that calls e_filename_make_safe
2000-12-04 Jeffrey Stedfast <fejj@helixcode.com> * gal/util/e-util.h (e_str_make_safe): macro that calls e_filename_make_safe * gal/util/e-util.c (e_filename_make_safe): Renamed from e_str_make_safe (e_strstrcase): go back to returning gchar * rather than const. svn path=/trunk/; revision=6780
-rw-r--r--e-util/e-util.c10
-rw-r--r--e-util/e-util.h7
2 files changed, 9 insertions, 8 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index 6965bff9ee..9cc1b40b0a 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -500,7 +500,7 @@ e_strsplit (const gchar *string,
return str_array;
}
-const gchar *
+gchar *
e_strstrcase (const gchar *haystack, const gchar *needle)
{
/* find the needle in the haystack neglecting case */
@@ -515,17 +515,17 @@ e_strstrcase (const gchar *haystack, const gchar *needle)
return NULL;
if (len == 0)
- return haystack;
+ return (gchar *) haystack;
- for (ptr = haystack; *(ptr + len - 1) != '\0'; ptr++)
- if (!g_strncasecmp(ptr, needle, len))
+ for (ptr = (gchar *) haystack; *(ptr + len - 1) != '\0'; ptr++)
+ if (!g_strncasecmp (ptr, needle, len))
return ptr;
return NULL;
}
void
-e_str_make_safe (gchar *string)
+e_filename_make_safe (gchar *string)
{
gchar *p;
diff --git a/e-util/e-util.h b/e-util/e-util.h
index 37dcf3daec..fc6d12ef34 100644
--- a/e-util/e-util.h
+++ b/e-util/e-util.h
@@ -48,10 +48,11 @@ gchar **e_strsplit (const gchar *string,
const gchar *delimiter,
gint max_tokens);
-const gchar *e_strstrcase (const gchar *haystack,
- const gchar *needle);
+gchar *e_strstrcase (const gchar *haystack,
+ const gchar *needle);
-void e_str_make_safe (gchar *string);
+void e_filename_make_safe (gchar *string);
+#define e_str_make_safe(x) e_filename_make_safe(x)
void e_marshal_INT__INT_INT_POINTER (GtkObject * object,
GtkSignalFunc func,
mezz2009-02-092-4/+4 * Update to 0.02erwin2009-01-312-5/+4 * Reassign my p5-* ports to perl@ so more than one personerwin2009-01-3016-16/+16 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-241-0/+2 * Bump the version of the curl shared library after the ftp/curl updateroam2009-01-231-2/+2 * - Update to 5.07rafan2009-01-232-5/+4 * - Chase lang/guile shlib bumpmiwi2009-01-231-3/+3 * - add LICENSE:dinoex2009-01-171-0/+2 * - Update to 1.07jadawin2009-01-162-4/+4 * Tarball rerolled after release, fixed SQL quoting errorlth2009-01-152-3/+4 * Update to 2.8.20lth2009-01-143-5/+5 * Presenting GNOME 2.24 for FreeBSD.marcus2009-01-101-3/+3 * - Fix build (needs Xext)pav2009-01-072-0/+2 * Update to 2.8.19lth2008-12-313-5/+6 * With PEAR::Payment_DTA provides functions to create DTA files used in Germanymiwi2008-12-144-0/+37 * Grammar tweak in pkg-descr.mezz2008-12-101-6/+6 * Update to 4.0.1.mezz2008-12-052-11/+5 * Mark it as IGNORE on under FreeBSD 7 as it does not build. Might be fixed inmezz2008-12-041-1/+7 * - Update to 1.2.17pav2008-12-043-5/+8 * - Update to 1.20amdmi32008-12-033-6/+6 * o Fix PLISTlioux2008-12-011-5/+3 * o Add missing dir to PLIST_DIRSlioux2008-11-301-1/+4 * Fix build: JAVA_BUILD has to be "jdk" so that JAVAC is definedlioux2008-11-301-1/+1 * o Uphold NOPORTDOCSlioux2008-11-301-1/+8 * o Make sure a java run time is listed as a extract dependencylioux2008-11-301-1/+4 * o Make sure a java run time is listed as a run dependencylioux2008-11-291-1/+2 * o Fix build on port's cluster: JAVA_VERSION has to be 1.5+ ratherlioux2008-11-291-5/+1 * Update WWW taglioux2008-11-291-1/+1 * Drop maintainership.lioux2008-11-293-3/+3 * - Update to 0.09chinsan2008-11-263-8/+13 * Update to 4.0.mezz2008-11-253-23/+44 * Beanie is a flexible, distributed accounting system for medium-sizedtabthorpe2008-11-145-0/+110 * - Fixed pkg-plist problems and NOPORTDOCS handlingglarkin2008-11-126-28/+122 * - Fixed recursive make invocation that called FreeBSD make insteadglarkin2008-11-108-266/+474 * Update to 1.15skv2008-11-072-5/+4 * - Update to 1.48wxs2008-11-053-12/+10 * Update to 2.8.18lth2008-11-052-4/+4 * Fix dependencies.skv2008-10-181-0/+2 * Update to 3.20erwin2008-10-174-11/+20 * Update to 1.14skv2008-10-163-13/+18 * - Update to 0.8.9glarkin2008-10-1412-78/+236 * webERP is a complete web based accounting/ERP systemmiwi2008-10-116-0/+995 * Update to 2.2.7.kwm2008-10-104-18/+12 * - Update to 1.26miwi2008-09-242-4/+5 * - Fix build on sparc64gahr2008-09-161-6/+8 * Use newer versions of gtkhtml and gofficeahze2008-09-071-3/+3 * Update to 2.2.6ahze2008-09-074-5/+21 * Reset infofarmer due to maintainer-timeouts and no response to email.linimon2008-09-071-1/+1 * Add p5-Finance-QuoteTW, fetch quotes of mutual funds in Taiwan.chinsan2008-09-015-0/+58 * Add p5-Business-OnlinePayment-PaymenTech, PaymenTech backend forchinsan2008-08-315-0/+42 * - Add WWW URL.chinsan2008-08-311-0/+2 * - simplify dependencyleeym2008-08-311-8/+13 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-217-7/+0 * Conversion from (now defunct) autoconf-2.61 to autoconf-2.62ade2008-08-201-1/+1 * Update to 2.8.17lth2008-08-03