Skip to content

Commit

Permalink
Rename lua sources from .c to .cpp
Browse files Browse the repository at this point in the history
Clang has deprecated compiling files with a '.c' extension in C++ mode.
  • Loading branch information
AI0867 committed Jan 5, 2014
1 parent 6d52e24 commit d6a713b
Show file tree
Hide file tree
Showing 36 changed files with 64 additions and 64 deletions.
64 changes: 32 additions & 32 deletions src/CMakeLists.txt
Expand Up @@ -258,38 +258,38 @@ endif()

set(libwesnoth-lua_STAT_SRC
lua_jailbreak_exception.cpp
lua/lapi.c
lua/lbitlib.c
lua/lcode.c
lua/lcorolib.c
lua/lctype.c
lua/ldebug.c
lua/ldo.c
lua/ldump.c
lua/lfunc.c
lua/lgc.c
lua/llex.c
lua/lmem.c
lua/lobject.c
lua/lopcodes.c
lua/lparser.c
lua/lstate.c
lua/lstring.c
lua/ltable.c
lua/ltm.c
lua/lundump.c
lua/lvm.c
lua/lzio.c
lua/lauxlib.c
lua/lbaselib.c
lua/ldblib.c
lua/liolib.c
lua/lmathlib.c
lua/loslib.c
lua/ltablib.c
lua/lstrlib.c
lua/loadlib.c
lua/linit.c
lua/lapi.cpp
lua/lbitlib.cpp
lua/lcode.cpp
lua/lcorolib.cpp
lua/lctype.cpp
lua/ldebug.cpp
lua/ldo.cpp
lua/ldump.cpp
lua/lfunc.cpp
lua/lgc.cpp
lua/llex.cpp
lua/lmem.cpp
lua/lobject.cpp
lua/lopcodes.cpp
lua/lparser.cpp
lua/lstate.cpp
lua/lstring.cpp
lua/ltable.cpp
lua/ltm.cpp
lua/lundump.cpp
lua/lvm.cpp
lua/lzio.cpp
lua/lauxlib.cpp
lua/lbaselib.cpp
lua/ldblib.cpp
lua/liolib.cpp
lua/lmathlib.cpp
lua/loslib.cpp
lua/ltablib.cpp
lua/lstrlib.cpp
lua/loadlib.cpp
lua/linit.cpp
)
# We explicitly want lua compiled as C++ version, so this line is required:
set_source_files_properties(${libwesnoth-lua_STAT_SRC} PROPERTIES LANGUAGE CXX)
Expand Down
64 changes: 32 additions & 32 deletions src/lua/SConscript
Expand Up @@ -2,38 +2,38 @@
Import("env")
lua_sources = Split("""
../lua_jailbreak_exception.cpp
lapi.c
lbitlib.c
lcode.c
lcorolib.c
lctype.c
ldebug.c
ldo.c
ldump.c
lfunc.c
lgc.c
llex.c
lmem.c
lobject.c
lopcodes.c
lparser.c
lstate.c
lstring.c
ltable.c
ltm.c
lundump.c
lvm.c
lzio.c
lauxlib.c
lbaselib.c
ldblib.c
liolib.c
lmathlib.c
loslib.c
ltablib.c
lstrlib.c
loadlib.c
linit.c
lapi.cpp
lbitlib.cpp
lcode.cpp
lcorolib.cpp
lctype.cpp
ldebug.cpp
ldo.cpp
ldump.cpp
lfunc.cpp
lgc.cpp
llex.cpp
lmem.cpp
lobject.cpp
lopcodes.cpp
lparser.cpp
lstate.cpp
lstring.cpp
ltable.cpp
ltm.cpp
lundump.cpp
lvm.cpp
lzio.cpp
lauxlib.cpp
lbaselib.cpp
ldblib.cpp
liolib.cpp
lmathlib.cpp
loslib.cpp
ltablib.cpp
lstrlib.cpp
loadlib.cpp
linit.cpp
""")
liblua = env.Library("lua", lua_sources,
CCCOM = env["CXXCOM"],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d6a713b

Please sign in to comment.