Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -S . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
run: cmake -B ${{github.workspace}}/build -S . -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install

- name: Build
run: cmake --build ${{github.workspace}}/build --target install --config ${{env.BUILD_TYPE}}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
All changes to the repository will be reported here

## [0.1.2]
### Changed
- Move static variables in header
### Removed
- Remove unused variable in CI

## [0.1.1]
### Removed
- Variables in header
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Author Marco M. Mosca, email: marcomichele.mosca@gmail.com
]]

cmake_minimum_required(VERSION 3.5.0)
project(cmd-api VERSION 0.1.1 LANGUAGES C)
project(cmd-api VERSION 0.1.2 LANGUAGES C)

include(CTest)

Expand Down
5 changes: 4 additions & 1 deletion cmd-api/include/cmd-api.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ Author Marco M. Mosca, email: marcomichele.mosca@gmail.com

#include <stdio.h>
#include <string.h>
#include <Windows.h>
#include <stdlib.h>

static int optind = 1, argvind = 2, formatind = -1, argformatind = 0;
static char *optargW = NULL, *curr_option;

int isCharInString(char c, char* str);
int AreStringsEqualFrom(const char* s1, const char* s2, int from);
Expand Down
2 changes: 0 additions & 2 deletions cmd-api/src/cmd-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ char* strsep(char** elem_pointer, char* pattern) {

char* getoptW(int argc, char** argv, char* format) {

static int optind = 1, argvind = 2, formatind = -1, argformatind = 0;
static char *optargW = NULL, *curr_option;
/*if optind is one means that there are no more options*/
if (optind == -1) {
return NULL;
Expand Down