Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
4db2960c
Commit
4db2960c
authored
Jan 02, 2009
by
coppro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compatibility updates; Boost Regex is now statically linked, changed to <hunspell/hunspell.hxx>
parent
2112c8df
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
797 additions
and
709 deletions
+797
-709
MakeAM.sh
MakeAM.sh
+4
-2
Makefile.in
Makefile.in
+5
-3
configure
configure
+751
-679
configure.ac
configure.ac
+3
-1
src/script/profiler.hpp
src/script/profiler.hpp
+15
-5
src/script/to_value.hpp
src/script/to_value.hpp
+12
-12
src/util/spell_checker.hpp
src/util/spell_checker.hpp
+7
-7
No files found.
MakeAM.sh
View file @
4db2960c
...
@@ -13,7 +13,9 @@ AUTOMAKE_OPTIONS = subdir-objects
...
@@ -13,7 +13,9 @@ AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = magicseteditor
bin_PROGRAMS = magicseteditor
AM_CXXFLAGS = @WX_CXXFLAGS@
\$
(BOOST_CXXFLAGS) -DUNICODE -I . -Wall
AM_CXXFLAGS = @WX_CXXFLAGS@
\$
(BOOST_CXXFLAGS) -DUNICODE -I . -Wall
AM_LDFLAGS = @WX_LIBS@
\$
(BOOST_LDFLAGS)
\$
(BOOST_REGEX_LIB)
AM_LDFLAGS = @WX_LIBS@
\$
(BOOST_LDFLAGS)
magicseteditor_LDADD =
\$
(BOOST_REGEX_LIB)
magicseteditor_SOURCES =
magicseteditor_SOURCES =
...
...
Makefile.in
View file @
4db2960c
...
@@ -205,7 +205,8 @@ am_magicseteditor_OBJECTS = ./src/util/version.$(OBJEXT) \
...
@@ -205,7 +205,8 @@ am_magicseteditor_OBJECTS = ./src/util/version.$(OBJEXT) \
./src/cli/text_io_handler.
$(OBJEXT)
\
./src/cli/text_io_handler.
$(OBJEXT)
\
./src/code_template.
$(OBJEXT)
./src/code_template.
$(OBJEXT)
magicseteditor_OBJECTS
=
$(am_magicseteditor_OBJECTS)
magicseteditor_OBJECTS
=
$(am_magicseteditor_OBJECTS)
magicseteditor_LDADD
=
$(LDADD)
am__DEPENDENCIES_1
=
magicseteditor_DEPENDENCIES
=
$(am__DEPENDENCIES_1)
DEFAULT_INCLUDES
=
-I
.@am__isrc@
-I
$(top_builddir)
/src
DEFAULT_INCLUDES
=
-I
.@am__isrc@
-I
$(top_builddir)
/src
depcomp
=
$(SHELL)
$(top_srcdir)
/depcomp
depcomp
=
$(SHELL)
$(top_srcdir)
/depcomp
am__depfiles_maybe
=
depfiles
am__depfiles_maybe
=
depfiles
...
@@ -334,7 +335,8 @@ top_srcdir = @top_srcdir@
...
@@ -334,7 +335,8 @@ top_srcdir = @top_srcdir@
# This flag allows us to use subdirectories:
# This flag allows us to use subdirectories:
AUTOMAKE_OPTIONS
=
subdir-objects
AUTOMAKE_OPTIONS
=
subdir-objects
AM_CXXFLAGS
=
@WX_CXXFLAGS@
$(BOOST_CXXFLAGS)
-DUNICODE
-I
.
-Wall
AM_CXXFLAGS
=
@WX_CXXFLAGS@
$(BOOST_CXXFLAGS)
-DUNICODE
-I
.
-Wall
AM_LDFLAGS
=
@WX_LIBS@
$(BOOST_LDFLAGS)
$(BOOST_REGEX_LIB)
AM_LDFLAGS
=
@WX_LIBS@
$(BOOST_LDFLAGS)
magicseteditor_LDADD
=
$(BOOST_REGEX_LIB)
# The script used to generate is MakeAM.sh
# The script used to generate is MakeAM.sh
magicseteditor_SOURCES
=
./src/util/version.cpp
\
magicseteditor_SOURCES
=
./src/util/version.cpp
\
...
...
configure
View file @
4db2960c
This diff is collapsed.
Click to expand it.
configure.ac
View file @
4db2960c
...
@@ -18,10 +18,12 @@ AC_PROG_CXX
...
@@ -18,10 +18,12 @@ AC_PROG_CXX
# Do not pass -O2, because that causes failures for now.
# Do not pass -O2, because that causes failures for now.
CXXFLAGS=-g
CXXFLAGS=-g
# Checks for libraries.
# Checks for libraries.
AC_CHECK_LIB([hunspell],[Hunspell_create])
# Check for Boost
# Check for Boost
AX_BOOST_BASE([1.3
6
.0])
AX_BOOST_BASE([1.3
7
.0])
AX_BOOST_REGEX
AX_BOOST_REGEX
BOOST_REGEX_LIB="-Wl,-Bstatic $BOOST_REGEX_LIB -Wl,-Bdynamic"
# Check for wxWidgets
# Check for wxWidgets
AM_OPTIONS_WXCONFIG
AM_OPTIONS_WXCONFIG
...
...
src/script/profiler.hpp
View file @
4db2960c
...
@@ -13,7 +13,9 @@
...
@@ -13,7 +13,9 @@
#include <script/script.hpp>
#include <script/script.hpp>
#include <script/context.hpp>
#include <script/context.hpp>
#ifndef USE_SCRIPT_PROFILING
#define USE_SCRIPT_PROFILING 1
#define USE_SCRIPT_PROFILING 1
#endif
#if USE_SCRIPT_PROFILING
#if USE_SCRIPT_PROFILING
...
@@ -34,6 +36,10 @@ DECLARE_POINTER_TYPE(FunctionProfile);
...
@@ -34,6 +36,10 @@ DECLARE_POINTER_TYPE(FunctionProfile);
QueryPerformanceFrequency
(
&
i
);
QueryPerformanceFrequency
(
&
i
);
return
i
.
QuadPart
;
return
i
.
QuadPart
;
}
}
inline
const
char
*
mangled_name
(
const
type_info
&
t
)
{
return
t
.
raw_name
();
}
#else
#else
// clock() has nanosecond resolution on Linux
// clock() has nanosecond resolution on Linux
// on any other platform, stil the best way.
// on any other platform, stil the best way.
...
@@ -45,6 +51,10 @@ DECLARE_POINTER_TYPE(FunctionProfile);
...
@@ -45,6 +51,10 @@ DECLARE_POINTER_TYPE(FunctionProfile);
inline
ProfileTime
timer_resolution
()
{
inline
ProfileTime
timer_resolution
()
{
return
CLOCKS_PER_SEC
;
return
CLOCKS_PER_SEC
;
}
}
inline
const
char
*
mangled_name
(
const
type_info
&
t
)
{
return
t
.
name
();
}
#endif
#endif
/// Simple execution timer
/// Simple execution timer
...
...
src/script/to_value.hpp
View file @
4db2960c
...
@@ -282,7 +282,7 @@ class ScriptObject : public ScriptValue {
...
@@ -282,7 +282,7 @@ class ScriptObject : public ScriptValue {
virtual
ScriptValueP
getMember
(
const
String
&
name
)
const
{
virtual
ScriptValueP
getMember
(
const
String
&
name
)
const
{
#if USE_SCRIPT_PROFILING
#if USE_SCRIPT_PROFILING
Timer
t
;
Timer
t
;
Profiler
prof
(
t
,
(
void
*
)
typeid
(
T
).
raw_name
(
),
_
(
"get member of "
)
+
type_name
(
*
value
));
Profiler
prof
(
t
,
(
void
*
)
mangled_name
(
typeid
(
T
)
),
_
(
"get member of "
)
+
type_name
(
*
value
));
#endif
#endif
GetMember
gm
(
name
);
GetMember
gm
(
name
);
gm
.
handle
(
*
value
);
gm
.
handle
(
*
value
);
...
...
src/util/spell_checker.hpp
View file @
4db2960c
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
// ----------------------------------------------------------------------------- : Includes
// ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp>
#include <util/prec.hpp>
#include "hunspell.hxx"
#include "hunspell
/hunspell
.hxx"
DECLARE_POINTER_TYPE
(
SpellChecker
);
DECLARE_POINTER_TYPE
(
SpellChecker
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment