⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glib_hash.h

📁 linux下的多线程调试工具
💻 H
字号:
/* Copyright (C) 2004,2005,2006  Bull S.A. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#ifndef GLIB_HASH_H#define GLIB_HASH_H#define _GNU_SOURCE#ifndef __USE_GNU#define __USE_GNU#endif /* __USE_GNU */#include <search.h>#define g_int_hash 0#define g_int_equal 0#define g_str_hash 1#define g_str_equal 1typedef struct GHashTable {    struct hsearch_data table;    int type;} GHashTable;typedef void* gpointer;typedef const void* gconstpointer;inline GHashTable *g_hash_table_new (int a, int b);inline gpointer g_hash_table_lookup(GHashTable *table, gpointer key);inline gpointer* g_hash_table_insert(GHashTable *table,gpointer key,    gpointer data);inline void g_hash_table_foreach (GHashTable *table,    void (*func) (gpointer key, gpointer value, gpointer user_data),    gpointer userdata);inline void g_hash_table_destroy (GHashTable *table);#endif /* GLIB_HASH_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -