diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a7b4f86..0c2517b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,7 +25,8 @@ jobs: run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + working-directory: ${{github.workspace}} + run: cmake --build ./build --config ${{env.BUILD_TYPE}} - name: Test working-directory: ${{github.workspace}}/build @@ -46,7 +47,8 @@ jobs: run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_C_COMPILER=clang - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + working-directory: ${{github.workspace}} + run: cmake --build ./build --config ${{env.BUILD_TYPE}} - name: Test working-directory: ${{github.workspace}}/build @@ -67,7 +69,8 @@ jobs: run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + working-directory: ${{github.workspace}} + run: cmake --build ./build --config ${{env.BUILD_TYPE}} - name: Test working-directory: ${{github.workspace}}/build @@ -90,12 +93,11 @@ jobs: arch: x64 - name: Configure CMake - # enkiTS is failing ASAN on windows - # run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBOX2D_SAMPLES=OFF -DBOX2D_SANITIZE=ON -DBUILD_SHARED_LIBS=OFF run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + working-directory: ${{github.workspace}} + run: cmake --build ./build --config ${{env.BUILD_TYPE}} - name: Test working-directory: ${{github.workspace}}/build diff --git a/src/word2number.h b/src/word2number.h index e93ccd0..d69a0ab 100644 --- a/src/word2number.h +++ b/src/word2number.h @@ -191,13 +191,13 @@ struct number2wordf_lang_method_table char* (*method)(double); }; -static struct word2number_lang_method_table word2number_table[]; +extern struct word2number_lang_method_table word2number_table[]; -static struct number2word_lang_method_table number2word_table[]; +extern struct number2word_lang_method_table number2word_table[]; -static struct word2numberf_lang_method_table word2numberf_table[]; +extern struct word2numberf_lang_method_table word2numberf_table[]; -static struct number2wordf_lang_method_table number2wordf_table[]; +extern struct number2wordf_lang_method_table number2wordf_table[]; long word2number(char* word, char* input_lang);