Skip to content

Instantly share code, notes, and snippets.

View take-cheeze's full-sized avatar
💤

Takeshi Watanabe take-cheeze

💤
View GitHub Profile
#!/bin/sh
MINGW_INSTALL_PATH=$PWD/mingw-install
MINGW_PREFIX=/usr/i586-mingw32msvc
unset CC
unset CXX
mkdir -p $MINGW_INSTALL_PATH
mkdir -p mingw-builds
# the name of the target operating system
set(CMAKE_SYSTEM_NAME Windows)
# which compilers to use for C and C++
include(CMakeForceCompiler)
cmake_force_c_compiler(i686-w64-mingw32-gcc GNU)
cmake_force_cxx_compiler(i686-w64-mingw32-g++ GNU)
set(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
# here is the target environment located
#!/bin/sh
MINGW_INSTALL_PATH=$PWD/mingw-install
MINGW_PREFIX=/usr/i686-w64-mingw32
unset CC
unset CXX
mkdir -p $MINGW_INSTALL_PATH
mkdir -p mingw-builds
# the name of the target operating system
set(CMAKE_SYSTEM_NAME Windows)
# which compilers to use for C and C++
include(CMakeForceCompiler)
cmake_force_c_compiler(i686-w64-mingw32-gcc GNU)
cmake_force_cxx_compiler(i686-w64-mingw32-g++ GNU)
set(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
set(CMAKE_RC_FLAGS -DGCC_WINDRES)
@take-cheeze
take-cheeze / ast.txt
Created July 7, 2012 14:41
こんな感じで出力できた(`・ω・´)
( 2 , 11 )
- USR: c:@aN
- kind: NAMESPACE
B ( 4 , 11 )
- USR: c:@N@B
- kind: NAMESPACE
A ( 6 , 7 )
- USR: c:@N@B@C@A
- kind: CLASS_DECL
- type: Record
LcfSaveData 00:
array1d:
array1d[ 100]: array1d:
array1d[ 100]: array1d[ 1]: double: 40885.4
array1d[ 100]: array1d[ 11]: string: "Zack"
array1d[ 100]: array1d[ 12]: int: 1
array1d[ 100]: array1d[ 13]: int: 385
array1d[ 100]: array1d[ 21]: string: "Hero2"
array1d[ 100]: array1d[ 22]: int: 8
array1d[ 100]: array1d[ 23]: string: "Hero2"
LcfSaveData 00:
array1d:
array1d[ 100]: array1d:
array1d[ 100]: array1d[ 1]: double: 40885.4
array1d[ 100]: array1d[ 11]: string: "Zack"
array1d[ 100]: array1d[ 12]: int: 1
array1d[ 100]: array1d[ 13]: int: 385
array1d[ 100]: array1d[ 21]: string: "Hero2"
array1d[ 100]: array1d[ 22]: int: 8
array1d[ 100]: array1d[ 23]: string: "Hero2"
LcfSaveData 00:
array1d:
array1d[ 100]: array1d:
array1d[ 100]: array1d[ 1]: double: 40885.4
array1d[ 100]: array1d[ 11]: string: "Zack"
array1d[ 100]: array1d[ 12]: int: 1
array1d[ 100]: array1d[ 13]: int: 385
array1d[ 100]: array1d[ 21]: string: "Hero2"
array1d[ 100]: array1d[ 22]: int: 8
array1d[ 100]: array1d[ 23]: string: "Hero2"
[{"event":{"1":{"Page":{"1":{"Term":{"char_id":1,"flag":0},"action":0,"anime_type":0,"char_set":"Chara1","char_set_pos":2,"char_setdir":2,"event":[{"arguments":[],"code":10110,"nest":0,"string_argument":"Testing message speed:"},{"arguments":[],"code":20110,"nest":0,"string_argument":"\\s[1]Speed 1"},{"arguments":[],"code":10110,"nest":0,"string_argument":"Testing message speed:"},{"arguments":[],"code":20110,"nest":0,"string_argument":"\\s[2]Speed 2"},{"arguments":[],"code":10110,"nest":0,"string_argument":"Testing message speed:"},{"arguments":[],"code":20110,"nest":0,"string_argument":"\\s[3]Speed 3"},{"arguments":[],"code":10110,"nest":0,"string_argument":"Testing message speed:"},{"arguments":[],"code":20110,"nest":0,"string_argument":"\\s[4]Speed 4"},{"arguments":[],"code":10110,"nest":0,"string_argument":"Testing message speed:"},{"arguments":[],"code":20110,"nest":0,"string_argument":"\\s[5]Speed 5"},{"arguments":[],"code":10110,"nest":0,"string_argument":"Testing message speed:"},{"arguments":[],"cod