/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* generic utilities for hash tables */ /* * * Author : * Bertrand Guiheneuf * * Copyright 1999, 2000 Ximian, Inc. (www.ximian.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #include #include "hash-table-utils.h" /* * free a (key/value) hash table pair. * to be called in a g_hash_table_foreach() * before g_hash_table_destroy(). */ void g_hash_table_generic_free (gpointer key, gpointer value, gpointer user_data) { g_free (key); g_free (value); } /***/ /* use these two funcs for case insensitive hash table */ gint g_strcase_equal (gconstpointer a, gconstpointer b) { return (g_strcasecmp ((gchar *)a, (gchar *)b) == 0); } /* modified g_str_hash from glib/gstring.c because it would have been too slow to us g_strdown() on the string */ /* a char* hash function from ASU */ guint g_strcase_hash (gconstpointer v) { const char *s = (char*)v; const char *p; guint h=0, g; for(p = s; *p != '\0'; p += 1) { h = ( h << 4 ) + toupper(*p); if ( ( g = h & 0xf0000000 ) ) { h = h ^ (g >> 24); h = h ^ g; } } return h /* % M */; } /***/ alue='dependabot/npm_and_yarn/devel/electron4/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron4/files/elliptic-6.5.4 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - Update to 1.5.6wen2010-01-302-8/+4
* - Unbreak INDEX on amd64/6pav2010-01-181-3/+2
* - Update to 1.5.5wen2010-01-153-6/+9
* - Fix build on AMD64 based on the latest patch that was sent byaraujo2009-08-161-0/+5
* - Update to 1.5.3.araujo2009-08-163-7/+10
* -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1
* - Update maintainer mail addressdhn2009-04-061-1/+1
* - Pass maintainership along.wxs2009-02-131-1/+1
* - Update to 1.4.4miwi2009-01-166-83/+5
* - Update to 1.4.3miwi2008-04-284-14/+27
* - Chase cln updatepav2008-04-231-1/+2
* upgrade to 1.3.8ijliao2007-10-204-11/+27
* - Update to 1.3.6miwi2007-03-073-21/+5
* Use libtool port instead of included version to avoid objformat a.out botchkris2007-02-012-0/+2
* - Update to 1.3.5miwi2006-10-073-12/+13
* - s,INSTALLS_SHLIB,USE_LDCONFIG,gclsung2006-08-151-1/+1
* - Add SHA256pav2005-11-251-0/+1
* - Update to 1.3.3pav2005-11-023-6/+6
* - Update to 1.3.2pav2005-07-193-4/+5
* Update to 1.3.1jylefort2005-05-093-4/+4
* BROKEN on alpha: Does not compilekris2005-01-021-0/+4
* - Update to 1.3.0pav2004-10-263-5/+6
* Increase USE_GCC to 3.4 for those ports which compile with it.kris2004-09-301-1/+1
* Now builds on amd64kris2004-09-281-4/+0
* Update to verion 1.2.3krion2004-08-173-15/+9
* BROKEN on amd64: Configure failskris2004-03-131-0/+4
* Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-1/+1
* - Utilize USE_GNOMEkrion2004-02-032-2/+4
* SIZEify.trevor2004-01-301-0/+1
* - Update to version 1.1.6krion2004-01-233-3/+4
* - Update to version 1.1.5krion2003-11-074-3/+22
* - Update to version 1.1.3krion2003-10-113-22/+16
* IGNORE should be used instead of BROKEN to indicate that a portnaddy2003-06-271-1/+1
* mark it broken on -stableijliao2003-04-231-1/+7
* upgrade to 1.1.0ijliao2003-04-113-3/+4
* upgrade to 1.0.14ijliao2003-03-022-2/+2
* De-pkg-comment.knu2003-02-212-1/+1
* upgrade to 1.0.13ijliao2003-01-293-3/+3
* Fix PORTCOMMENTs that were killing INDEX builds.adamw2002-11-072-2/+1
* Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-072-1/+2
* upgrade to 1.0.12ijliao2002-10-313-3/+3
* upgrade to 1.0.11ijliao2002-09-193-3/+3
* Remove USE_NEWGCC, which is no longer supported or required.kris2002-08-311-1/+0
* upgrade to 1.0.10ijliao2002-07-303-3/+3
* Replace ${PERL} with ${REINPLACE_CMD}ijliao2002-06-231-2/+3
* upgrade to 1.0.9ijliao2002-06-133-3/+3
* upgrade to 1.0.8ijliao2002-04-023-3/+3
* Fix pkg-plist.petef2002-03-291-1/+0
* upgrade to 1.0.7ijliao2002-03-193-3/+4
* upgrade to 1.0.6ijliao2002-03-102-2/+2
* upgrade to 1.0.5ijliao2002-01-283-22/+5
* upgrade to 1.0.3ijliao2001-12-232-2/+2
* upgrade to 1.0.2ijliao2001-12-213-4/+4
* fix pkg-plistijliao2001-12-093-22/+53
* upgrade to 1.0.1ijliao2001-11-26