Browse Source

add new header file - utilvfs.h. this intended to be a stock include, which
provides proper order for common include files.

Timur Bakeyev 26 years ago
parent
commit
8cdf4d3f6f
2 changed files with 31 additions and 0 deletions
  1. 9 0
      vfs/ChangeLog
  2. 22 0
      vfs/utilvfs.h

+ 9 - 0
vfs/ChangeLog

@@ -1,3 +1,12 @@
+Tue Jan 19 05:15:49 1999  Timur I. Bakeyev <timur@com.bat.ru>
+
+	* Converted all occurences of DIR_SEP_CHAR and "/" to PATH_SEP and
+	PATH_SEP_STR. Additionall cleanups of the memory code.
+	
+	* utilvfs.h: Added several defenitions for common sizes for buffers.
+	It seems, most of us experience problems, when inventing size for new
+	buffer. This is much better and portable way to eliminate the problem.
+
 1999-01-18  Miguel de Icaza  <miguel@nuclecu.unam.mx>
 
 	* vfs.h: The correct thing to use is PATH_SEP and PATH_SEP_STR 

+ 22 - 0
vfs/utilvfs.h

@@ -0,0 +1,22 @@
+#include <config.h>
+#include "../src/fs.h"
+
+#include <glib.h>
+
+#include "../src/tty.h"		/* enable/disable interrupt key */
+#include "../src/main.h"
+
+#include "../src/mem.h"
+#include "../src/util.h"
+#include "../src/mad.h"
+
+
+#define BUF_4K		4096
+#define BUF_1K		1024
+
+#define BUF_LARGE	BUF_1K
+#define BUF_MEDIUM	512
+#define BUF_SMALL	128
+#define BUF_TINY	64
+
+char* append_path_sep (char *path);