* util.h (free_after): Moved to vfs/smbfs.c, as this is the only
place where it is used. This is necessary because the SunPro compiler creates external references even for functions that are only referred to in unused inline functions.
Этот коммит содержится в:
родитель
d99bb2db9e
Коммит
c4c1c12432
@ -1,3 +1,10 @@
|
||||
2005-06-08 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* util.h (free_after): Moved to vfs/smbfs.c, as this is the only
|
||||
place where it is used. This is necessary because the SunPro
|
||||
compiler creates external references even for functions that are
|
||||
only referred to in unused inline functions.
|
||||
|
||||
2005-06-07 Leonard den Ottolander <leonard den ottolander nl>
|
||||
|
||||
* main.c (midnight_callback): Also match tabs as empty command.
|
||||
|
11
src/util.h
11
src/util.h
@ -250,17 +250,6 @@ void save_file_position (const char *filename, long line, long column);
|
||||
#define ISASCII(c) isascii(c)
|
||||
#endif
|
||||
|
||||
/* this function allows you to write:
|
||||
* char *s = g_strdup("hello, world");
|
||||
* s = free_after(g_strconcat(s, s, (char *) NULL), s);
|
||||
*/
|
||||
static inline char *
|
||||
free_after (char *result, char *string_to_free)
|
||||
{
|
||||
g_free(string_to_free);
|
||||
return result;
|
||||
}
|
||||
|
||||
/* usage: str_cmp ("foo", !=, "bar") */
|
||||
#define str_cmp(a,rel,b) (strcmp ((a), (b)) rel 0)
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
2005-06-08 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* smbfs.c (free_after): Moved here from src/util.h.
|
||||
|
||||
2005-05-29 Leonard den Ottolander <leonard * den ottolander nl>
|
||||
|
||||
* ftpfs.[ch]: Added variables and assignment to allow passive
|
||||
|
12
vfs/smbfs.c
12
vfs/smbfs.c
@ -109,6 +109,18 @@ static inline BOOL dbghdr_wrapper (int level, const char *file, const char *func
|
||||
}
|
||||
#define dbghdr dbghdr_wrapper
|
||||
|
||||
/* this function allows you to write:
|
||||
* char *s = g_strdup("hello, world");
|
||||
* s = free_after(g_strconcat(s, s, (char *)0), s);
|
||||
*/
|
||||
static inline char *
|
||||
free_after (char *result, char *string_to_free)
|
||||
{
|
||||
g_free(string_to_free);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
smbfs_auth_free (struct smb_authinfo const *a)
|
||||
{
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user