r1492@localhost: muntyan | 2005-12-24 00:09:56 -0600
Do not display stupid error messages on windows
This commit is contained in:
parent
74be00b9d2
commit
cff99f3c3e
28
moo.kdevelop
28
moo.kdevelop
@ -24,7 +24,7 @@
|
|||||||
</ignoreparts>
|
</ignoreparts>
|
||||||
<projectdirectory>.</projectdirectory>
|
<projectdirectory>.</projectdirectory>
|
||||||
<absoluteprojectpath>false</absoluteprojectpath>
|
<absoluteprojectpath>false</absoluteprojectpath>
|
||||||
<description></description>
|
<description/>
|
||||||
<secondaryLanguages>
|
<secondaryLanguages>
|
||||||
<language>C</language>
|
<language>C</language>
|
||||||
</secondaryLanguages>
|
</secondaryLanguages>
|
||||||
@ -54,13 +54,13 @@
|
|||||||
<cflags>-O0 -g3 -pg</cflags>
|
<cflags>-O0 -g3 -pg</cflags>
|
||||||
<cxxflags>-O0 -g3 -pg</cxxflags>
|
<cxxflags>-O0 -g3 -pg</cxxflags>
|
||||||
<envvars/>
|
<envvars/>
|
||||||
<topsourcedir></topsourcedir>
|
<topsourcedir/>
|
||||||
<cppflags></cppflags>
|
<cppflags/>
|
||||||
<ldflags></ldflags>
|
<ldflags/>
|
||||||
<ccompilerbinary></ccompilerbinary>
|
<ccompilerbinary/>
|
||||||
<cxxcompilerbinary></cxxcompilerbinary>
|
<cxxcompilerbinary/>
|
||||||
<f77compilerbinary></f77compilerbinary>
|
<f77compilerbinary/>
|
||||||
<f77flags></f77flags>
|
<f77flags/>
|
||||||
</debug>
|
</debug>
|
||||||
<gtk-cvs>
|
<gtk-cvs>
|
||||||
<configargs>--enable-debug=full --enable-all-gcc-warnings=fatal --enable-developer-mode --disable-moo-module --without-python --without-mooterm --without-mooapp</configargs>
|
<configargs>--enable-debug=full --enable-all-gcc-warnings=fatal --enable-developer-mode --disable-moo-module --without-python --without-mooterm --without-mooapp</configargs>
|
||||||
@ -198,12 +198,12 @@
|
|||||||
</kdevautoproject>
|
</kdevautoproject>
|
||||||
<kdevdebugger>
|
<kdevdebugger>
|
||||||
<general>
|
<general>
|
||||||
<dbgshell></dbgshell>
|
<dbgshell/>
|
||||||
<programargs>--g-fatal-warnings</programargs>
|
<programargs>--g-fatal-warnings</programargs>
|
||||||
<gdbpath></gdbpath>
|
<gdbpath/>
|
||||||
<configGdbScript></configGdbScript>
|
<configGdbScript/>
|
||||||
<runShellScript></runShellScript>
|
<runShellScript/>
|
||||||
<runGdbScript></runGdbScript>
|
<runGdbScript/>
|
||||||
<breakonloadinglibs>true</breakonloadinglibs>
|
<breakonloadinglibs>true</breakonloadinglibs>
|
||||||
<separatetty>false</separatetty>
|
<separatetty>false</separatetty>
|
||||||
<floatingtoolbar>true</floatingtoolbar>
|
<floatingtoolbar>true</floatingtoolbar>
|
||||||
@ -304,7 +304,7 @@
|
|||||||
</codecompletion>
|
</codecompletion>
|
||||||
<references/>
|
<references/>
|
||||||
<creategettersetter>
|
<creategettersetter>
|
||||||
<prefixGet></prefixGet>
|
<prefixGet/>
|
||||||
<prefixSet>set</prefixSet>
|
<prefixSet>set</prefixSet>
|
||||||
<prefixVariable>m_,_</prefixVariable>
|
<prefixVariable>m_,_</prefixVariable>
|
||||||
<parameterName>theValue</parameterName>
|
<parameterName>theValue</parameterName>
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <gmodule.h>
|
#include <gmodule.h>
|
||||||
|
|
||||||
|
#ifdef __WIN32__
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define PLUGIN_PREFS_ENABLED "enabled"
|
#define PLUGIN_PREFS_ENABLED "enabled"
|
||||||
|
|
||||||
|
|
||||||
@ -778,6 +782,25 @@ out:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static GModule *
|
||||||
|
module_open (const char *path)
|
||||||
|
{
|
||||||
|
GModule *module;
|
||||||
|
G_GNUC_UNUSED guint saved;
|
||||||
|
|
||||||
|
#ifdef __WIN32__
|
||||||
|
saved = SetErrorMode (SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
module = g_module_open (path, 0);
|
||||||
|
|
||||||
|
#ifdef __WIN32__
|
||||||
|
SetErrorMode (saved);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return module;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
moo_plugin_read_dir (const char *path)
|
moo_plugin_read_dir (const char *path)
|
||||||
{
|
{
|
||||||
@ -803,7 +826,7 @@ moo_plugin_read_dir (const char *path)
|
|||||||
prefix = g_strndup (name, suffix - name);
|
prefix = g_strndup (name, suffix - name);
|
||||||
|
|
||||||
module_path = g_build_filename (path, name, NULL);
|
module_path = g_build_filename (path, name, NULL);
|
||||||
module = g_module_open (module_path, 0);
|
module = module_open (module_path);
|
||||||
|
|
||||||
if (module)
|
if (module)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user