Skip to content

Commit

Permalink
Internal functions are now namespaced with _fsio prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
sagiegurari committed Nov 7, 2020
1 parent 0d69d3e commit 0f7827e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## CHANGELOG

### Unpublished
### v0.1.1 (2020-11-07)

* Internal functions are now namespaced with _fsio prefix.
* c_string_buffer upgraded to 0.1.4
* Improved build setup (no need to list test names).

### v0.1.0 (2020-09-25)
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ macro(add_external_lib)
LIBRARY_PARENT_DIRECTORY target
)
endmacro(add_external_lib)
add_external_lib("string_buffer" "v0.1.3")
add_external_lib("string_buffer" "v0.1.4")

include_directories(include "${STRING_BUFFER_INCLUDE}")

Expand Down
8 changes: 4 additions & 4 deletions src/fsio.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
#include <sys/stat.h>


bool _write_text_file(char *, char *, char *);
bool _fsio_write_text_file(char *, char *, char *);


bool fsio_write_text_file(char *file, char *text)
{
return(_write_text_file(file, text, "w"));
return(_fsio_write_text_file(file, text, "w"));
}


bool fsio_append_text_file(char *file, char *text)
{
return(_write_text_file(file, text, "a"));
return(_fsio_write_text_file(file, text, "a"));
}


Expand Down Expand Up @@ -126,7 +126,7 @@ bool fsio_mkdirs(char *directory, mode_t mode)
}


bool _write_text_file(char *file, char *text, char *mode)
bool _fsio_write_text_file(char *file, char *text, char *mode)
{
if (file == NULL || text == NULL)
{
Expand Down

0 comments on commit 0f7827e

Please sign in to comment.