aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez>2005-04-26 10:47:21 +0000
committerantirez <antirez>2005-04-26 10:47:21 +0000
commit611a2e197dc47e322505eba4ea8b7b464987a96b (patch)
treece22c359f09b60bba3fa630001b6121ae615fb34
parent6d0660f216162cb3e2881fa2e87e733db5b9fe05 (diff)
downloadjimtcl-611a2e197dc47e322505eba4ea8b7b464987a96b.zip
jimtcl-611a2e197dc47e322505eba4ea8b7b464987a96b.tar.gz
jimtcl-611a2e197dc47e322505eba4ea8b7b464987a96b.tar.bz2
mingw compilation fix (excluding the compilation of animate window win32 cmd)
-rw-r--r--ChangeLog24
-rw-r--r--Makefile1
-rw-r--r--jim-win32.c7
3 files changed, 30 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index cfd8143..7525c43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,27 @@
+2005-04-21 09:35 patthoyts
+
+ * jim-win32.c: RegisterClass, CreateWindow and UpdateWindow. Need
+ to add user defined Window procedures though.
+
+2005-04-20 17:34 patthoyts
+
+ * jim-win32.c: Added some window managing APIs - MoveWindow,
+ ShowWindow, DestroyWindow and AnimateWindow (which doesn't seem
+ to work).
+
+2005-04-19 17:33 patthoyts
+
+ * jim-win32.c: Added CreateDirectory and RemoveDirectory
+
+2005-04-18 10:31 antirez
+
+ * ChangeLog, Makefile, jim-eventloop.c, jim-eventloop.h, jim.c,
+ jim.h: First version of the Jim eventloop extension, exporting
+ [after], [vwait], and the C API to write other extensions using
+ events. No win32 port for now, just posix. UDP extension will
+ follow shortly and will be the first extension using the event
+ loop.
+
2005-04-13 21:57 patthoyts
* jim-win32.c: Added GetLastInputInfo API
diff --git a/Makefile b/Makefile
index 47cbb27..f402cad 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,7 @@ stopit:
@echo "Use:"
@echo "make jim - to build the Jim interpreter"
@echo "---"
+ @echo "make eventloop - to build only the event loop extension (.SO)"
@echo "make aio - to build only the ANSI I/O extension (.SO)"
@echo "make aio-dll - to build only the ANSI I/O extension (.DLL)"
@echo "---"
diff --git a/jim-win32.c b/jim-win32.c
index 30ce859..0ccd612 100644
--- a/jim-win32.c
+++ b/jim-win32.c
@@ -2,7 +2,7 @@
*
* Copyright (C) 2005 Pat Thoyts <patthoyts@users.sourceforge.net>
*
- * $Id: jim-win32.c,v 1.28 2005/04/21 07:35:57 patthoyts Exp $
+ * $Id: jim-win32.c,v 1.29 2005/04/26 10:47:21 antirez Exp $
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -315,7 +315,7 @@ Win32_ShowWindow(Jim_Interp *interp, int objc, Jim_Obj *const objv[])
return JIM_OK;
}
-
+#ifndef MINGW /* Many needed structures/definiitons are not present in mingw */
#define F(x) { #x , x }
typedef struct { const char *s; unsigned long f; } ANIMATEWINDOWFLAGSMAP;
static ANIMATEWINDOWFLAGSMAP AnimateWindowFlagsMap[] = {
@@ -386,6 +386,7 @@ Win32_AnimateWindow(Jim_Interp *interp, int objc, Jim_Obj *const objv[])
}
return JIM_OK;
}
+#endif /* !MINGW */
static int
Win32_GetActiveWindow(Jim_Interp *interp, int objc, Jim_Obj *const objv[])
@@ -1008,7 +1009,9 @@ Jim_OnLoad(Jim_Interp *interp)
CMD(ShowWindow);
CMD(MoveWindow);
CMD(UpdateWindow);
+#ifndef MINGW
CMD(AnimateWindow);
+#endif
CMD(DestroyWindow);
CMD(GetActiveWindow);
CMD(SetActiveWindow);