1
1

* 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.
Этот коммит содержится в:
Roland Illig 2005-06-08 00:23:44 +00:00
родитель d99bb2db9e
Коммит c4c1c12432
4 изменённых файлов: 23 добавлений и 11 удалений

Просмотреть файл

@ -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.

Просмотреть файл

@ -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

Просмотреть файл

@ -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)
{