generated from ut-issl/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from ut-issl/feature/fix_after_change_code_en…
…coding ソースコードの文字コードをUTF-8にした後の様々な微修正
- Loading branch information
Showing
13 changed files
with
119 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 11 additions & 13 deletions
24
Examples/minimum_user_for_s2e/src/src_user/Script/activate_sils_define.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
@ECHO OFF | ||
REM @brief sils_defineのコメントアウトを解除する | ||
REM @brief sils_define.h のコメントアウトを解除する | ||
|
||
REM スクリプト実行時、sils_define.hから | ||
REM スクリプト実行時,sils_define.h から | ||
REM ``` | ||
REM //#define SILS_FW //ここでdefineする! | ||
REM // #define SILS_FW | ||
REM ``` | ||
REM と書かれた行を検出し、コメントアウトを解除する。 | ||
REM 以下のサイトを参考にした。 | ||
REM と書かれた行を検出し,コメントアウトを解除する | ||
REM 以下のサイトを参考にした | ||
REM 文字列置換: https://qiita.com/wagase/items/2180d8911dcc2a748fd3 | ||
REM 空行処理 : https://blogs.yahoo.co.jp/kerupani/15344574.html | ||
|
||
cd /d %~dp0 | ||
|
||
setlocal enabledelayedexpansion | ||
rem for /f "tokens=1* delims=:" %%A in ('findstr /n "^" ./sils_define.h') do ( | ||
|
||
for /f "tokens=1* delims=:" %%A in ('findstr /n "^" ..\Settings\sils_define.h') do ( | ||
set line0=%%B | ||
|
||
REM 空の行はechoで表示できないので分岐しておく | ||
if "%%B" == "" ( | ||
echo.>>..\Settings\SILS_DEFINE.tmp | ||
echo.>>..\Settings\sils_define.tmp | ||
) else ( | ||
set line1=!line0://#define SILS_FW //ここでdefineする!=#define SILS_FW //ここでdefineする!! | ||
echo !line1!>>..\Settings\SILS_DEFINE.tmp | ||
set line1=!line0:// #define SILS_FW=#define SILS_FW! | ||
echo !line1!>>..\Settings\sils_define.tmp | ||
) | ||
) | ||
|
||
REM 一時ファイルを削除し、変更を反映 | ||
rem move SILS_DEFINE.tmp sils_define.h | ||
move ..\Settings\SILS_DEFINE.tmp ..\Settings\sils_define.h | ||
REM 一時ファイルを削除し,変更を反映 | ||
move ..\Settings\sils_define.tmp ..\Settings\sils_define.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
Examples/minimum_user_for_s2e/src/src_user/Settings/sils_define.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
/** | ||
* @file | ||
* @brief Switch the build settings between your real OBC and SILS | ||
* @note Switchable with activate_sils_define.bat and deactivate_sils_define.bat | ||
*/ | ||
#ifndef SILS_DEFINE_H_ | ||
#define SILS_DEFINE_H_ | ||
|
||
#ifndef SILS_FW | ||
// #define SILS_FW //ここでdefineする! | ||
#endif // SILS_FW | ||
|
||
#ifdef SILS_FW | ||
#define IS_LITTLE_ENDIAN // SILS環境により変更する | ||
// #define SILS_FW | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"c2a_root_dir" : "./", | ||
"input_file_encoding" : "utf-8", | ||
"target_dirs" : [ | ||
"src_core/", | ||
"src_user/" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters