winefile maintenance
Martin Fuchs
martin-fuchs at gmx.net
Wed Oct 6 03:45:29 CDT 2004
Changelog:
- remove trailing semicolons from constant definitions
- add some comments
- make time_to_filetime() a static function
Index: winefile.c
===================================================================
RCS file: /home/wine/wine/programs/winefile/winefile.c,v
retrieving revision 1.20
diff -u -p -d -w -b -r1.20 winefile.c
--- winefile.c 27 Sep 2004 20:35:53 -0000 1.20
+++ winefile.c 6 Oct 2004 08:36:57 -0000
@@ -59,9 +59,9 @@
#ifdef _SHELL_FOLDERS
-#define DEFAULT_SPLIT_POS 300;
+#define DEFAULT_SPLIT_POS 300
#else
-#define DEFAULT_SPLIT_POS 200;
+#define DEFAULT_SPLIT_POS 200
#endif
@@ -177,6 +177,7 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd,
LRESULT CALLBACK TreeWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam);
+/* display error message for the specified WIN32 error code */
static void display_error(HWND hwnd, DWORD error)
{
PTSTR msg;
@@ -190,6 +191,7 @@ static void display_error(HWND hwnd, DWO
LocalFree(msg);
}
+/* allocate and initialise a directory entry */
static Entry* alloc_entry()
{
Entry* entry = (Entry*) malloc(sizeof(Entry));
@@ -383,7 +385,7 @@ static Entry* read_tree_win(Root* root,
#if !defined(_NO_EXTENSIONS) && defined(__WINE__)
-BOOL time_to_filetime(const time_t* t, FILETIME* ftime)
+static BOOL time_to_filetime(const time_t* t, FILETIME* ftime)
{
struct tm* tm = gmtime(t);
SYSTEMTIME stime;
More information about the wine-patches
mailing list