1
1

11 Коммитов

Автор SHA1 Сообщение Дата
Pavel Roskin
d9c035d2c2 Fixed #elif. 2002-01-21 21:29:55 +00:00
Pavel Roskin
a504067e6c * global.h: Fallback to sys/utime.h if utime.h is missing. 2002-01-21 20:57:31 +00:00
Pavel Roskin
3a9692b680 * global.h: Provide fallbacks for getuid(), getgid(), geteuid()
and getegid().
* fs.h: Fully trust HAVE_DIRENT_H.
* complete.c: Don't include dirent.h directly, fs.h takes care
of it.
* file.c: Likewise.
* filegui.c: Likewise.
* main.c: Likewise.
* treestore.c: Likewise.
2002-01-21 20:47:05 +00:00
Pavel Roskin
4df07d04be * global.h [!__GNUC__]: Define __attribute__ with one argument. 2002-01-21 19:57:48 +00:00
Pavel Roskin
6eef7a34e7 * global.h: Define __attribute__ to an empty string for non-gcc
compilers so that it's safe to use.
2001-10-20 03:38:41 +00:00
Pavel Roskin
c11389facb * global.h: Include io.h, pwd.h, grp.h and utime.h. Adjust all
sources not to include them and to include global.h at the right
place.
2001-09-07 17:52:19 +00:00
Pavel Roskin
dbe20dc6c8 * global.h: Include all time-related system includes, since
it's non-trivial (order, conflicts) and is better handled in one
place.
2001-09-07 16:46:31 +00:00
Pavel Roskin
f3a84ebc1a * tty.h: Remove support for old curses and GNOME.
* global.h: Likewise.
2001-09-03 03:07:46 +00:00
Pavel Roskin
05adbccda8 * fs.h: Correctly include <sys/param.h>.
* x.h: Include "global.h".  Move all contents ...
* global.h: Here.
2001-08-19 16:23:24 +00:00
Timur Bakeyev
a39568367e Glibing..... (2)
Wed Jan 27 03:17:44 1999  Timur Bakeyev <mc@bat.ru>

	* Converted memory managment to Glib. Now we use g_new()/g_malloc()/
	g_strdup()/g_free() routings. Also, copy_strings() replaced by
	g_strconcat(), strcasecmp() -> g_strcasecmp(),and sprintf() by
	g_snprintf().

	* Some sequences of malloc()/sprintf() changed to g_strdup_printf().

	* mad.[ch]: Modified, to work with new GLib's memory managment. Fixed
	a missing #undef for tempnam, which caused dead loop. Add several new
	functions to emulate GLib memory managment.

	*main.c, mad.[ch]: Add a new switch  "-M", which allows to redirect MAD
	messages to the file.

	* util.[ch], utilunix.c: Modified, deleted our variants of strcasecmp()
	and strdup() - we have g_ equivalences. Remove get_full_name() - it is
	similar to concat_dir_and_file(). Some other tricks with g_* functions.

	* global.h: Modified, extended. Now it is main memory mangment include -
	i.e. all inclusions of <stdlib.h>, <malloc.h>, <glib.h>, "fs.h", "mem.h",
	"util.h" and "mad.h" done there. This elimanates problem with proper or-
	der of #include's.

	* All around the source - changed order of #include's, most of them gone
	to global.h (see above), minor changes, like "0" -> NULL in string func-
	tions.
1999-01-27 01:08:30 +00:00
Miguel de Icaza
eb6b3842ab Initial revision 1998-02-27 04:54:42 +00:00