aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2021-01-25 01:04:57 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2021-01-25 01:05:30 +0100
commit5b3e580c56ddf7bdb2eaff7ffb8b2a75251c5fdb (patch)
tree47b317252c54dd218befa0279b91068d127f2c08 /examples
parent30115b9ee3ba0bf14fa8b1add0b3fd51d6919fc0 (diff)
downloadembedlog-5b3e580c56ddf7bdb2eaff7ffb8b2a75251c5fdb.tar.gz
embedlog-5b3e580c56ddf7bdb2eaff7ffb8b2a75251c5fdb.tar.bz2
embedlog-5b3e580c56ddf7bdb2eaff7ffb8b2a75251c5fdb.zip
examples: changes names of library examples
Add _main as suffix, to indicate it's an app entry point Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
Diffstat (limited to 'examples')
-rw-r--r--examples/print-memory.c2
-rw-r--r--examples/print-options.c4
-rw-r--r--examples/print-simple.c2
-rw-r--r--examples/print-thread-safe.c2
-rw-r--r--examples/print-to-file.c2
-rw-r--r--examples/print-tty.c2
6 files changed, 8 insertions, 6 deletions
diff --git a/examples/print-memory.c b/examples/print-memory.c
index 8a360fe..c1cf9c4 100644
--- a/examples/print-memory.c
+++ b/examples/print-memory.c
@@ -6,7 +6,7 @@
#include "embedlog.h"
#ifdef EMBEDLOG_DEMO_LIBRARY
-int el_demo_print_memory(void)
+int el_demo_print_memory_main(void)
#else
int main(void)
#endif
diff --git a/examples/print-options.c b/examples/print-options.c
index fd2450d..dd245ea 100644
--- a/examples/print-options.c
+++ b/examples/print-options.c
@@ -15,7 +15,7 @@ void too_long_function_to_present_trimming_but_it_could_be_impossible(void)
}
#ifdef EMBEDLOG_DEMO_LIBRARY
-int el_demo_print_options(void)
+int el_demo_print_options_main(void)
#else
int main(void)
#endif
@@ -108,4 +108,6 @@ int main(void)
el_oprint(OELF, "able to print messages without passing el object");
el_oprint(OELW, "each time to print functions");
el_ocleanup(&opts);
+
+ return 0;
}
diff --git a/examples/print-simple.c b/examples/print-simple.c
index 0c679f8..e5ffc6b 100644
--- a/examples/print-simple.c
+++ b/examples/print-simple.c
@@ -6,7 +6,7 @@
#include "embedlog.h"
#ifdef EMBEDLOG_DEMO_LIBRARY
-int el_demo_print_simple(void)
+int el_demo_print_simple_main(void)
#else
int main(void)
#endif
diff --git a/examples/print-thread-safe.c b/examples/print-thread-safe.c
index c21d624..68f7417 100644
--- a/examples/print-thread-safe.c
+++ b/examples/print-thread-safe.c
@@ -6,7 +6,7 @@
#include "embedlog.h"
#ifdef EMBEDLOG_DEMO_LIBRARY
-int el_demo_print_thread_safe(void)
+int el_demo_print_thread_safe_main(void)
#else
int main(void)
#endif
diff --git a/examples/print-to-file.c b/examples/print-to-file.c
index 68d5b26..7789540 100644
--- a/examples/print-to-file.c
+++ b/examples/print-to-file.c
@@ -12,7 +12,7 @@
#define WORKDIR "/tmp/embedlog-example"
#ifdef EMBEDLOG_DEMO_LIBRARY
-int el_demo_print_to_file(void)
+int el_demo_print_to_file_main(void)
#else
int main(void)
#endif
diff --git a/examples/print-tty.c b/examples/print-tty.c
index 50281de..742e103 100644
--- a/examples/print-tty.c
+++ b/examples/print-tty.c
@@ -14,7 +14,7 @@
#endif
#ifdef EMBEDLOG_DEMO_LIBRARY
-int el_demo_print_tty(int argc, const char *argv[])
+int el_demo_print_tty_main(int argc, const char *argv[])
#else
int main(int argc, const char *argv[])
#endif