Skip to content

Commit

Permalink
UTF-8に変換
Browse files Browse the repository at this point in the history
  • Loading branch information
jin1016 committed Aug 20, 2016
1 parent 797fd6e commit 78add9c
Show file tree
Hide file tree
Showing 187 changed files with 4,658 additions and 4,651 deletions.
62 changes: 31 additions & 31 deletions HowToBulid.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,61 +21,61 @@ Build instructions:
- Enjoy!

-------------------------------------------------------------------------------
* �Ƃ肠�����R���p�C���������l�����̐���
* とりあえずコンパイルしたい人向けの説明

�g���g��Z�̃R���p�C���ɂ͉��L���K�v�ł��B
吉里吉里Zのコンパイルには下記が必要です。

- Visual Studio 2012 Update 4 �ȍ~
- Visual Studio 2012 Update 4 以降

- nasm 2.10.09 (�ŐV�ł͖��`�F�b�N)
http://www.nasm.us/ ����_�E�����[�h����
���炩���� nasm.exe �̃p�X���‹��ϐ� PATH �ɓo�^���Ă����Ă��������B
- nasm 2.10.09 (最新版は未チェック)
http://www.nasm.us/ からダウンロードして
あらかじめ nasm.exe のパスを環境変数 PATH に登録しておいてください。

�R���p�C�����@�F
コンパイル方法:

- src/core/vc2012/tvpwin32.sln �� VS2012�ŊJ���܂�
- src/core/vc2012/tvpwin32.sln を VS2012で開きます

- ���\�����[�V�������� tvpwin32 �v���W�F�N�g���r���h���܂�
- 同ソリューション内の tvpwin32 プロジェクトをビルドします

- bin/win32/tvpwin32(_d).exe �Ƀo�C�i�����o�͂���܂�
- bin/win32/tvpwin32(_d).exe にバイナリが出力されます


-------------------------------------------------------------------------------
* Detailed information (in Japanese)

jpeg-6bx ( SIMD�� libjpg )
nasm 2.10.09 ���K�v�ł��B
jpeg-6bx ( SIMD版 libjpg )
nasm 2.10.09 が必要です。
http://www.nasm.us/

zlib
MASM���K�v�ł��B
Visual Studio 2012 �ɓ����Ă��܂��B
MASMが必要です。
Visual Studio 2012 に入っています。

���̑��̃��C�u�����ɂ͓��ɕʓr�K�v�Ȃ��̂͂���܂���B
その他のライブラリには特に別途必要なものはありません。

tvpsnd_ia32
nasm 2.10.09 ���K�v�ł��B
nasm 2.10.09 が必要です。


tvpgl_ia32
nasm 2.10.09 ���K�v�ł��B
nasm 2.10.09 が必要です。



���������t�@�C��
�g���g��Z�{�̂ɂ͂����‚��̎��������t�@�C�������݂��܂��B
���������t�@�C���͒��ڕҏW�����A�������̃t�@�C����ҏW���܂��B
�����ɂ͎��bat�t�@�C����perl���g�p����Ă���̂ŁAperl�̃C���X�g�[�����K�v�ł��B
�e�����t�@�C�������� ':' �ȍ~�ɐ������t�@�C����񋓂��܂��B
自動生成ファイル
吉里吉里Z本体にはいくつかの自動生成ファイルが存在します。
自動生成ファイルは直接編集せず、生成元のファイルを編集します。
生成には主にbatファイルとperlが使用されているので、perlのインストールが必要です。
各生成ファイルを左に ':' 以降に生成元ファイルを列挙します。

src/core/tjs2/syntax/compile.bat �ňȉ��̃t�@�C������������܂��B
src/core/tjs2/syntax/compile.bat で以下のファイルが生成されます。
tjs.tab.cpp/tjs.tab.hpp : tjs.y
tjsdate.tab.cpp/tjsdate.tab.hpp : tjsdate.y
tjspp.tab.cpp/tjspp.tab.hpp : tjspp.y
tjsDateWordMap.cc : gen_wordtable.bat

�����̃t�@�C���̐����ɂ� bison ���K�v�ł��B
bison �ɂ� libiconv2.dll libintl3.dll regex2.dll ���K�v�Ȃ̂ňꏏ�ɃC���X�g�[������K�v������܂��B
これらのファイルの生成には bison が必要です。
bison には libiconv2.dll libintl3.dll regex2.dll が必要なので一緒にインストールする必要があります。
http://gnuwin32.sourceforge.net/packages/bison.htm
http://gnuwin32.sourceforge.net/packages/libintl.htm
http://gnuwin32.sourceforge.net/packages/libiconv.htm
Expand All @@ -84,16 +84,16 @@ http://gnuwin32.sourceforge.net/packages/regex.htm



src/core/visual/glgen/gengl.bat �ňȉ��̃t�@�C������������܂��B
src/core/visual/glgen/gengl.bat で以下のファイルが生成されます。
tvpgl.c/tvpgl.h : maketab.c/tvpps.c

src/core/visual/IA32/compile.bat �ňȉ��̃t�@�C������������܂��B
src/core/visual/IA32/compile.bat で以下のファイルが生成されます。
tvpgl_ia32_intf.c/tvpgl_ia32_intf.h : *.nas

src/core/msg/win32/gen_optdesc_res.bat �ňȉ��̃t�@�C������������܂��B
src/core/msg/win32/gen_optdesc_res.bat で以下のファイルが生成されます。
OptionsDesc.cpp : option_desc_ja.txt

src/core/base/win32/makestub.bat �ňȉ��̃t�@�C������������܂��B
FuncStubs.cpp/FuncStubs.h : makestub.pl���Ŏw�肳�ꂽ�w�b�_�[�t�@�C������TJS_EXP_FUNC_DEF/TVP_GL_FUNC_PTR_EXTERN_DECL�}�N���ŋL�q���ꂽ�֐�
tp_stub.cpp/tp_stub.h : ����
src/core/base/win32/makestub.bat で以下のファイルが生成されます。
FuncStubs.cpp/FuncStubs.h : makestub.pl内で指定されたヘッダーファイル内のTJS_EXP_FUNC_DEF/TVP_GL_FUNC_PTR_EXTERN_DECLマクロで記述された関数
tp_stub.cpp/tp_stub.h : 同上

54 changes: 27 additions & 27 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@ Copyright (c), W.Dee and contributors All rights reserved.
Contributors
Go Watanabe, Kenjo, Kiyobee, Kouhei Yanagita, mey, MIK, Takenori Imoto, yun
Kirikiri Z Project Contributors
W.Dee, casper, �L�����MCF, Biscrat, �”L, nagai, ���[, ���� ��V, �i��,
�����T��, ��傤���i���͖������̐��j, AZ-UME, �� �H�l,
Katsumasa Tsuneyoshi, ���r��, miahmie, �T�[�N����, �A�U�i�V, �͂�����,
�I�����쏊, ����ӂ�/waffle, �����\�t�g, TYPE-MOON, �L����ЃG���c�[,
W.Dee, casper, 有限会社MCF, Biscrat, 青猫, nagai, ルー, 高際 雅之, 永劫,
ゆんゆん探偵, りょうご(今は無きあの星), AZ-UME, 京 秋人,
Katsumasa Tsuneyoshi, 小池潤, miahmie, サークル獏, アザナシ, はっしぃ,
棚中製作所, わっふる/waffle, ワムソフト, TYPE-MOON, 有限会社エムツー,
Takenori Imoto
Kirikiri Z 64bit Project Contributors
������Ѓ����\�t�g, Takenori Imoto, ��
合資会社ワムソフト, Takenori Imoto,
----------------------------------------------------------------------------
�\�[�X�R�[�h�`�����o�C�i���`�����A�ύX���邩���Ȃ������킸�A�ȉ��̏�����
�����ꍇ�Ɍ���A�ĔЕz����юg�p�����‚���܂��B

�E�\�[�X�R�[�h���ĔЕz����ꍇ�A��L�̒��쌠�\���A�{�����ꗗ�A����щ��L�Ɛ�
�������܂߂邱�ƁB
�E�o�C�i���`���ōĔЕz����ꍇ�A�Еz���ɕt���̃h�L�������g���̎����ɁA��L��
���쌠�\���A�{�����ꗗ�A����щ��L�Ɛӏ������܂߂邱�ƁB
�E���ʂɂ����ʂ̋��‚Ȃ��ɁA�{�\�t�g�E�F�A����h���������i�̐�`�܂��͔̔�
���i�ɁA�g�D�̖��O�܂��̓R���g���r���[�^�[�̖��O���g�p���Ă͂Ȃ�Ȃ��B

�{�\�t�g�E�F�A�́A���쌠�҂���уR���g���r���[�^�[�ɂ���āu����̂܂܁v��
����Ă���A�����َ����킸�A���ƓI�Ȏg�p�”\���A����ѓ���̖ړI�ɑ΂���K
�����Ɋւ���Öق̕ۏ؂��܂߁A�܂�����Ɍ��肳��Ȃ��A�����Ȃ�ۏ؂�����܂�
��B���쌠�҂��R���g���r���[�^�[���A���R�̂�������킸�A���Q�����̌�������
����킸�A���ӔC�̍������_��ł��邩���i�ӔC�ł��邩�i�ߎ����̑��́j�s�@
�s�ׂł��邩���킸�A���ɂ��̂悤�ȑ��Q����������”\����m�炳��Ă����Ƃ�
�Ă��A�{�\�t�g�E�F�A�̎g�p�ɂ���Ĕ��������i��֕i�܂��͑�p�T�[�r�X�̒��B�A
�g�p�̑r���A�f�[�^�̑r���A���v�̑r���A�Ɩ��̒��f���܂߁A�܂�����Ɍ��肳���
���j���ڑ��Q�A�Ԑڑ��Q�A�����I�ȑ��Q�A���ʑ��Q�A�����I���Q�A�܂��͌��ʑ��Q��
�‚��āA��ؐӔC�𕉂�Ȃ����̂Ƃ��܂��B
ソースコード形式かバイナリ形式か、変更するかしないかを問わず、以下の条件を満
たす場合に限り、再頒布および使用が許可されます。

・ソースコードを再頒布する場合、上記の著作権表示、本条件一覧、および下記免責
条項を含めること。
・バイナリ形式で再頒布する場合、頒布物に付属のドキュメント等の資料に、上記の
著作権表示、本条件一覧、および下記免責条項を含めること。
・書面による特別の許可なしに、本ソフトウェアから派生した製品の宣伝または販売
促進に、組織の名前またはコントリビューターの名前を使用してはならない。

本ソフトウェアは、著作権者およびコントリビューターによって「現状のまま」提供
されており、明示黙示を問わず、商業的な使用可能性、および特定の目的に対する適
合性に関する暗黙の保証も含め、またそれに限定されない、いかなる保証もありませ
ん。著作権者もコントリビューターも、事由のいかんを問わず、損害発生の原因いか
んを問わず、かつ責任の根拠が契約であるか厳格責任であるか(過失その他の)不法
行為であるかを問わず、仮にそのような損害が発生する可能性を知らされていたとし
ても、本ソフトウェアの使用によって発生した(代替品または代用サービスの調達、
使用の喪失、データの喪失、利益の喪失、業務の中断も含め、またそれに限定されな
い)直接損害、間接損害、偶発的な損害、特別損害、懲罰的損害、または結果損害に
ついて、一切責任を負わないものとします。

------------------------------------------------------------------------------
Thanks for many libraries to contributors and other supporters that were not
Expand Down Expand Up @@ -326,7 +326,7 @@ Introduction
encourage you to use the following text:

"""
Portions of this software are copyright <year> The FreeType
Portions of this software are copyright <year> The FreeType
Project (www.freetype.org). All rights reserved.
"""

Expand Down Expand Up @@ -665,7 +665,7 @@ picojson LICENSE

------------------------------------------------------------------------------
Microsoft Corporation Technical Documentation License Agreement for the
specification �gJPEG XR Device Porting Kit�h
specification “JPEG XR Device Porting Kit
Copyright (c) 2013 Microsoft Corp.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
Expand Down
4 changes: 2 additions & 2 deletions base/CharacterSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ static tjs_int inline TVPWideCharToUtf8(tjs_char in, char * out)
#if 1
else
{
TVPThrowExceptionMessage(TJS_W("UTF-16では発生し得ないUTF-8への変換"));
TVPThrowExceptionMessage(TJS_W("UTF-16では発生し得ないUTF-8への変換"));
}
#else
// 以下オリジナルのコードだけど、通らないはず。
// 以下オリジナルのコードだけど、通らないはず。
else if(in < (1<<21))
{
if(out)
Expand Down
4 changes: 2 additions & 2 deletions base/ScriptMgnIntf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1147,11 +1147,11 @@ void TVPShowScriptException(eTJSScriptError &e)
tjs_int lineno = 1+e.GetBlockNoAddRef()->SrcPosToLine(e.GetPosition() )- e.GetBlockNoAddRef()->GetLineOffset();

#if defined(WIN32) && defined(_DEBUG) && !defined(ENABLE_DEBUGGER)
// デバッガ実行されている時、Visual Studio で行ジャンプする時の指定をデバッグ出力に出して、break で停止する
// デバッガ実行されている時、Visual Studio で行ジャンプする時の指定をデバッグ出力に出して、break で停止する
if( ::IsDebuggerPresent() ) {
std::wstring debuglile( std::wstring(L"2>")+path.AsStdString()+L"("+std::to_wstring(lineno)+L"): error :" + errstr.AsStdString() );
::OutputDebugString( debuglile.c_str() );
// ここで breakで停止した時、直前の出力行をダブルクリックすれば、例外箇所のスクリプトをVisual Studioで開ける
// ここで breakで停止した時、直前の出力行をダブルクリックすれば、例外箇所のスクリプトをVisual Studioで開ける
::DebugBreak();
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion base/win32/NativeEventQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ LRESULT WINAPI NativeEventQueueImplement::WndProc( HWND hWnd, UINT msg, WPARAM w
}
}

// ƒfƒtƒHƒ‹ƒgƒnƒ“ƒhƒ‰
// デフォルトハンドラ
void NativeEventQueueImplement::HandlerDefault( NativeEvent& event ) {
event.Result = ::DefWindowProc(event.HWnd,event.Message,event.WParam,event.LParam);
}
Expand Down
14 changes: 7 additions & 7 deletions base/win32/NativeEventQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#ifndef __NATIVE_EVENT_QUEUE_H__
#define __NATIVE_EVENT_QUEUE_H__

// 呼び出されるハンドラがシングルスレッドで動作するイベントキュー
// 呼び出されるハンドラがシングルスレッドで動作するイベントキュー

class NativeEvent {
public:
Expand All @@ -18,13 +18,13 @@ class NativeEvent {

class NativeEventQueueIntarface {
public:
// デフォルトハンドラ
// デフォルトハンドラ
virtual void HandlerDefault( class NativeEvent& event ) = 0;

// Queue の生成
// Queue の生成
virtual void Allocate() = 0;

// Queue の削除
// Queue の削除
virtual void Deallocate() = 0;

virtual void Dispatch( class NativeEvent& event ) = 0;
Expand All @@ -42,13 +42,13 @@ class NativeEventQueueImplement : public NativeEventQueueIntarface {
public:
NativeEventQueueImplement() : window_handle_(NULL) {}

// デフォルトハンドラ
// デフォルトハンドラ
void HandlerDefault( NativeEvent& event );

// Queue の生成
// Queue の生成
void Allocate();

// Queue の削除
// Queue の削除
void Deallocate();

void PostEvent( const NativeEvent& event );
Expand Down
6 changes: 3 additions & 3 deletions base/win32/SysInitImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ void TVPInitializeBaseSystems()
//---------------------------------------------------------------------------
// system initializer / uninitializer
//---------------------------------------------------------------------------
// フォルダ選択ダイアログのコールバック関数
// フォルダ選択ダイアログのコールバック関数
static int CALLBACK TVPBrowseCallbackProc(HWND hwnd,UINT uMsg,LPARAM lParam,LPARAM lpData)
{
if(uMsg==BFFM_INITIALIZED){
Expand Down Expand Up @@ -1214,7 +1214,7 @@ void TVPAfterSystemInit()
limitmb = opt.AsInteger();
}

// 物理メモリより仮想メモリの方が小さい(32bitでメモリ搭載量が多い)場合、仮想メモリの方でキャッシュ計算する
// 物理メモリより仮想メモリの方が小さい(32bitでメモリ搭載量が多い)場合、仮想メモリの方でキャッシュ計算する
MEMORYSTATUSEX status = { sizeof(MEMORYSTATUSEX) };
::GlobalMemoryStatusEx(&status);
tjs_uint64 totalMemory = TVPTotalPhysMemory;
Expand Down Expand Up @@ -1247,7 +1247,7 @@ void TVPAfterSystemInit()
{
TVPGraphicCacheSystemLimit = limitmb * 1024*1024;
}
// キャッシュは 512MB までに制限
// キャッシュは 512MB までに制限
if( TVPGraphicCacheSystemLimit >= 512*1024*1024 )
TVPGraphicCacheSystemLimit = 512*1024*1024;

Expand Down
2 changes: 1 addition & 1 deletion base/win32/SystemImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ enum tTVPTouchDevice {
tdMouseWheel = 0x00000200
};
/**
* タッチデバイス(とマウス)の接続状態を取得する
* タッチデバイス(とマウス)の接続状態を取得する
**/
static int TVPGetSupportTouchDevice()
{
Expand Down
Loading

0 comments on commit 78add9c

Please sign in to comment.