summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-05-07 09:27:07 -0400
committerChristopher Michael <devilhorns@comcast.net>2020-05-07 09:27:07 -0400
commitd135957ffa0ae429f4ca22662de8633771984485 (patch)
tree8dcacdd71c83d4c5a7ffb239e428dd81e5d725df /src/examples
parentde939ca64b3d17ee786f3fc621314fce1746334e (diff)
Use __func__ C99 identifier instead of __FUNCTION__ compiler extension
Summary: see http://www.open-std.org/JTC1/SC22/wg14/www/docs/n1124.pdf section 6.4.2.2 page 52 Test Plan: compilation Reviewers: raster, devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11785
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/eina/eina_log_03.c2
-rw-r--r--src/examples/eio/efl_io_manager_ls.c4
-rw-r--r--src/examples/eio/efl_io_manager_open.c4
-rw-r--r--src/examples/eio/efl_io_manager_open_multi.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/examples/eina/eina_log_03.c b/src/examples/eina/eina_log_03.c
index 4918872e44..02fe04c322 100644
--- a/src/examples/eina/eina_log_03.c
+++ b/src/examples/eina/eina_log_03.c
@@ -7,7 +7,7 @@
7#include <Eina.h> 7#include <Eina.h>
8 8
9#define log(fmt, ...) \ 9#define log(fmt, ...) \
10 eina_log_print(EINA_LOG_LEVEL_ERR, __FILE__, __FUNCTION__, __LINE__, fmt, ##__VA_ARGS__) 10 eina_log_print(EINA_LOG_LEVEL_ERR, __FILE__, __func__, __LINE__, fmt, ##__VA_ARGS__)
11 11
12typedef struct _Data Data; 12typedef struct _Data Data;
13 13
diff --git a/src/examples/eio/efl_io_manager_ls.c b/src/examples/eio/efl_io_manager_ls.c
index 636883d91c..e77877b0b1 100644
--- a/src/examples/eio/efl_io_manager_ls.c
+++ b/src/examples/eio/efl_io_manager_ls.c
@@ -29,7 +29,7 @@ done_cb(void *data EINA_UNUSED,
29 29
30 eina_value_get(&file, &value); 30 eina_value_get(&file, &value);
31 31
32 printf("%s done listing files %"PRIu64".\n", __FUNCTION__, value); 32 printf("%s done listing files %"PRIu64".\n", __func__, value);
33 } 33 }
34 34
35 ecore_main_loop_quit(); 35 ecore_main_loop_quit();
@@ -46,7 +46,7 @@ progress_cb(void *data EINA_UNUSED, Eina_Array *array)
46 unsigned int count; 46 unsigned int count;
47 47
48 EINA_ARRAY_ITER_NEXT(array, count, filename, it) 48 EINA_ARRAY_ITER_NEXT(array, count, filename, it)
49 printf("%s listing filename: %s\n", __FUNCTION__, filename); 49 printf("%s listing filename: %s\n", __func__, filename);
50} 50}
51 51
52void list_files(void *data) 52void list_files(void *data)
diff --git a/src/examples/eio/efl_io_manager_open.c b/src/examples/eio/efl_io_manager_open.c
index 5c731c1186..f03f454847 100644
--- a/src/examples/eio/efl_io_manager_open.c
+++ b/src/examples/eio/efl_io_manager_open.c
@@ -23,7 +23,7 @@ _closing_cb(void* data EINA_UNUSED,
23 } 23 }
24 else 24 else
25 { 25 {
26 printf("%s closed file.\n", __FUNCTION__); 26 printf("%s closed file.\n", __func__);
27 } 27 }
28 28
29 ecore_main_loop_quit(); 29 ecore_main_loop_quit();
@@ -54,7 +54,7 @@ _open_cb(void *data,
54 54
55 eina_value_get(&file, &f); 55 eina_value_get(&file, &f);
56 56
57 printf("%s opened file %s\n", __FUNCTION__, eina_file_filename_get(f)); 57 printf("%s opened file %s\n", __func__, eina_file_filename_get(f));
58 58
59 return eina_future_as_value(efl_io_manager_close(job, f)); 59 return eina_future_as_value(efl_io_manager_close(job, f));
60 } 60 }
diff --git a/src/examples/eio/efl_io_manager_open_multi.c b/src/examples/eio/efl_io_manager_open_multi.c
index bcee8ca125..8256f659eb 100644
--- a/src/examples/eio/efl_io_manager_open_multi.c
+++ b/src/examples/eio/efl_io_manager_open_multi.c
@@ -12,7 +12,7 @@
12Eina_Value 12Eina_Value
13_close_cb(void *data EINA_UNUSED, const Eina_Value array, const Eina_Future *dead EINA_UNUSED) 13_close_cb(void *data EINA_UNUSED, const Eina_Value array, const Eina_Future *dead EINA_UNUSED)
14{ 14{
15 printf("%s closed all files.\n", __FUNCTION__); 15 printf("%s closed all files.\n", __func__);
16 16
17 ecore_main_loop_quit(); 17 ecore_main_loop_quit();
18 18