Skip to content

Commit a30aa8d

Browse files
committed
feat: 0.1.3 uodate prev_offset
1 parent 0af56e2 commit a30aa8d

File tree

7 files changed

+13
-5
lines changed

7 files changed

+13
-5
lines changed

bin/stego.lock

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ tests# tests folder name
88
0.1.0# First release
99
0.1.1# abort() on failed operations
1010
0.1.2# print_kls_2file()
11+
0.1.3# update prev_offset on kls_push()

bin/v0.1.3/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#amboso compliant version folder, will ignore everything inside BUT the gitignore, to keep the clean dir
2+
*
3+
!.gitignore
4+
!static

bin/v0.1.3/static

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../static/

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Define the package name and version
2-
AC_INIT([koliseo], [0.1.2], [[email protected]])
2+
AC_INIT([koliseo], [0.1.3], [[email protected]])
33

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

3030
# Output variables to the config.h header

docs/koliseo.doxyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PROJECT_NAME = "koliseo"
4848
# could be handy for archiving the generated documentation or if some version
4949
# control system is used.
5050

51-
PROJECT_NUMBER = "0.1.2"
51+
PROJECT_NUMBER = "0.1.3"
5252

5353
# Using the PROJECT_BRIEF tag one can provide an optional one line description
5454
# for a project that appears at the top of each page and should give viewer a

src/koliseo.c

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ void* kls_push(Koliseo* kls, ptrdiff_t size, ptrdiff_t align, ptrdiff_t count) {
8383
abort();
8484
}
8585
char* p = kls->data + kls->offset + padding;
86+
kls->prev_offset = kls->offset;
8687
kls->offset += padding + size*count;
8788
return p;
8889
}
@@ -112,6 +113,7 @@ void* kls_push_zero(Koliseo* kls, ptrdiff_t size, ptrdiff_t align, ptrdiff_t cou
112113
char* p = kls->data + kls->offset + padding;
113114
//Zero new area
114115
memset(p, 0, size*count);
116+
kls->prev_offset = kls->offset;
115117
kls->offset += padding + size*count;
116118
return p;
117119
}

src/koliseo.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
#define KLS_MAJOR 0 /**< Represents current major release.*/
1111
#define KLS_MINOR 1 /**< Represents current minor release.*/
12-
#define KLS_PATCH 2 /**< Represents current patch release.*/
12+
#define KLS_PATCH 3 /**< Represents current patch release.*/
1313

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

1616
const char* string_koliseo_version(void);
1717

0 commit comments

Comments
 (0)