* 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.
This commit is contained in:
Roland Illig 2005-06-08 00:23:44 +00:00
parent d99bb2db9e
commit c4c1c12432
4 changed files with 23 additions and 11 deletions

View File

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

View File

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

View File

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

View File

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