diff options
author | 2008-09-19 23:51:01 -0400 | |
---|---|---|
committer | 2008-09-19 23:51:01 -0400 | |
commit | 8c86c21b2fcd2c62a1f70b6d553983991a066889 (patch) | |
tree | 71d9aceafa42ea1b988527f34e1994a143ab4916 /src/textadept.c | |
parent | 8ae92281275204bcb25114ddcc169981ef9b45ed (diff) | |
download | textadept-8c86c21b2fcd2c62a1f70b6d553983991a066889.tar.gz textadept-8c86c21b2fcd2c62a1f70b6d553983991a066889.zip |
Added preliminary support for Textadept on Windows.
Diffstat (limited to 'src/textadept.c')
-rw-r--r-- | src/textadept.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/textadept.c b/src/textadept.c index 26bce179..6872e872 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2,6 +2,11 @@ #include "textadept.h" +#ifdef WIN32 +#include "Windows.h" +#define strcasecmp _stricmp +#endif + #define signal(o, s, c) g_signal_connect(G_OBJECT(o), s, G_CALLBACK(c), 0) // Textadept @@ -72,6 +77,18 @@ int main(int argc, char **argv) { return 0; } +#ifdef WIN32 +int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR lpCmdLine, int) { + // TODO: lpCmdLine contains command line string, pass to Lua + gtk_init(0, NULL); + l_init(0, NULL, false); + create_ui(); + l_load_script("init.lua"); + gtk_main(); + return 0; +} +#endif + /** * Creates the user interface. * The UI consists of: |