Skip to content

Commit

Permalink
move Cursor definition to utils.h
Browse files Browse the repository at this point in the history
  • Loading branch information
sewenew committed Jun 17, 2024
1 parent add50aa commit aadd872
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,15 @@ jobs:
- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ./test/test_redis++ -h 127.0.0.1 -p 6379 -n 127.0.0.1 -c 7000

windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3

- name: install deps
run: choco install -y ninja memurai-developer

- uses: ilammy/msvc-dev-cmd@v1
- name: build hiredis
run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=${{ github.workspace }}/install .. && ninja -v && ninja install
2 changes: 0 additions & 2 deletions src/sw/redis++/cxx17/sw/redis++/cxx_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ using Monostate = std::monostate;
template <typename F, typename ...Args>
using IsInvocable = std::is_invocable<F, Args...>;

using Cursor = unsigned long long;

}

}
Expand Down
2 changes: 2 additions & 0 deletions src/sw/redis++/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ struct IsAssociativeContainer
: std::integral_constant<bool,
HasInsert<T>::value && !HasPushBack<T>::value> {};

using Cursor = unsigned long long;

uint16_t crc16(const char *buf, int len);

}
Expand Down

0 comments on commit aadd872

Please sign in to comment.