1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

added g_module_build_path()

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1222 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-02-17 10:09:49 +00:00 committed by cras
parent 039db4047d
commit 657defae1d
2 changed files with 12 additions and 0 deletions

View File

@ -21,7 +21,9 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <glib.h> #include <glib.h>
#include <gmodule.h>
/*#define ENABLE_BUFFER_CHECKS*/ /*#define ENABLE_BUFFER_CHECKS*/
#define BUFFER_CHECK_SIZE 5 #define BUFFER_CHECK_SIZE 5
@ -311,6 +313,15 @@ char *ig_dirname(const char *file, int line, const char *fname)
return ret; return ret;
} }
char *ig_module_build_path(const char *file, int line, const char *dir, const char *module)
{
char *ret;
ret = g_module_build_path(dir, module);
data_add(ret, INT_MIN, file, line);
return ret;
}
void ig_profile_line(void *key, MEM_REC *rec) void ig_profile_line(void *key, MEM_REC *rec)
{ {
char *data; char *data;

View File

@ -27,6 +27,7 @@ char *ig_dirname(const char *file, int line, const char *fname);
#define g_string_free(a, b) ig_string_free(__FILE__, __LINE__, a, b) #define g_string_free(a, b) ig_string_free(__FILE__, __LINE__, a, b)
#define g_strjoinv(a,b) ig_strjoinv(__FILE__, __LINE__, a, b) #define g_strjoinv(a,b) ig_strjoinv(__FILE__, __LINE__, a, b)
#define g_dirname(a) ig_dirname(__FILE__, __LINE__, a) #define g_dirname(a) ig_dirname(__FILE__, __LINE__, a)
#define g_module_build_path(a, b) ig_module_build_path(__FILE__, __LINE__, a, b)
#ifndef __STRICT_ANSI__ #ifndef __STRICT_ANSI__
#define g_strconcat(a...) ig_strconcat(__FILE__, __LINE__, ##a) #define g_strconcat(a...) ig_strconcat(__FILE__, __LINE__, ##a)