aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-06-30 07:42:14 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-06-30 07:42:14 +0800
commitd55e49c51f3a45aa4fb3efe22e144bed70549f1b (patch)
treec431209adf93b966a3ebd847da7381a369176140
parent15a4c0417ca76d02b02b6b77672558b6dd9294bd (diff)
downloadgsoc2013-evolution-d55e49c51f3a45aa4fb3efe22e144bed70549f1b.tar.gz
gsoc2013-evolution-d55e49c51f3a45aa4fb3efe22e144bed70549f1b.tar.zst
gsoc2013-evolution-d55e49c51f3a45aa4fb3efe22e144bed70549f1b.zip
Add e_free_string_slist() and e_free_object_slist().
svn path=/trunk/; revision=10613
-rw-r--r--e-util/e-util.c21
-rw-r--r--e-util/e-util.h4
2 files changed, 25 insertions, 0 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index 35412510d9..82799d280f 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -90,6 +90,17 @@ e_free_object_list (GList *list)
}
void
+e_free_object_slist (GSList *list)
+{
+ GSList *p;
+
+ for (p = list; p != NULL; p = p->next)
+ gtk_object_unref (GTK_OBJECT (p->data));
+
+ g_slist_free (list);
+}
+
+void
e_free_string_list (GList *list)
{
GList *p;
@@ -100,6 +111,16 @@ e_free_string_list (GList *list)
g_list_free (list);
}
+void
+e_free_string_slist (GSList *list)
+{
+ GSList *p;
+
+ for (p = list; p != NULL; p = p->next)
+ g_free (p->data);
+ g_slist_free (list);
+}
+
#define BUFF_SIZE 1024
char *
diff --git a/e-util/e-util.h b/e-util/e-util.h
index 3c78825628..8f99e0f8d5 100644
--- a/e-util/e-util.h
+++ b/e-util/e-util.h
@@ -63,8 +63,12 @@ int g_str_compare (cons
int g_int_compare (const void *x,
const void *y);
char *e_strdup_strip (const char *string);
+
void e_free_object_list (GList *list);
+void e_free_object_slist (GSList *list);
void e_free_string_list (GList *list);
+void e_free_string_slist (GSList *list);
+
char *e_read_file (const char *filename);
int e_write_file (const char *filename,
const char *data,
dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3&id=c4e928ed0077614a30f3740a8c5f9e0f97b9607f'>Tweak the master sites based on the Fenner Report.obrien1999-09-221-0/+1 * upgrade to 0.12.20obrien1999-09-193-6/+8 * Update to KDE-1.1.2se1999-09-183-3/+50 * The version number of libgif.so has changed to 5.steve1999-09-181-1/+1 * Resolve many 301 Moved Permanently URLs in DESCR.fenner1999-09-181-1/+1 * Now that we don't expand $Id$ tags anymore, but back the author's tag.steve1999-09-181-4/+4 * Typo: s/PREFiX/PREFIX/ *blush*peter1999-09-101-1/+1 * The tiff port now lives in ports/graphics/tiff.steve1999-09-072-2/+12 * FreeBSD.ORG -> FreeBSD.orgmharo1999-08-316-7/+7 * $Id$->$FreeBSD$peter1999-08-291-1/+1 * Add a patch to stop tcpconn from segfaulting if run with no arguments.cpiazza1999-08-291-0/+12 * ln -> ${LN}mharo1999-08-281-1/+1 * echo -> ${ECHO} or ${ECHO_MSG} and in some cases, move echo stuffmharo1999-08-281-1/+1 * Upgrade to 1.1.21.vanilla1999-08-283-8/+9 * Portlint.jmz1999-08-271-2/+2 * Change Id->FreeBSD.obrien1999-08-251-1/+1 * Change Id->FreeBSD.obrien1999-08-2520-20/+20 * Add version required. Bootstrap it to the current version.hoek1999-08-231-1/+2 * Fit this into 23 lines. Clean it up a little, too.hoek1999-08-231-6/+4 * chmod -> ${CHMOD}mharo1999-08-233-7/+7 * cp -> ${CP}cpiazza1999-08-191-8/+8 * Re-enforce caps, no period. An "exceptions" file has been createdhoek1999-08-031-1/+1 * Change default DTE-DCE rate to 57600.obrien1999-07-221-2/+11 * Another MASTER_SITE tweak.obrien1999-07-101-2/+2 * Change order of MASTER_SITES for speeder access.obrien1999-07-101-3/+4 * Activate mserverflathill1999-07-081-1/+2 * PR: ports/11816flathill1999-07-089-0/+105 * utilitiy -> utilityhoek1999-07-051-1/+1 * Version upgrade: 1.19 -> 1.20jmz1999-06-282-6/+6 * Move manpage from PLIST to Makefilemharo1999-06-272-3/+3 * As threatened, enforce the "Capital, no period" rule. Ellipses arehoek1999-06-2712-12/+12 * Remove the test to create ${PREFIX}/share/info/dir as it is nowmharo1999-06-061-1/+0 * s,/usr/local,${PREFIX},gmharo1999-06-061-3/+3 * Forget about ${PREFIX}/include/giflib.tg1999-05-271-3/+2 * Don't depend on machine/trap.h so this builds on an Alpha box too.steve1999-05-241-0/+38 * Deinstall without interaction while package building.steve1999-05-241-2/+6 * Add a patch so this builds on -current. Porlint.steve1999-05-102-5/+13 * Upgrade KDE to Release 1.1.1.se1999-05-043-5/+53 * Prefix webpages with UUUUUU:hoek1999-05-034-5/+6 * Respect CFLAGS and CC.obrien1999-04-151-15/+22 * Move WWW_SITE to DESCRscrappy1999-04-144-5/+6 * Proper URLs that reference directories end in '/'billf1999-04-091-2/+2 * Added gnokiitaoka1999-04-021-1/+2 * Software to talk to Nokia 3810/3110/8110/6110 cellular phonestaoka1999-04-029-0/+125 * Remove "BROKEN" from the Makefile. Patch patch-ad fixes the problem.gj1999-03-312-2/+16 * I believe asmodem wants to be here.asami1999-03-201-1/+2 * X applications are not allowed to use "x11" as a category.asami1999-03-201-2/+2 * Displays the modem status, , designed to match AfterSteptaoka1999-03-187-0/+173 * More Y2K/WWW_SITE links...scrappy1999-03-122-2/+7 * Portlint.asami1999-03-011-3/+2 * MASTER_SITE_SUBDIR was broken. My choices in fixing were either go withobrien1999-02-281-1/+1 * MASTER_SITE_SUBDIR changed. I had to pick between GZ or BZIP2 -- I wentobrien1999-02-281-2/+4 * upgrade to 1.82.1obrien1999-02-182-3/+3 * Remove kermit dependency. Kermit is unpackageable, which will make minicomasami1999-02-141-3/+2 * why comment out USE_GMAKE? kill it with avengence!obrien1999-02-121-2/+1 * Comment out USE_GMAKE line.flathill1999-02-121-2/+2 * Remove extra argument to "configure" that had been committed by accident.se1999-02-091-3/+1 * Upgrade to KDE 1.1 RELEASE.se1999-02-093-6/+43 * Upgrade to KDE-1.1pre2 ...se1999-02-073-8/+60 * Adjust port Makefiles to new EXTRACT_* variable defaults. See log ofasami1999-02-031-6/+2 * drop myself from maintainer.itojun1999-01-211-3/+3 * Remove ghostscript (ver. 2) and ghostscript4. We now have GNU ghostscript5asami1999-01-131-2/+2 * Move Palm*-related programs to new "palm" category.asami1999-01-091-3/+1 * Make dependency lines point to right directories -- they were stillasami1999-01-081-2/+2 * Upgrade to the first pre-release of KDE 1.1.se1999-01-073-94/+154 * Mark these broken while Stefan works on an upgrade.asami1999-01-061-1/+3 * Fix time() conflicts on alpha and replace long with time_t for time().simokawa1999-01-053-0/+137 * Include <sys/param.h> for ascii-xfer. Otherwise it doesn't recognize ourobrien1998-12-141-0/+13 * Upgrade to 1.82.obrien1998-12-147-82/+82 * Update MASTER_SITES.billf1998-12-104-9/+12 * Upgrade to 1.1.19, don't split info page.vanilla1998-12-016-37/+103 * Add USE_XLIB to some ports that require X. (Actually BUILD_DEPENDS on imakeasami1998-11-281-1/+2 * Change libtiff shared lib to version 4.0 -- we've shipped 3.3 before, so 1.0asami1998-11-251-2/+2 * libtiff34->libtiff and include/tiff34/*.h -> include/*.hjseger1998-11-251-4/+4 * Make the BROKEN message actually say ${HOME} instead of interpolating it.fenner1998-11-091-2/+2 * Un-break: the MASTER_SITE returned extra bytes when servicing anfenner1998-10-272-5/+4 * Unbreak.jseger1998-10-161-4/+3 * Mark BROKEN. The distfile isn't on the master sitejseger1998-10-111-1/+3 * YAPS (Yet Another Pager Software)kuriyama1998-10-099-0/+210 * Activate yaps.kuriyama1998-10-091-1/+2 * Elfifybrian1998-10-021-9/+7 * Mark all KDE ports BROKEN for ELF.jseger1998-09-301-1/+3 * Remove regexp support for libtiff34 as it is now ELF'able.steve1998-09-191-2/+2 * giflib is now converted to ELF so remove regexp support.steve1998-09-191-2/+2 * Take the manpages out of pkg/PLIST and put them in MAN1.steve1998-09-164-4/+6 * jpeg is now converted to ELF so change LIB_DEPENDS lines accordingly.asami1998-09-152-4/+4 * Upgrade to ver 0.12.19obrien1998-09-152-5/+6 * Um, this isn't quite right....asami1998-08-311-1/+3 * Unbreak this port.steve1998-08-303-4/+4 * Oops. Next time I add MANCOMPRESSED=maybe to a port, I should alsohoek1998-08-302-3/+4 * Remove some left-over manpages.hoek1998-08-301-17/+0 * Set MANCOMPRESSED=maybe. This isn't the correct fix. The port shouldhoek1998-08-281-1/+2 * BROKEN:jseger1998-08-211-1/+3 * Wow. Deleting manpages is a lot faster on bento.hoek1998-08-178-73/+1 * upgrade original distribution to 980813.itojun1998-08-132-4/+4 * Replace qt dependencies with USE_QT.asami1998-08-121-4/+3 * Upgrade to version 1.80.obrien1998-08-119-51/+155 * Fix up dependencies for ports that moved into the x11-toolkits category.asami1998-08-082-5/+5 * viewfax has been moved from x11 to comms.asami1998-08-082-4/+6 * make the script compatible with perl5jmz1998-08-072-2/+2 * Grammar, spelling, and usage police. This commit brought to you bymph1998-08-064-13/+14 * Making x11 category more useful project part 1: take out "x11" ofasami1998-07-281-2/+2 * Another batch of "Add homepage." for benchmarks through converters.hoek1998-07-253-0/+6 * Change dependencies to accept Qt-1.33 if present,se1998-07-241-3/+3 * Upgrade to 1.1.16.vanilla1998-07-166-18/+30 * Upgrade to KDE Release 1.0se1998-07-153-27/+135 * Mark as broken, will be upgraded to 1.0 within a few days.se1998-07-141-1/+3 * Change the default for autobauding from YES to NO.jmz1998-07-133-2/+21 * Sigh. Putting the non-modifyable value first in the condition mightpeter1998-06-301-8/+1 * Another spin loop bug. On dropped network connections, console(8) canpeter1998-06-281-0/+7 * Preserve CLOCAL and CRTSCTS rather than just attempting to clear them,peter1998-06-281-0/+9 * Attempt to catch another spin in the client on a zero return from read().peter1998-06-281-0/+7 * Catch a 0 return from read() on carrier loss, otherwise it spins in anpeter1998-06-281-0/+9 * Oops, missed another "shells/bash".asami1998-06-271-2/+2 * Remove NO_CONFIGURE and NO_PATCH, they never meant anything.asami1998-06-271-2/+1 * Rename "bash" to "bash1" (the actual port is already repository copied).asami1998-06-261-2/+2 * Mission: move ports/comms/atp into ports/mail/atp.dburr1998-06-111-2/+1 * 1. Correct the config file path on qpage.1vanilla1998-06-044-15/+40 * Change MASTER_SITES.vanilla1998-06-031-2/+2 * Active atp.dburr1998-05-161-1/+2 * Change JPEG shared library number to 9. This is to make sure that everyonejseger1998-05-052-4/+4 * Port is no longer broken: correct PLIST has been commitedse1998-05-031-3/+1 * Update PLIST to match Beta4.1se1998-05-031-22/+68 * ===> Building package for kdeutils-4.1basami1998-04-281-1/+3 * Update to KDE Beta4.se1998-04-282-10/+15 * Upgrade to 1.1.14jmz1998-04-212-8/+8 * FreeBSD has setsockopt().peter1998-04-201-2/+9 * Argh; have I mentioned that I hate ttyslot() keyed utmp files yet? :-]peter1998-04-191-4/+5 * Tweak autologin to get it to the point where it appears to work..peter1998-04-195-3/+95 * Switch remaining ports to use jpeg lib version 8.0.jseger1998-04-162-4/+4 * updated to 4.0pl2.itojun1998-04-124-20/+10 * Mark this port as BROKEN. It installs a .seyon in ${HOME}. Ports arejseger1998-04-031-1/+2 * Upgrade to 0.12.18.obrien1998-03-312-3/+4 * Work around "new" uudecode behavior.. (argh!)peter1998-03-221-3/+5 * Don't ask me why, but patch is failing now.asami1998-03-221-1/+3 * Add comms/kpilot, devel/p5-File-Sync, games/tank, security/pgp5 andasami1998-03-211-1/+2 * Path change in MASTER_SITES.jmz1998-03-082-4/+4 * Use $(MASTER_SITE_KDE)se1998-03-071-4/+3 * Add tk virtual category where missing. List of ports which depend on tkfenner1998-02-221-2/+2 * Clean up Makefilese1998-02-161-6/+7 * Upgrade to KDE Beta3se1998-02-083-118/+123 * Fixes to allow transmission of files with long names.max1998-02-042-0/+19 * fix for new select() behavior in FreeBSD-current.itojun1998-02-021-5/+21 * Make this port package.asami1998-01-261-1/+1 * Upgrade to 1.1.11, enable voice extension.vanilla1998-01-267-183/+182 * Allow root to use the "-d" switch.obrien1998-01-113-9/+20 * Upgrade to 1.78obrien1998-01-034-34/+37 * Edit out $Id$ line.asami1997-12-021-4/+1 * Use new location for tiff34 headers.tg1997-12-011-10/+2 * Don't delete ${PREFIX}/share/doc.asami1997-11-291-1/+0 * Update to Beta2se1997-11-283-22/+42 * Remove bad MASTER_SITE, fix version required line.jseger1997-11-271-5/+3 * Remove bad MASTER_SITE and portlint.jseger1997-11-271-4/+2 * Activate pilot-linkpst1997-11-241-1/+2 * Create a /usr/local/etc/rc.d/conserver.sh script for starting up.peter1997-11-222-1/+12 * Specify the port rather than depending /etc/services or the yppeter1997-11-222-2/+2 * Make it a bit easier to override the compiled-in "default" host for thepeter1997-11-221-2/+6 * Damn, I forgot to regenerate this patch file prior to commit...peter1997-11-221-3/+3 * Add conserverpeter1997-11-221-1/+2 * A port for conserver. conserver is the answer to serial consoles. :-)peter1997-11-2213-0/+292 * Remove BROKEN, it packages fine now.asami1997-11-111-3/+1 * Fix a problem with pkg_delete.jmz1997-11-111-3/+1 * Mark this port BROKEN, it doesn't package.asami1997-11-101-1/+3 * Fix seyon to compile under current.jseger1997-11-091-0/+13 * Upgrade to version 1.1.9jmz1997-11-084-55/+58 * Fix hylafax which I broke with my tiff34 changes earlier today.tg1997-11-051-1/+2 * (1) Move the following ports out of x11/:asami1997-11-051-3/+4 * Add BUILD_DEPENDS on moc pre-processor.se1997-11-031-2/+3 * Utilities for the KDE desktop environment (Calculator, Editor,se1997-11-025-0/+184 * Move ports/misc/qpage to ports/comms/misc.max1997-10-131-1/+2 * Re-import of qpage port which used to live in the misc category. Here'smax1997-10-136-0/+70 * Upgrade to 4.08ache1997-10-10