Skip to content

Commit

Permalink
Get rid of Linux transactions.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekKnapek committed May 31, 2024
1 parent 41e86e1 commit 8125ac7
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 103 deletions.
2 changes: 0 additions & 2 deletions mk_clib/projects/vs2022/mk_clib_slib/mk_clib_slib.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,6 @@
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_reader_file_portable.h"/>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_reader_file_windows.h"/>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction.h"/>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_linux.h"/>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_portable.h"/>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_windows.h"/>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_writer_buffered_inl_defd.h"/>
Expand Down Expand Up @@ -1233,7 +1232,6 @@
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_reader_file_portable.c"/>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_reader_file_windows.c"/>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction.c"/>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_linux.c"/>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_portable.c"/>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_windows.c"/>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_writer_file.c"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,6 @@
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_reader_file_portable.h"><Filter>src</Filter></ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_reader_file_windows.h"><Filter>src</Filter></ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction.h"><Filter>src</Filter></ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_linux.h"><Filter>src</Filter></ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_portable.h"><Filter>src</Filter></ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_windows.h"><Filter>src</Filter></ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_writer_buffered_inl_defd.h"><Filter>src</Filter></ClInclude>
Expand Down Expand Up @@ -1196,7 +1195,6 @@
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_reader_file_portable.c"><Filter>src</Filter></ClCompile>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_reader_file_windows.c"><Filter>src</Filter></ClCompile>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction.c"><Filter>src</Filter></ClCompile>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_linux.c"><Filter>src</Filter></ClCompile>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_portable.c"><Filter>src</Filter></ClCompile>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_transaction_windows.c"><Filter>src</Filter></ClCompile>
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\..\src\mk_sl_io_writer_file.c"><Filter>src</Filter></ClCompile>
Expand Down
9 changes: 1 addition & 8 deletions mk_clib/src/mk_sl_io_transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@
#define mk_sl_io_transaction_impl_abort mk_sl_io_transaction_windows_abort
#define mk_sl_io_transaction_impl_close mk_sl_io_transaction_windows_close
#define mk_sl_io_transaction_impl_dummy mk_sl_io_transaction_windows_dummy
#elif mk_lang_platform == mk_lang_platform_linux
#include "mk_sl_io_transaction_linux.h"
#define mk_sl_io_transaction_impl_create mk_sl_io_transaction_linux_create
#define mk_sl_io_transaction_impl_commit mk_sl_io_transaction_linux_commit
#define mk_sl_io_transaction_impl_abort mk_sl_io_transaction_linux_abort
#define mk_sl_io_transaction_impl_close mk_sl_io_transaction_linux_close
#define mk_sl_io_transaction_impl_dummy mk_sl_io_transaction_linux_dummy
#elif mk_lang_platform == mk_lang_platform_portable
#elif mk_lang_platform == mk_lang_platform_linux || mk_lang_platform == mk_lang_platform_portable
#include "mk_sl_io_transaction_portable.h"
#define mk_sl_io_transaction_impl_create mk_sl_io_transaction_portable_create
#define mk_sl_io_transaction_impl_commit mk_sl_io_transaction_portable_commit
Expand Down
5 changes: 1 addition & 4 deletions mk_clib/src/mk_sl_io_transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
#if mk_lang_platform == mk_lang_platform_windows_61 || mk_lang_platform == mk_lang_platform_windows_60 || mk_lang_platform == mk_lang_platform_windows
#include "mk_sl_io_transaction_windows.h"
struct mk_sl_io_transaction_s { mk_sl_io_transaction_windows_t m_data; };
#elif mk_lang_platform == mk_lang_platform_linux
#include "mk_sl_io_transaction_linux.h"
struct mk_sl_io_transaction_s { mk_sl_io_transaction_linux_t m_data; };
#elif mk_lang_platform == mk_lang_platform_portable
#elif mk_lang_platform == mk_lang_platform_linux || mk_lang_platform == mk_lang_platform_portable
#include "mk_sl_io_transaction_portable.h"
struct mk_sl_io_transaction_s { mk_sl_io_transaction_portable_t m_data; };
#else
Expand Down
56 changes: 0 additions & 56 deletions mk_clib/src/mk_sl_io_transaction_linux.c

This file was deleted.

31 changes: 0 additions & 31 deletions mk_clib/src/mk_sl_io_transaction_linux.h

This file was deleted.

0 comments on commit 8125ac7

Please sign in to comment.