Skip to content

Commit

Permalink
feat: 0.1.3 uodate prev_offset
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabaut committed Aug 20, 2023
1 parent 0af56e2 commit a30aa8d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions bin/stego.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ tests# tests folder name
0.1.0# First release
0.1.1# abort() on failed operations
0.1.2# print_kls_2file()
0.1.3# update prev_offset on kls_push()
4 changes: 4 additions & 0 deletions bin/v0.1.3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#amboso compliant version folder, will ignore everything inside BUT the gitignore, to keep the clean dir
*
!.gitignore
!static
1 change: 1 addition & 0 deletions bin/v0.1.3/static
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Define the package name and version
AC_INIT([koliseo], [0.1.2], [jgabaut@github.com])
AC_INIT([koliseo], [0.1.3], [jgabaut@github.com])

# Verify automake version and enable foreign option
AM_INIT_AUTOMAKE([foreign -Wall])
Expand All @@ -24,7 +24,7 @@ fi
# Set a default version number if not specified externally
AC_ARG_VAR([VERSION], [Version number])
if test -z "$VERSION"; then
VERSION="0.1.2"
VERSION="0.1.3"
fi

# Output variables to the config.h header
Expand Down
2 changes: 1 addition & 1 deletion docs/koliseo.doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ PROJECT_NAME = "koliseo"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = "0.1.2"
PROJECT_NUMBER = "0.1.3"

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
2 changes: 2 additions & 0 deletions src/koliseo.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ void* kls_push(Koliseo* kls, ptrdiff_t size, ptrdiff_t align, ptrdiff_t count) {
abort();
}
char* p = kls->data + kls->offset + padding;
kls->prev_offset = kls->offset;
kls->offset += padding + size*count;
return p;
}
Expand Down Expand Up @@ -112,6 +113,7 @@ void* kls_push_zero(Koliseo* kls, ptrdiff_t size, ptrdiff_t align, ptrdiff_t cou
char* p = kls->data + kls->offset + padding;
//Zero new area
memset(p, 0, size*count);
kls->prev_offset = kls->offset;
kls->offset += padding + size*count;
return p;
}
Expand Down
4 changes: 2 additions & 2 deletions src/koliseo.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

#define KLS_MAJOR 0 /**< Represents current major release.*/
#define KLS_MINOR 1 /**< Represents current minor release.*/
#define KLS_PATCH 2 /**< Represents current patch release.*/
#define KLS_PATCH 3 /**< Represents current patch release.*/

static const char KOLISEO_API_VERSION_STRING[] = "0.1.2"; /**< Represents current version with MAJOR.MINOR.PATCH format.*/
static const char KOLISEO_API_VERSION_STRING[] = "0.1.3"; /**< Represents current version with MAJOR.MINOR.PATCH format.*/

const char* string_koliseo_version(void);

Expand Down

0 comments on commit a30aa8d

Please sign in to comment.