Fixed linux build
parent
3f0ccef89a
commit
36ad5567a4
|
@ -17,8 +17,6 @@ endif
|
||||||
|
|
||||||
CLEANFILES =
|
CLEANFILES =
|
||||||
|
|
||||||
MOO_INTL
|
|
||||||
|
|
||||||
include plat/win32/Makefile.incl
|
include plat/win32/Makefile.incl
|
||||||
|
|
||||||
if MOO_OS_WIN32
|
if MOO_OS_WIN32
|
||||||
|
|
|
@ -1,72 +1,71 @@
|
||||||
source_files = \
|
source_files = \
|
||||||
../moo/moolua/medit-lua.h\
|
../moo/moolua/medit-lua.h\
|
||||||
../moo/moolua/medit-lua.cpp\
|
../moo/moolua/medit-lua.cpp\
|
||||||
../moo/mooapp/mooappabout.c\
|
../moo/mooapp/mooappabout.cpp\
|
||||||
../moo/mooapp/mooappabout.h\
|
../moo/mooapp/mooappabout.h\
|
||||||
../moo/mooapp/mooapp-accels.h\
|
../moo/mooapp/mooapp-accels.h\
|
||||||
../moo/mooapp/mooapp.c\
|
../moo/mooapp/mooapp.cpp\
|
||||||
../moo/mooapp/mooapp.h\
|
../moo/mooapp/mooapp.h\
|
||||||
../moo/mooapp/mooapp-info.h\
|
../moo/mooapp/mooapp-info.h\
|
||||||
../moo/mooapp/mooapp-private.h\
|
../moo/mooapp/mooapp-private.h\
|
||||||
../moo/mooapp/moohtml.c\
|
../moo/mooapp/moohtml.cpp\
|
||||||
../moo/mooapp/moohtml.h\
|
../moo/mooapp/moohtml.h\
|
||||||
../moo/mooapp/moolinklabel.c\
|
../moo/mooapp/moolinklabel.cpp\
|
||||||
../moo/mooapp/moolinklabel.h\
|
../moo/mooapp/moolinklabel.h\
|
||||||
../moo/mooedit/mooedit-accels.h\
|
../moo/mooedit/mooedit-accels.h\
|
||||||
../moo/mooedit/mooeditaction.c\
|
../moo/mooedit/mooeditaction.cpp\
|
||||||
../moo/mooedit/mooeditaction-factory.c\
|
../moo/mooedit/mooeditaction-factory.cpp\
|
||||||
../moo/mooedit/mooeditaction-factory.h\
|
../moo/mooedit/mooeditaction-factory.h\
|
||||||
../moo/mooedit/mooeditaction.h\
|
../moo/mooedit/mooeditaction.h\
|
||||||
../moo/mooedit/mooeditbookmark.c\
|
../moo/mooedit/mooeditbookmark.cpp\
|
||||||
../moo/mooedit/mooeditbookmark.h\
|
../moo/mooedit/mooeditbookmark.h\
|
||||||
../moo/mooedit/mooedit.cpp\
|
../moo/mooedit/mooedit.cpp\
|
||||||
../moo/mooedit/mooeditconfig.c\
|
../moo/mooedit/mooeditconfig.cpp\
|
||||||
../moo/mooedit/mooeditconfig.h\
|
../moo/mooedit/mooeditconfig.h\
|
||||||
../moo/mooedit/mooeditdialogs.cpp\
|
../moo/mooedit/mooeditdialogs.cpp\
|
||||||
../moo/mooedit/mooeditdialogs.h\
|
../moo/mooedit/mooeditdialogs.h\
|
||||||
../moo/mooedit/mooedit-enum-types.c\
|
../moo/mooedit/mooedit-enum-types.c\
|
||||||
../moo/mooedit/mooedit-enum-types.h\
|
../moo/mooedit/mooedit-enum-types.h\
|
||||||
../moo/mooedit/mooedit-enums.h\
|
../moo/mooedit/mooedit-enums.h\
|
||||||
../moo/mooedit/mooeditfileinfo.c\
|
../moo/mooedit/mooeditfileinfo.cpp\
|
||||||
../moo/mooedit/mooeditfileinfo.c\
|
|
||||||
../moo/mooedit/mooeditfileinfo.h\
|
../moo/mooedit/mooeditfileinfo.h\
|
||||||
../moo/mooedit/mooedit-fileops.cpp\
|
../moo/mooedit/mooedit-fileops.cpp\
|
||||||
../moo/mooedit/mooedit-fileops.h\
|
../moo/mooedit/mooedit-fileops.h\
|
||||||
../moo/mooedit/mooeditfiltersettings.c\
|
../moo/mooedit/mooeditfiltersettings.cpp\
|
||||||
../moo/mooedit/mooeditfiltersettings.h\
|
../moo/mooedit/mooeditfiltersettings.h\
|
||||||
../moo/mooedit/mooedit.h\
|
../moo/mooedit/mooedit.h\
|
||||||
../moo/mooedit/mooedithistoryitem.c\
|
../moo/mooedit/mooedithistoryitem.cpp\
|
||||||
../moo/mooedit/mooedithistoryitem.h\
|
../moo/mooedit/mooedithistoryitem.h\
|
||||||
../moo/mooedit/mooedit-impl.h\
|
../moo/mooedit/mooedit-impl.h\
|
||||||
../moo/mooedit/mooeditor.cpp\
|
../moo/mooedit/mooeditor.cpp\
|
||||||
../moo/mooedit/mooeditor.h\
|
../moo/mooedit/mooeditor.h\
|
||||||
../moo/mooedit/mooeditor-impl.h\
|
../moo/mooedit/mooeditor-impl.h\
|
||||||
../moo/mooedit/mooeditor-private.h\
|
../moo/mooedit/mooeditor-private.h\
|
||||||
../moo/mooedit/mooeditor-tests.c\
|
../moo/mooedit/mooeditor-tests.cpp\
|
||||||
../moo/mooedit/mooeditor-tests.h\
|
../moo/mooedit/mooeditor-tests.h\
|
||||||
../moo/mooedit/mooeditprefs.c\
|
../moo/mooedit/mooeditprefs.cpp\
|
||||||
../moo/mooedit/mooeditprefs.h\
|
../moo/mooedit/mooeditprefs.h\
|
||||||
../moo/mooedit/mooeditprefspage.c\
|
../moo/mooedit/mooeditprefspage.cpp\
|
||||||
../moo/mooedit/mooedit-private.h\
|
../moo/mooedit/mooedit-private.h\
|
||||||
../moo/mooedit/mooedit-script.c\
|
../moo/mooedit/mooedit-script.cpp\
|
||||||
../moo/mooedit/mooedit-script.h\
|
../moo/mooedit/mooedit-script.h\
|
||||||
../moo/mooedit/mooedittab.c\
|
../moo/mooedit/mooedittab.cpp\
|
||||||
../moo/mooedit/mooedittab.h\
|
../moo/mooedit/mooedittab.h\
|
||||||
../moo/mooedit/mooedittypes.h\
|
../moo/mooedit/mooedittypes.h\
|
||||||
../moo/mooedit/mooeditview.c\
|
../moo/mooedit/mooeditview.cpp\
|
||||||
../moo/mooedit/mooeditview.h\
|
../moo/mooedit/mooeditview.h\
|
||||||
../moo/mooedit/mooeditview-script.c\
|
../moo/mooedit/mooeditview-script.cpp\
|
||||||
../moo/mooedit/mooeditview-script.h\
|
../moo/mooedit/mooeditview-script.h\
|
||||||
../moo/mooedit/mooeditwindow.c\
|
../moo/mooedit/mooeditwindow.cpp\
|
||||||
../moo/mooedit/mooeditwindow.h\
|
../moo/mooedit/mooeditwindow.h\
|
||||||
../moo/mooedit/mooeditwindow-impl.h\
|
../moo/mooedit/mooeditwindow-impl.h\
|
||||||
../moo/mooedit/moofold.c\
|
../moo/mooedit/moofold.cpp\
|
||||||
../moo/mooedit/moofold.h\
|
../moo/mooedit/moofold.h\
|
||||||
../moo/mooedit/mooindenter.c\
|
../moo/mooedit/mooindenter.cpp\
|
||||||
../moo/mooedit/mooindenter.h\
|
../moo/mooedit/mooindenter.h\
|
||||||
../moo/mooedit/moolang.c\
|
../moo/mooedit/moolang.cpp\
|
||||||
../moo/mooedit/moolang.h\
|
../moo/mooedit/moolang.h\
|
||||||
../moo/mooedit/moolangmgr.c\
|
../moo/mooedit/moolangmgr.cpp\
|
||||||
../moo/mooedit/moolangmgr.h\
|
../moo/mooedit/moolangmgr.h\
|
||||||
../moo/mooedit/moolangmgr-private.h\
|
../moo/mooedit/moolangmgr-private.h\
|
||||||
../moo/mooedit/moolang-private.h\
|
../moo/mooedit/moolang-private.h\
|
||||||
|
@ -131,7 +130,7 @@ source_files = \
|
||||||
../moo/moofileview/mootreeview.h\
|
../moo/moofileview/mootreeview.h\
|
||||||
../moo/mooutils/mooaccelbutton.c\
|
../moo/mooutils/mooaccelbutton.c\
|
||||||
../moo/mooutils/mooaccelbutton.h\
|
../moo/mooutils/mooaccelbutton.h\
|
||||||
../moo/mooutils/mooaccel.c\
|
../moo/mooutils/mooaccel.cpp\
|
||||||
../moo/mooutils/mooaccel.h\
|
../moo/mooutils/mooaccel.h\
|
||||||
../moo/mooutils/mooaccelprefs.c\
|
../moo/mooutils/mooaccelprefs.c\
|
||||||
../moo/mooutils/mooaccelprefs.h\
|
../moo/mooutils/mooaccelprefs.h\
|
||||||
|
@ -176,7 +175,7 @@ source_files = \
|
||||||
../moo/mooutils/moofileicon.h\
|
../moo/mooutils/moofileicon.h\
|
||||||
../moo/mooutils/moofilewatch.c\
|
../moo/mooutils/moofilewatch.c\
|
||||||
../moo/mooutils/moofilewatch.h\
|
../moo/mooutils/moofilewatch.h\
|
||||||
../moo/mooutils/moofilewriter.c\
|
../moo/mooutils/moofilewriter.cpp\
|
||||||
../moo/mooutils/moofilewriter.h\
|
../moo/mooutils/moofilewriter.h\
|
||||||
../moo/mooutils/moofilewriter-private.h\
|
../moo/mooutils/moofilewriter-private.h\
|
||||||
../moo/mooutils/moofiltermgr.c\
|
../moo/mooutils/moofiltermgr.c\
|
||||||
|
@ -193,7 +192,7 @@ source_files = \
|
||||||
../moo/mooutils/moohistorylist.h\
|
../moo/mooutils/moohistorylist.h\
|
||||||
../moo/mooutils/moohistorymgr.c\
|
../moo/mooutils/moohistorymgr.c\
|
||||||
../moo/mooutils/moohistorymgr.h\
|
../moo/mooutils/moohistorymgr.h\
|
||||||
../moo/mooutils/mooi18n.c\
|
../moo/mooutils/mooi18n.cpp\
|
||||||
../moo/mooutils/mooi18n.h\
|
../moo/mooutils/mooi18n.h\
|
||||||
../moo/mooutils/moolist.h\
|
../moo/mooutils/moolist.h\
|
||||||
../moo/mooutils/moomarkup.c\
|
../moo/mooutils/moomarkup.c\
|
||||||
|
@ -226,7 +225,7 @@ source_files = \
|
||||||
../moo/mooutils/moostock.c\
|
../moo/mooutils/moostock.c\
|
||||||
../moo/mooutils/moostock.h\
|
../moo/mooutils/moostock.h\
|
||||||
../moo/mooutils/moo-test-macros.h\
|
../moo/mooutils/moo-test-macros.h\
|
||||||
../moo/mooutils/moo-test-utils.c\
|
../moo/mooutils/moo-test-utils.cpp\
|
||||||
../moo/mooutils/moo-test-utils.h\
|
../moo/mooutils/moo-test-utils.h\
|
||||||
../moo/mooutils/mootypedecl-macros.h\
|
../moo/mooutils/mootypedecl-macros.h\
|
||||||
../moo/mooutils/mootype-macros.h\
|
../moo/mooutils/mootype-macros.h\
|
||||||
|
@ -239,9 +238,9 @@ source_files = \
|
||||||
../moo/mooutils/mooutils-enums.h\
|
../moo/mooutils/mooutils-enums.h\
|
||||||
../moo/mooutils/mooutils-file.c\
|
../moo/mooutils/mooutils-file.c\
|
||||||
../moo/mooutils/mooutils-file.h\
|
../moo/mooutils/mooutils-file.h\
|
||||||
../moo/mooutils/mooutils-fs.c\
|
../moo/mooutils/mooutils-fs.cpp\
|
||||||
../moo/mooutils/mooutils-fs.h\
|
../moo/mooutils/mooutils-fs.h\
|
||||||
../moo/mooutils/mooutils-gobject.c\
|
../moo/mooutils/mooutils-gobject.cpp\
|
||||||
../moo/mooutils/mooutils-gobject.h\
|
../moo/mooutils/mooutils-gobject.h\
|
||||||
../moo/mooutils/mooutils-gobject-private.h\
|
../moo/mooutils/mooutils-gobject-private.h\
|
||||||
../moo/mooutils/mooutils.h\
|
../moo/mooutils/mooutils.h\
|
||||||
|
@ -257,31 +256,31 @@ source_files = \
|
||||||
../moo/mooutils/mooutils-thread.h\
|
../moo/mooutils/mooutils-thread.h\
|
||||||
../moo/mooutils/mooutils-treeview.c\
|
../moo/mooutils/mooutils-treeview.c\
|
||||||
../moo/mooutils/mooutils-treeview.h\
|
../moo/mooutils/mooutils-treeview.h\
|
||||||
../moo/mooutils/mooutils-win32.c\
|
../moo/mooutils/mooutils-win32.cpp\
|
||||||
../moo/mooutils/moowin32/mingw/fnmatch.h\
|
../moo/mooutils/moowin32/mingw/fnmatch.h\
|
||||||
../moo/mooutils/moowin32/mingw/netinet/in.h\
|
../moo/mooutils/moowin32/mingw/netinet/in.h\
|
||||||
../moo/mooutils/moowin32/ms/sys/time.h\
|
../moo/mooutils/moowin32/ms/sys/time.h\
|
||||||
../moo/mooutils/moowin32/ms/unistd.h\
|
../moo/mooutils/moowin32/ms/unistd.h\
|
||||||
../moo/mooutils/moowindow.c\
|
../moo/mooutils/moowindow.c\
|
||||||
../moo/mooutils/moowindow.h\
|
../moo/mooutils/moowindow.h\
|
||||||
../moo/plugins/support/moocmdview.c\
|
../moo/plugins/support/moocmdview.cpp\
|
||||||
../moo/plugins/support/moocmdview.h\
|
../moo/plugins/support/moocmdview.h\
|
||||||
../moo/plugins/support/mooeditwindowoutput.c\
|
../moo/plugins/support/mooeditwindowoutput.cpp\
|
||||||
../moo/plugins/support/mooeditwindowoutput.h\
|
../moo/plugins/support/mooeditwindowoutput.h\
|
||||||
../moo/plugins/support/moolineview.c\
|
../moo/plugins/support/moolineview.cpp\
|
||||||
../moo/plugins/support/moolineview.h\
|
../moo/plugins/support/moolineview.h\
|
||||||
../moo/plugins/support/moooutputfilter.c\
|
../moo/plugins/support/moooutputfilter.cpp\
|
||||||
../moo/plugins/support/moooutputfilter.h\
|
../moo/plugins/support/moooutputfilter.h\
|
||||||
../moo/plugins/usertools/moocommand.c\
|
../moo/plugins/usertools/moocommand.cpp\
|
||||||
../moo/plugins/usertools/moocommanddisplay.c\
|
../moo/plugins/usertools/moocommanddisplay.cpp\
|
||||||
../moo/plugins/usertools/moocommanddisplay.h\
|
../moo/plugins/usertools/moocommanddisplay.h\
|
||||||
../moo/plugins/usertools/moocommand.h\
|
../moo/plugins/usertools/moocommand.h\
|
||||||
../moo/plugins/usertools/moocommand-private.h\
|
../moo/plugins/usertools/moocommand-private.h\
|
||||||
../moo/plugins/usertools/moooutputfilterregex.c\
|
../moo/plugins/usertools/moooutputfilterregex.cpp\
|
||||||
../moo/plugins/usertools/moooutputfilterregex.h\
|
../moo/plugins/usertools/moooutputfilterregex.h\
|
||||||
../moo/plugins/usertools/moousertools.c\
|
../moo/plugins/usertools/moousertools.cpp\
|
||||||
../moo/plugins/usertools/moousertools-enums.c\
|
../moo/plugins/usertools/moousertools-enums.cpp\
|
||||||
../moo/plugins/usertools/moousertools-enums.h\
|
../moo/plugins/usertools/moousertools-enums.h\
|
||||||
../moo/plugins/usertools/moousertools.h\
|
../moo/plugins/usertools/moousertools.h\
|
||||||
../moo/plugins/usertools/moousertools-prefs.c\
|
../moo/plugins/usertools/moousertools-prefs.cpp\
|
||||||
../moo/plugins/usertools/moousertools-prefs.h
|
../moo/plugins/usertools/moousertools-prefs.h
|
||||||
|
|
|
@ -49,6 +49,7 @@ include moopython/Makefile.incl
|
||||||
include plugins/Makefile.incl
|
include plugins/Makefile.incl
|
||||||
include medit-app/Makefile.incl
|
include medit-app/Makefile.incl
|
||||||
include medit-module/Makefile.incl
|
include medit-module/Makefile.incl
|
||||||
|
include moocpp/Makefile.incl
|
||||||
|
|
||||||
BUILT_SOURCES += $(built_moo_sources) $(built_plugins_sources)
|
BUILT_SOURCES += $(built_moo_sources) $(built_plugins_sources)
|
||||||
CLEANFILES += $(built_moo_sources) $(built_plugins_sources)
|
CLEANFILES += $(built_moo_sources) $(built_plugins_sources)
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
moo_sources += \
|
moo_sources += \
|
||||||
mooapp/mooappabout.c \
|
mooapp/mooappabout.cpp \
|
||||||
mooapp/mooappabout.h \
|
mooapp/mooappabout.h \
|
||||||
mooapp/mooapp.c \
|
mooapp/mooapp.cpp \
|
||||||
mooapp/mooapp.h \
|
mooapp/mooapp.h \
|
||||||
mooapp/mooapp-accels.h \
|
mooapp/mooapp-accels.h \
|
||||||
mooapp/mooapp-info.h \
|
mooapp/mooapp-info.h \
|
||||||
mooapp/mooapp-private.h \
|
mooapp/mooapp-private.h \
|
||||||
mooapp/moohtml.h \
|
mooapp/moohtml.h \
|
||||||
mooapp/moohtml.c \
|
mooapp/moohtml.cpp \
|
||||||
mooapp/moolinklabel.h \
|
mooapp/moolinklabel.h \
|
||||||
mooapp/moolinklabel.c
|
mooapp/moolinklabel.cpp
|
||||||
|
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
mooapp/glade/mooappabout-dialog.glade \
|
mooapp/glade/mooappabout-dialog.glade \
|
||||||
|
|
|
@ -1771,7 +1771,7 @@ static void
|
||||||
add_func__ (const char *static_elm_name,
|
add_func__ (const char *static_elm_name,
|
||||||
ProcessElm func)
|
ProcessElm func)
|
||||||
{
|
{
|
||||||
g_hash_table_insert (proc_elm_funcs__, (char*) static_elm_name, func);
|
g_hash_table_insert (proc_elm_funcs__, (char*) static_elm_name, (void*) func);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
moo_sources += \
|
||||||
|
moocpp/fileutils.h \
|
||||||
|
moocpp/fileutils.cpp \
|
||||||
|
moocpp/gobjptr.h \
|
||||||
|
moocpp/gstr.h \
|
||||||
|
moocpp/gstr.cpp \
|
||||||
|
moocpp/moocpp.h \
|
||||||
|
moocpp/regex.h \
|
||||||
|
moocpp/regex.cpp \
|
||||||
|
moocpp/util.h
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "moocpp/fileutils.h"
|
#include "moocpp/fileutils.h"
|
||||||
|
|
||||||
gstr g::build_filename_impl(const char* comp1, const char* comp2, const char* comp3)
|
gstr g::build_filename_impl(const char* comp1, const char* comp2, const char* comp3)
|
||||||
|
|
|
@ -26,19 +26,19 @@ gstr build_filename_impl(const char* comp1, const char* comp2 = nullptr, const c
|
||||||
template<typename T1>
|
template<typename T1>
|
||||||
gstr build_filename(const T1& comp1)
|
gstr build_filename(const T1& comp1)
|
||||||
{
|
{
|
||||||
return build_filename_impl(ConstCharSource<T1>::get(comp1));
|
return build_filename_impl(ConstCharSource::get(comp1));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T1, typename T2>
|
template<typename T1, typename T2>
|
||||||
gstr build_filename(const T1& comp1, const T2& comp2)
|
gstr build_filename(const T1& comp1, const T2& comp2)
|
||||||
{
|
{
|
||||||
return build_filename_impl(ConstCharSource<T1>::get(comp1), ConstCharSource<T2>::get(comp2));
|
return build_filename_impl(ConstCharSource::get(comp1), ConstCharSource::get(comp2));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T1, typename T2, typename T3>
|
template<typename T1, typename T2, typename T3>
|
||||||
gstr build_filename(const T1& comp1, const T2& comp2, const T3& comp3)
|
gstr build_filename(const T1& comp1, const T2& comp2, const T3& comp3)
|
||||||
{
|
{
|
||||||
return build_filename_impl(ConstCharSource<T1>::get(comp1), ConstCharSource<T2>::get(comp2), ConstCharSource<T3>::get(comp3));
|
return build_filename_impl(ConstCharSource::get(comp1), ConstCharSource::get(comp2), ConstCharSource::get(comp3));
|
||||||
}
|
}
|
||||||
|
|
||||||
gstr build_filenamev(const std::vector<gstr>& components);
|
gstr build_filenamev(const std::vector<gstr>& components);
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "gstr.h"
|
#include "gstr.h"
|
||||||
|
|
||||||
gstr::gstr()
|
gstr::gstr()
|
||||||
|
|
|
@ -15,6 +15,10 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
|
#error "This is a c++ header"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -81,23 +85,24 @@ struct hash<gstr>
|
||||||
|
|
||||||
} // namespace std
|
} // namespace std
|
||||||
|
|
||||||
template<typename T>
|
class ConstCharSource
|
||||||
struct ConstCharSource;
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct ConstCharSource<const char*>
|
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
static const char* get(const char* s) { return s; }
|
static const char* get(const char* s) { return s; }
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
template<size_t arr_size>
|
||||||
|
struct ConstCharSource<char[arr_size]>
|
||||||
|
{
|
||||||
|
static const char* get(char (&s)[arr_size]) { return &s[0]; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template<size_t arr_size>
|
template<size_t arr_size>
|
||||||
struct ConstCharSource<const char[arr_size]>
|
struct ConstCharSource<const char[arr_size]>
|
||||||
{
|
{
|
||||||
static const char* get(const char s[arr_size]) { return s; }
|
static const char* get(const char (&s)[arr_size]) { return &s[0]; }
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
template<>
|
|
||||||
struct ConstCharSource<gstr>
|
|
||||||
{
|
|
||||||
static const char* get(const gstr& s) { return s.get(); }
|
static const char* get(const gstr& s) { return s.get(); }
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "moocpp/regex.h"
|
#include "moocpp/regex.h"
|
||||||
#include "mooutils/mooutils-messages.h"
|
#include "mooutils/mooutils-messages.h"
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
|
@ -24,48 +24,48 @@ moo_sources += \
|
||||||
mooedit/mootextiter.h \
|
mooedit/mootextiter.h \
|
||||||
mooedit/mootextsearch.h \
|
mooedit/mootextsearch.h \
|
||||||
mooedit/mootextstylescheme.h \
|
mooedit/mootextstylescheme.h \
|
||||||
mooedit/mooeditview.c \
|
mooedit/mooeditview.cpp \
|
||||||
mooedit/mooeditview-priv.h \
|
mooedit/mooeditview-priv.h \
|
||||||
mooedit/mooeditview-impl.h \
|
mooedit/mooeditview-impl.h \
|
||||||
mooedit/mooeditview-script.c \
|
mooedit/mooeditview-script.cpp \
|
||||||
mooedit/mooeditview-script.h \
|
mooedit/mooeditview-script.h \
|
||||||
mooedit/mooedit-accels.h \
|
mooedit/mooedit-accels.h \
|
||||||
mooedit/mooeditaction.c \
|
mooedit/mooeditaction.cpp \
|
||||||
mooedit/mooeditaction-factory.c \
|
mooedit/mooeditaction-factory.cpp\
|
||||||
mooedit/mooeditaction-factory.h \
|
mooedit/mooeditaction-factory.h \
|
||||||
mooedit/mooeditbookmark.c \
|
mooedit/mooeditbookmark.cpp \
|
||||||
mooedit/mooedit.cpp \
|
mooedit/mooedit.cpp \
|
||||||
mooedit/mooeditconfig.c \
|
mooedit/mooeditconfig.cpp \
|
||||||
mooedit/mooeditdialogs.cpp \
|
mooedit/mooeditdialogs.cpp \
|
||||||
mooedit/mooedit-enum-types.c \
|
mooedit/mooedit-enum-types.c \
|
||||||
mooedit/mooedit-enum-types.h \
|
mooedit/mooedit-enum-types.h \
|
||||||
mooedit/mooedit-enums.h \
|
mooedit/mooedit-enums.h \
|
||||||
mooedit/mooedit-fileops.cpp \
|
mooedit/mooedit-fileops.cpp \
|
||||||
mooedit/mooedit-fileops.h \
|
mooedit/mooedit-fileops.h \
|
||||||
mooedit/mooeditfiltersettings.c \
|
mooedit/mooeditfiltersettings.cpp\
|
||||||
mooedit/mooedithistoryitem.c \
|
mooedit/mooedithistoryitem.cpp \
|
||||||
mooedit/mooedit-impl.h \
|
mooedit/mooedit-impl.h \
|
||||||
mooedit/mooedit-script.c \
|
mooedit/mooedit-script.cpp \
|
||||||
mooedit/mooedit-script.h \
|
mooedit/mooedit-script.h \
|
||||||
mooedit/mooeditprefs.c \
|
mooedit/mooeditprefs.cpp \
|
||||||
mooedit/mooeditprefspage.c \
|
mooedit/mooeditprefspage.cpp \
|
||||||
mooedit/mooedit-private.h \
|
mooedit/mooedit-private.h \
|
||||||
mooedit/mooeditprogress.h \
|
mooedit/mooeditprogress.h \
|
||||||
mooedit/mooeditprogress.c \
|
mooedit/mooeditprogress.c \
|
||||||
mooedit/mooedittab.c \
|
mooedit/mooedittab.cpp \
|
||||||
mooedit/mooedittab.h \
|
mooedit/mooedittab.h \
|
||||||
mooedit/mooedittab-impl.h \
|
mooedit/mooedittab-impl.h \
|
||||||
mooedit/mooeditwindow.c \
|
mooedit/mooeditwindow.cpp \
|
||||||
mooedit/mooeditwindow-impl.h \
|
mooedit/mooeditwindow-impl.h \
|
||||||
mooedit/mooeditfileinfo-impl.h \
|
mooedit/mooeditfileinfo-impl.h \
|
||||||
mooedit/mooeditfileinfo.c \
|
mooedit/mooeditfileinfo.cpp \
|
||||||
mooedit/moofold.c \
|
mooedit/moofold.cpp \
|
||||||
mooedit/moofold.h \
|
mooedit/moofold.h \
|
||||||
mooedit/mooindenter.c \
|
mooedit/mooindenter.cpp \
|
||||||
mooedit/mooindenter.h \
|
mooedit/mooindenter.h \
|
||||||
mooedit/moolang.c \
|
mooedit/moolang.cpp \
|
||||||
mooedit/moolang.h \
|
mooedit/moolang.h \
|
||||||
mooedit/moolangmgr.c \
|
mooedit/moolangmgr.cpp \
|
||||||
mooedit/moolangmgr.h \
|
mooedit/moolangmgr.h \
|
||||||
mooedit/moolangmgr-private.h \
|
mooedit/moolangmgr-private.h \
|
||||||
mooedit/moolang-private.h \
|
mooedit/moolang-private.h \
|
||||||
|
@ -93,7 +93,7 @@ moo_sources += \
|
||||||
mooedit/mooeditor.cpp \
|
mooedit/mooeditor.cpp \
|
||||||
mooedit/mooeditor-impl.h \
|
mooedit/mooeditor-impl.h \
|
||||||
mooedit/mooeditor-private.h \
|
mooedit/mooeditor-private.h \
|
||||||
mooedit/mooeditor-tests.c \
|
mooedit/mooeditor-tests.cpp \
|
||||||
mooedit/mooeditor-tests.h \
|
mooedit/mooeditor-tests.h \
|
||||||
mooedit/mooeditor-tests.h
|
mooedit/mooeditor-tests.h
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
/* Generated data (by glib-mkenums) */
|
/* Generated data (by glib-mkenums) */
|
||||||
|
|
||||||
#include "mooedit/mooedit-enum-types.h"
|
#include "mooedit/mooedit-enum-types.h"
|
||||||
|
|
||||||
#include "mooedit/mooedit-enums.h"
|
#include "mooedit/mooedit-enums.h"
|
||||||
|
|
||||||
/* enum MooEditConfigSource */
|
/* enum MooEditConfigSource */
|
||||||
GType
|
GType
|
||||||
moo_edit_config_source_get_type (void)
|
moo_edit_config_source_get_type (void)
|
||||||
|
@ -27,7 +25,6 @@ moo_edit_config_source_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enum MooSaveResponse */
|
/* enum MooSaveResponse */
|
||||||
GType
|
GType
|
||||||
moo_save_response_get_type (void)
|
moo_save_response_get_type (void)
|
||||||
|
@ -47,7 +44,6 @@ moo_save_response_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enum MooEditState */
|
/* enum MooEditState */
|
||||||
GType
|
GType
|
||||||
moo_edit_state_get_type (void)
|
moo_edit_state_get_type (void)
|
||||||
|
@ -69,7 +65,6 @@ moo_edit_state_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* flags MooEditStatus */
|
/* flags MooEditStatus */
|
||||||
GType
|
GType
|
||||||
moo_edit_status_get_type (void)
|
moo_edit_status_get_type (void)
|
||||||
|
@ -94,7 +89,6 @@ moo_edit_status_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enum MooLineEndType */
|
/* enum MooLineEndType */
|
||||||
GType
|
GType
|
||||||
moo_line_end_type_get_type (void)
|
moo_line_end_type_get_type (void)
|
||||||
|
@ -117,7 +111,6 @@ moo_line_end_type_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* flags MooOpenFlags */
|
/* flags MooOpenFlags */
|
||||||
GType
|
GType
|
||||||
moo_open_flags_get_type (void)
|
moo_open_flags_get_type (void)
|
||||||
|
@ -140,7 +133,6 @@ moo_open_flags_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enum MooTextSelectionType */
|
/* enum MooTextSelectionType */
|
||||||
GType
|
GType
|
||||||
moo_text_selection_type_get_type (void)
|
moo_text_selection_type_get_type (void)
|
||||||
|
@ -161,7 +153,6 @@ moo_text_selection_type_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* flags MooTextSearchFlags */
|
/* flags MooTextSearchFlags */
|
||||||
GType
|
GType
|
||||||
moo_text_search_flags_get_type (void)
|
moo_text_search_flags_get_type (void)
|
||||||
|
@ -183,7 +174,6 @@ moo_text_search_flags_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* flags MooFindFlags */
|
/* flags MooFindFlags */
|
||||||
GType
|
GType
|
||||||
moo_find_flags_get_type (void)
|
moo_find_flags_get_type (void)
|
||||||
|
@ -209,7 +199,6 @@ moo_find_flags_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* flags MooDrawWsFlags */
|
/* flags MooDrawWsFlags */
|
||||||
GType
|
GType
|
||||||
moo_draw_ws_flags_get_type (void)
|
moo_draw_ws_flags_get_type (void)
|
||||||
|
@ -231,7 +220,6 @@ moo_draw_ws_flags_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enum MooActionCheckType */
|
/* enum MooActionCheckType */
|
||||||
GType
|
GType
|
||||||
moo_action_check_type_get_type (void)
|
moo_action_check_type_get_type (void)
|
||||||
|
@ -252,7 +240,6 @@ moo_action_check_type_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enum MooTextCursor */
|
/* enum MooTextCursor */
|
||||||
GType
|
GType
|
||||||
moo_text_cursor_get_type (void)
|
moo_text_cursor_get_type (void)
|
||||||
|
@ -275,6 +262,5 @@ moo_text_cursor_get_type (void)
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Generated data ends here */
|
/* Generated data ends here */
|
||||||
|
|
||||||
|
|
|
@ -7,55 +7,42 @@
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* MooEditConfigSource */
|
/* MooEditConfigSource */
|
||||||
GType moo_edit_config_source_get_type (void) G_GNUC_CONST;
|
GType moo_edit_config_source_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_EDIT_CONFIG_SOURCE (moo_edit_config_source_get_type ())
|
#define MOO_TYPE_EDIT_CONFIG_SOURCE (moo_edit_config_source_get_type ())
|
||||||
|
|
||||||
/* MooSaveResponse */
|
/* MooSaveResponse */
|
||||||
GType moo_save_response_get_type (void) G_GNUC_CONST;
|
GType moo_save_response_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_SAVE_RESPONSE (moo_save_response_get_type ())
|
#define MOO_TYPE_SAVE_RESPONSE (moo_save_response_get_type ())
|
||||||
|
|
||||||
/* MooEditState */
|
/* MooEditState */
|
||||||
GType moo_edit_state_get_type (void) G_GNUC_CONST;
|
GType moo_edit_state_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_EDIT_STATE (moo_edit_state_get_type ())
|
#define MOO_TYPE_EDIT_STATE (moo_edit_state_get_type ())
|
||||||
|
|
||||||
/* MooEditStatus */
|
/* MooEditStatus */
|
||||||
GType moo_edit_status_get_type (void) G_GNUC_CONST;
|
GType moo_edit_status_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_EDIT_STATUS (moo_edit_status_get_type ())
|
#define MOO_TYPE_EDIT_STATUS (moo_edit_status_get_type ())
|
||||||
|
|
||||||
/* MooLineEndType */
|
/* MooLineEndType */
|
||||||
GType moo_line_end_type_get_type (void) G_GNUC_CONST;
|
GType moo_line_end_type_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_LINE_END_TYPE (moo_line_end_type_get_type ())
|
#define MOO_TYPE_LINE_END_TYPE (moo_line_end_type_get_type ())
|
||||||
|
|
||||||
/* MooOpenFlags */
|
/* MooOpenFlags */
|
||||||
GType moo_open_flags_get_type (void) G_GNUC_CONST;
|
GType moo_open_flags_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_OPEN_FLAGS (moo_open_flags_get_type ())
|
#define MOO_TYPE_OPEN_FLAGS (moo_open_flags_get_type ())
|
||||||
|
|
||||||
/* MooTextSelectionType */
|
/* MooTextSelectionType */
|
||||||
GType moo_text_selection_type_get_type (void) G_GNUC_CONST;
|
GType moo_text_selection_type_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_TEXT_SELECTION_TYPE (moo_text_selection_type_get_type ())
|
#define MOO_TYPE_TEXT_SELECTION_TYPE (moo_text_selection_type_get_type ())
|
||||||
|
|
||||||
/* MooTextSearchFlags */
|
/* MooTextSearchFlags */
|
||||||
GType moo_text_search_flags_get_type (void) G_GNUC_CONST;
|
GType moo_text_search_flags_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_TEXT_SEARCH_FLAGS (moo_text_search_flags_get_type ())
|
#define MOO_TYPE_TEXT_SEARCH_FLAGS (moo_text_search_flags_get_type ())
|
||||||
|
|
||||||
/* MooFindFlags */
|
/* MooFindFlags */
|
||||||
GType moo_find_flags_get_type (void) G_GNUC_CONST;
|
GType moo_find_flags_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_FIND_FLAGS (moo_find_flags_get_type ())
|
#define MOO_TYPE_FIND_FLAGS (moo_find_flags_get_type ())
|
||||||
|
|
||||||
/* MooDrawWsFlags */
|
/* MooDrawWsFlags */
|
||||||
GType moo_draw_ws_flags_get_type (void) G_GNUC_CONST;
|
GType moo_draw_ws_flags_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_DRAW_WS_FLAGS (moo_draw_ws_flags_get_type ())
|
#define MOO_TYPE_DRAW_WS_FLAGS (moo_draw_ws_flags_get_type ())
|
||||||
|
|
||||||
/* MooActionCheckType */
|
/* MooActionCheckType */
|
||||||
GType moo_action_check_type_get_type (void) G_GNUC_CONST;
|
GType moo_action_check_type_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_ACTION_CHECK_TYPE (moo_action_check_type_get_type ())
|
#define MOO_TYPE_ACTION_CHECK_TYPE (moo_action_check_type_get_type ())
|
||||||
|
|
||||||
/* MooTextCursor */
|
/* MooTextCursor */
|
||||||
GType moo_text_cursor_get_type (void) G_GNUC_CONST;
|
GType moo_text_cursor_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_TEXT_CURSOR (moo_text_cursor_get_type ())
|
#define MOO_TYPE_TEXT_CURSOR (moo_text_cursor_get_type ())
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* MOO_EDIT_ENUM_TYPES_H */
|
#endif /* MOO_EDIT_ENUM_TYPES_H */
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
#ifndef __WIN32__
|
||||||
|
#include <errno.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
@ -23,6 +26,8 @@ typedef struct mgw_access_mode_t mgw_access_mode_t;
|
||||||
#error "C libraries may not be shared between medit and glib"
|
#error "C libraries may not be shared between medit and glib"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WIN32__
|
||||||
|
|
||||||
enum mgw_errno_value_t
|
enum mgw_errno_value_t
|
||||||
{
|
{
|
||||||
MGW_ENOERROR = 0,
|
MGW_ENOERROR = 0,
|
||||||
|
@ -39,6 +44,23 @@ enum mgw_errno_value_t
|
||||||
|
|
||||||
typedef enum mgw_errno_value_t mgw_errno_value_t;
|
typedef enum mgw_errno_value_t mgw_errno_value_t;
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
typedef int mgw_errno_value_t;
|
||||||
|
|
||||||
|
#define MGW_ENOERROR 0
|
||||||
|
#define MGW_EACCES EACCESS
|
||||||
|
#define MGW_EPERM EPERM
|
||||||
|
#define MGW_EEXIST EEXIST
|
||||||
|
#define MGW_ELOOP ELOOP
|
||||||
|
#define MGW_ENAMETOOLONG ENAMETOOLONG
|
||||||
|
#define MGW_ENOENT ENOENT
|
||||||
|
#define MGW_ENOTDIR ENOTDIR
|
||||||
|
#define MGW_EROFS EROFS
|
||||||
|
#define MGW_EXDEV EXDEV
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
struct mgw_errno_t
|
struct mgw_errno_t
|
||||||
{
|
{
|
||||||
mgw_errno_value_t value;
|
mgw_errno_value_t value;
|
||||||
|
|
|
@ -14,7 +14,7 @@ moo_python_sources += \
|
||||||
moopython/moopython-utils.h \
|
moopython/moopython-utils.h \
|
||||||
moopython/moopython-utils.c \
|
moopython/moopython-utils.c \
|
||||||
moopython/moopython-tests.h \
|
moopython/moopython-tests.h \
|
||||||
moopython/moopython-tests.c
|
moopython/moopython-tests.cpp
|
||||||
|
|
||||||
moo_sources += \
|
moo_sources += \
|
||||||
moopython/medit-python.h \
|
moopython/medit-python.h \
|
||||||
|
|
|
@ -66,13 +66,19 @@ void moo_python_remove_path (const char *dir);
|
||||||
|
|
||||||
#define return_Int(v) return PyInt_FromLong (v)
|
#define return_Int(v) return PyInt_FromLong (v)
|
||||||
|
|
||||||
#define return_AttrError(msg) return PyErr_SetString (PyExc_AttributeError, msg), NULL
|
#ifdef __cplusplus
|
||||||
|
const nullptr_t moo_nullptr = nullptr;
|
||||||
|
#else
|
||||||
|
#define moo_nullptr NULL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define return_AttrError(msg) return PyErr_SetString (PyExc_AttributeError, msg), moo_nullptr
|
||||||
#define return_AttrErrorInt(msg) return PyErr_SetString (PyExc_AttributeError, msg), -1
|
#define return_AttrErrorInt(msg) return PyErr_SetString (PyExc_AttributeError, msg), -1
|
||||||
#define return_TypeError(msg) return PyErr_SetString (PyExc_TypeError, msg), NULL
|
#define return_TypeError(msg) return PyErr_SetString (PyExc_TypeError, msg), moo_nullptr
|
||||||
#define return_TypeErrorInt(msg) return PyErr_SetString (PyExc_TypeError, msg), -1
|
#define return_TypeErrorInt(msg) return PyErr_SetString (PyExc_TypeError, msg), -1
|
||||||
#define return_RuntimeError(msg) return PyErr_SetString (PyExc_RuntimeError, msg), NULL
|
#define return_RuntimeError(msg) return PyErr_SetString (PyExc_RuntimeError, msg), moo_nullptr
|
||||||
#define return_RuntimeErrorInt(msg) return PyErr_SetString (PyExc_RuntimeError, msg), -1
|
#define return_RuntimeErrorInt(msg) return PyErr_SetString (PyExc_RuntimeError, msg), -1
|
||||||
#define return_ValueError(msg) return PyErr_SetString (PyExc_ValueError, msg), NULL
|
#define return_ValueError(msg) return PyErr_SetString (PyExc_ValueError, msg), moo_nullptr
|
||||||
#define return_ValueErrorInt(msg) return PyErr_SetString (PyExc_ValueError, msg), -1
|
#define return_ValueErrorInt(msg) return PyErr_SetString (PyExc_ValueError, msg), -1
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
|
@ -22,7 +22,7 @@ EXTRA_DIST += \
|
||||||
moopython/pygtk/moo.py
|
moopython/pygtk/moo.py
|
||||||
|
|
||||||
built_moo_python_sources += \
|
built_moo_python_sources += \
|
||||||
moopython/pygtk/moo-mod.c \
|
moopython/pygtk/moo-mod.cpp \
|
||||||
moopython/pygtk/moo-mod.h
|
moopython/pygtk/moo-mod.h
|
||||||
|
|
||||||
if MOO_OS_WIN32
|
if MOO_OS_WIN32
|
||||||
|
@ -45,7 +45,7 @@ codegen = $(MOO_PYTHON) $(codegen_script) $(codegen_platform) \
|
||||||
--codebefore $(srcdir)/moopython/pygtk/codebefore.c \
|
--codebefore $(srcdir)/moopython/pygtk/codebefore.c \
|
||||||
--codeafter $(srcdir)/moopython/pygtk/codeafter.c
|
--codeafter $(srcdir)/moopython/pygtk/codeafter.c
|
||||||
|
|
||||||
moopython/pygtk/moo-mod.c: $(moo_override_files) moopython/pygtk/moo.defs $(codegen_files) \
|
moopython/pygtk/moo-mod.cpp: $(moo_override_files) moopython/pygtk/moo.defs $(codegen_files) \
|
||||||
$(srcdir)/moopython/pygtk/codebefore.c \
|
$(srcdir)/moopython/pygtk/codebefore.c \
|
||||||
$(srcdir)/moopython/pygtk/codeafter.c
|
$(srcdir)/moopython/pygtk/codeafter.c
|
||||||
$(AM_V_at)$(MKDIR_P) moopython/pygtk
|
$(AM_V_at)$(MKDIR_P) moopython/pygtk
|
||||||
|
|
|
@ -12,7 +12,7 @@ moo_sources += \
|
||||||
mooutils/moohistorymgr.c \
|
mooutils/moohistorymgr.c \
|
||||||
mooutils/moohistorymgr.h \
|
mooutils/moohistorymgr.h \
|
||||||
mooutils/moo-environ.h \
|
mooutils/moo-environ.h \
|
||||||
mooutils/mooaccel.c \
|
mooutils/mooaccel.cpp \
|
||||||
mooutils/mooaccel.h \
|
mooutils/mooaccel.h \
|
||||||
mooutils/mooaccelbutton.c \
|
mooutils/mooaccelbutton.c \
|
||||||
mooutils/mooaccelbutton.h \
|
mooutils/mooaccelbutton.h \
|
||||||
|
@ -56,7 +56,7 @@ moo_sources += \
|
||||||
mooutils/moofileicon.h \
|
mooutils/moofileicon.h \
|
||||||
mooutils/moofilewatch.c \
|
mooutils/moofilewatch.c \
|
||||||
mooutils/moofilewatch.h \
|
mooutils/moofilewatch.h \
|
||||||
mooutils/moofilewriter.c \
|
mooutils/moofilewriter.cpp \
|
||||||
mooutils/moofilewriter.h \
|
mooutils/moofilewriter.h \
|
||||||
mooutils/moofilewriter-private.h\
|
mooutils/moofilewriter-private.h\
|
||||||
mooutils/moofiltermgr.c \
|
mooutils/moofiltermgr.c \
|
||||||
|
@ -71,7 +71,7 @@ moo_sources += \
|
||||||
mooutils/moohistorycombo.h \
|
mooutils/moohistorycombo.h \
|
||||||
mooutils/moohistorylist.c \
|
mooutils/moohistorylist.c \
|
||||||
mooutils/moohistorylist.h \
|
mooutils/moohistorylist.h \
|
||||||
mooutils/mooi18n.c \
|
mooutils/mooi18n.cpp \
|
||||||
mooutils/mooi18n.h \
|
mooutils/mooi18n.h \
|
||||||
mooutils/moolist.h \
|
mooutils/moolist.h \
|
||||||
mooutils/moomarkup.c \
|
mooutils/moomarkup.c \
|
||||||
|
@ -114,10 +114,10 @@ moo_sources += \
|
||||||
mooutils/mooutils-enums.h \
|
mooutils/mooutils-enums.h \
|
||||||
mooutils/mooutils-file.c \
|
mooutils/mooutils-file.c \
|
||||||
mooutils/mooutils-file.h \
|
mooutils/mooutils-file.h \
|
||||||
mooutils/mooutils-fs.c \
|
mooutils/mooutils-fs.cpp \
|
||||||
mooutils/mooutils-fs.h \
|
mooutils/mooutils-fs.h \
|
||||||
mooutils/mooutils-gobject-private.h \
|
mooutils/mooutils-gobject-private.h \
|
||||||
mooutils/mooutils-gobject.c \
|
mooutils/mooutils-gobject.cpp \
|
||||||
mooutils/mooutils-gobject.h \
|
mooutils/mooutils-gobject.h \
|
||||||
mooutils/mooutils-macros.h \
|
mooutils/mooutils-macros.h \
|
||||||
mooutils/mooutils-mem.h \
|
mooutils/mooutils-mem.h \
|
||||||
|
@ -169,7 +169,7 @@ mooutils_unix_sources = \
|
||||||
mooutils/mooappinput-unix.c
|
mooutils/mooappinput-unix.c
|
||||||
|
|
||||||
mooutils_unittest_sources = \
|
mooutils_unittest_sources = \
|
||||||
mooutils/moo-test-utils.c \
|
mooutils/moo-test-utils.cpp \
|
||||||
mooutils/moo-test-utils.h \
|
mooutils/moo-test-utils.h \
|
||||||
mooutils/moo-test-macros.h
|
mooutils/moo-test-macros.h
|
||||||
|
|
||||||
|
|
|
@ -258,7 +258,7 @@ moo_test_run_tests (const gstrvec& tests,
|
||||||
|
|
||||||
if (!find_test (name, &single_ts, &single_test))
|
if (!find_test (name, &single_ts, &single_test))
|
||||||
{
|
{
|
||||||
g_printerr ("could not find test %s", name);
|
g_printerr ("could not find test %s", name.get());
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -605,9 +605,11 @@ errno_to_file_error (mgw_errno_t code)
|
||||||
|
|
||||||
switch (code.value)
|
switch (code.value)
|
||||||
{
|
{
|
||||||
|
#ifdef EACCESS
|
||||||
case MGW_EACCES:
|
case MGW_EACCES:
|
||||||
fcode = MOO_FILE_WATCH_ERROR_ACCESS_DENIED;
|
fcode = MOO_FILE_WATCH_ERROR_ACCESS_DENIED;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case MGW_ENAMETOOLONG:
|
case MGW_ENAMETOOLONG:
|
||||||
fcode = MOO_FILE_WATCH_ERROR_BAD_FILENAME;
|
fcode = MOO_FILE_WATCH_ERROR_BAD_FILENAME;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
/* Generated data (by glib-mkenums) */
|
/* Generated data (by glib-mkenums) */
|
||||||
|
|
||||||
#include "mooutils/mooutils-enums.h"
|
#include "mooutils/mooutils-enums.h"
|
||||||
|
|
||||||
#include "mooutils/moodialogs.h"
|
#include "mooutils/moodialogs.h"
|
||||||
|
|
||||||
/* MooSaveChangesResponse */
|
/* MooSaveChangesResponse */
|
||||||
GType
|
GType
|
||||||
moo_save_changes_response_get_type (void)
|
moo_save_changes_response_get_type (void)
|
||||||
|
@ -25,9 +23,7 @@ moo_save_changes_response_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "mooutils/moofiledialog.h"
|
#include "mooutils/moofiledialog.h"
|
||||||
|
|
||||||
/* MooFileDialogType */
|
/* MooFileDialogType */
|
||||||
GType
|
GType
|
||||||
moo_file_dialog_type_get_type (void)
|
moo_file_dialog_type_get_type (void)
|
||||||
|
@ -49,9 +45,7 @@ moo_file_dialog_type_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "mooutils/moouixml.h"
|
#include "mooutils/moouixml.h"
|
||||||
|
|
||||||
/* MooUiNodeType */
|
/* MooUiNodeType */
|
||||||
GType
|
GType
|
||||||
moo_ui_node_type_get_type (void)
|
moo_ui_node_type_get_type (void)
|
||||||
|
@ -74,7 +68,6 @@ moo_ui_node_type_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* MooUiNodeFlags */
|
/* MooUiNodeFlags */
|
||||||
GType
|
GType
|
||||||
moo_ui_node_flags_get_type (void)
|
moo_ui_node_flags_get_type (void)
|
||||||
|
@ -93,7 +86,6 @@ moo_ui_node_flags_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* MooUiWidgetType */
|
/* MooUiWidgetType */
|
||||||
GType
|
GType
|
||||||
moo_ui_widget_type_get_type (void)
|
moo_ui_widget_type_get_type (void)
|
||||||
|
@ -114,9 +106,7 @@ moo_ui_widget_type_get_type (void)
|
||||||
|
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "mooutils/moowindow.h"
|
#include "mooutils/moowindow.h"
|
||||||
|
|
||||||
/* MooCloseResponse */
|
/* MooCloseResponse */
|
||||||
GType
|
GType
|
||||||
moo_close_response_get_type (void)
|
moo_close_response_get_type (void)
|
||||||
|
@ -137,6 +127,5 @@ moo_close_response_get_type (void)
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Generated data ends here */
|
/* Generated data ends here */
|
||||||
|
|
||||||
|
|
|
@ -7,32 +7,25 @@
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* MooSaveChangesResponse */
|
/* MooSaveChangesResponse */
|
||||||
GType moo_save_changes_response_get_type (void) G_GNUC_CONST;
|
GType moo_save_changes_response_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_SAVE_CHANGES_RESPONSE (moo_save_changes_response_get_type ())
|
#define MOO_TYPE_SAVE_CHANGES_RESPONSE (moo_save_changes_response_get_type ())
|
||||||
|
|
||||||
/* MooFileDialogType */
|
/* MooFileDialogType */
|
||||||
GType moo_file_dialog_type_get_type (void) G_GNUC_CONST;
|
GType moo_file_dialog_type_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_FILE_DIALOG_TYPE (moo_file_dialog_type_get_type ())
|
#define MOO_TYPE_FILE_DIALOG_TYPE (moo_file_dialog_type_get_type ())
|
||||||
|
|
||||||
/* MooUiNodeType */
|
/* MooUiNodeType */
|
||||||
GType moo_ui_node_type_get_type (void) G_GNUC_CONST;
|
GType moo_ui_node_type_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_UI_NODE_TYPE (moo_ui_node_type_get_type ())
|
#define MOO_TYPE_UI_NODE_TYPE (moo_ui_node_type_get_type ())
|
||||||
|
|
||||||
/* MooUiNodeFlags */
|
/* MooUiNodeFlags */
|
||||||
GType moo_ui_node_flags_get_type (void) G_GNUC_CONST;
|
GType moo_ui_node_flags_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_UI_NODE_FLAGS (moo_ui_node_flags_get_type ())
|
#define MOO_TYPE_UI_NODE_FLAGS (moo_ui_node_flags_get_type ())
|
||||||
|
|
||||||
/* MooUiWidgetType */
|
/* MooUiWidgetType */
|
||||||
GType moo_ui_widget_type_get_type (void) G_GNUC_CONST;
|
GType moo_ui_widget_type_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_UI_WIDGET_TYPE (moo_ui_widget_type_get_type ())
|
#define MOO_TYPE_UI_WIDGET_TYPE (moo_ui_widget_type_get_type ())
|
||||||
|
|
||||||
/* MooCloseResponse */
|
/* MooCloseResponse */
|
||||||
GType moo_close_response_get_type (void) G_GNUC_CONST;
|
GType moo_close_response_get_type (void) G_GNUC_CONST;
|
||||||
#define MOO_TYPE_CLOSE_RESPONSE (moo_close_response_get_type ())
|
#define MOO_TYPE_CLOSE_RESPONSE (moo_close_response_get_type ())
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* MOO_UTILS_ENUMS_H */
|
#endif /* MOO_UTILS_ENUMS_H */
|
||||||
|
|
|
@ -452,7 +452,9 @@ _moo_file_error_from_errno (mgw_errno_t code)
|
||||||
{
|
{
|
||||||
switch (code.value)
|
switch (code.value)
|
||||||
{
|
{
|
||||||
|
#ifdef __WIN32__
|
||||||
case MGW_EACCES:
|
case MGW_EACCES:
|
||||||
|
#endif
|
||||||
case MGW_EPERM:
|
case MGW_EPERM:
|
||||||
return MOO_FILE_ERROR_ACCESS_DENIED;
|
return MOO_FILE_ERROR_ACCESS_DENIED;
|
||||||
case MGW_EEXIST:
|
case MGW_EEXIST:
|
||||||
|
@ -1018,7 +1020,8 @@ test_normalize_file_path_win32 (void)
|
||||||
|
|
||||||
for (i = 0; i < paths->len; i += 2)
|
for (i = 0; i < paths->len; i += 2)
|
||||||
{
|
{
|
||||||
test_normalize_path_one (paths->pdata[i], paths->pdata[i+1],
|
test_normalize_path_one ((const char*) paths->pdata[i],
|
||||||
|
(const char*) paths->pdata[i+1],
|
||||||
normalize_full_path_win32,
|
normalize_full_path_win32,
|
||||||
"normalize_full_path_win32");
|
"normalize_full_path_win32");
|
||||||
g_free (paths->pdata[i]);
|
g_free (paths->pdata[i]);
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
plugins_sources += \
|
plugins_sources += \
|
||||||
plugins/moofileselector-prefs.c \
|
plugins/moofileselector-prefs.cpp\
|
||||||
plugins/moofileselector.c \
|
plugins/moofileselector.cpp \
|
||||||
plugins/moofileselector.h \
|
plugins/moofileselector.h \
|
||||||
plugins/mooplugin-builtin.h \
|
plugins/mooplugin-builtin.h \
|
||||||
plugins/mooplugin-builtin.c \
|
plugins/mooplugin-builtin.cpp \
|
||||||
plugins/moofilelist.c \
|
plugins/moofilelist.cpp \
|
||||||
plugins/moofind.c
|
plugins/moofind.cpp
|
||||||
|
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
plugins/glade/moofileselector-prefs.glade \
|
plugins/glade/moofileselector-prefs.glade \
|
||||||
|
|
|
@ -2,10 +2,10 @@ AM_CPPFLAGS += -I$(srcdir)/plugins/support
|
||||||
|
|
||||||
plugins_sources += \
|
plugins_sources += \
|
||||||
plugins/support/moocmdview.h \
|
plugins/support/moocmdview.h \
|
||||||
plugins/support/moocmdview.c \
|
plugins/support/moocmdview.cpp \
|
||||||
plugins/support/mooeditwindowoutput.h \
|
plugins/support/mooeditwindowoutput.h \
|
||||||
plugins/support/mooeditwindowoutput.c \
|
plugins/support/mooeditwindowoutput.cpp \
|
||||||
plugins/support/moolineview.c \
|
plugins/support/moolineview.cpp \
|
||||||
plugins/support/moolineview.h \
|
plugins/support/moolineview.h \
|
||||||
plugins/support/moooutputfilter.c \
|
plugins/support/moooutputfilter.cpp \
|
||||||
plugins/support/moooutputfilter.h
|
plugins/support/moooutputfilter.h
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
plugins_sources += \
|
plugins_sources += \
|
||||||
plugins/usertools/moousertools.c \
|
plugins/usertools/moousertools.cpp \
|
||||||
plugins/usertools/moousertools.h \
|
plugins/usertools/moousertools.h \
|
||||||
plugins/usertools/moousertools-prefs.c \
|
plugins/usertools/moousertools-prefs.cpp \
|
||||||
plugins/usertools/moousertools-prefs.h \
|
plugins/usertools/moousertools-prefs.h \
|
||||||
plugins/usertools/moocommand.c \
|
plugins/usertools/moocommand.cpp \
|
||||||
plugins/usertools/moocommand.h \
|
plugins/usertools/moocommand.h \
|
||||||
plugins/usertools/moocommand-private.h \
|
plugins/usertools/moocommand-private.h \
|
||||||
plugins/usertools/moocommanddisplay.c \
|
plugins/usertools/moocommanddisplay.cpp \
|
||||||
plugins/usertools/moocommanddisplay.h \
|
plugins/usertools/moocommanddisplay.h \
|
||||||
plugins/usertools/moooutputfilterregex.c \
|
plugins/usertools/moooutputfilterregex.cpp \
|
||||||
plugins/usertools/moooutputfilterregex.h \
|
plugins/usertools/moooutputfilterregex.h \
|
||||||
plugins/usertools/moousertools-enums.h \
|
plugins/usertools/moousertools-enums.h \
|
||||||
plugins/usertools/moousertools-enums.c \
|
plugins/usertools/moousertools-enums.cpp \
|
||||||
plugins/usertools/moocommand-exe.c \
|
plugins/usertools/moocommand-exe.cpp \
|
||||||
plugins/usertools/moocommand-exe.h \
|
plugins/usertools/moocommand-exe.h \
|
||||||
plugins/usertools/moocommand-script.cpp \
|
plugins/usertools/moocommand-script.cpp \
|
||||||
plugins/usertools/moocommand-script.h
|
plugins/usertools/moocommand-script.h
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __WIN32__
|
#ifndef __WIN32__
|
||||||
#define RUN_CMD_FLAGS 0
|
#define RUN_CMD_FLAGS ((GSpawnFlags)0)
|
||||||
#define SCRIPT_EXTENSION ".sh"
|
#define SCRIPT_EXTENSION ".sh"
|
||||||
#else
|
#else
|
||||||
#define RUN_CMD_FLAGS G_SPAWN_SEARCH_PATH
|
#define RUN_CMD_FLAGS G_SPAWN_SEARCH_PATH
|
||||||
|
|
Loading…
Reference in New Issue