summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2014-02-05 21:18:54 -0500
committerzmike <michael.blumenkrantz@gmail.com>2014-02-05 21:18:54 -0500
commit9a4e72bc6e134c7da49e8063f560f7affce62026 (patch)
tree6875c3a1389d53525ae91e48ada7dc4b82ba5f22
parent4b3579748064ad9564d549b6b740cda8410a4f2f (diff)
modernize slightly
-rw-r--r--excetra.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/excetra.c b/excetra.c
index 8c45bec..2906db7 100644
--- a/excetra.c
+++ b/excetra.c
@@ -4,18 +4,6 @@
4#include <Azy.h> 4#include <Azy.h>
5#include <Lyricwiki_Common_Azy.h> 5#include <Lyricwiki_Common_Azy.h>
6 6
7#ifndef __UNUSED__
8# define __UNUSED__ __attribute__((unused))
9#endif
10
11#ifndef strdupa
12# define strdupa(str) strcpy(alloca(strlen(str) + 1), str)
13#endif
14
15#ifndef strndupa
16# define strndupa(str, len) strncpy(alloca(len + 1), str, len)
17#endif
18
19#define DBG(...) EINA_LOG_DOM_DBG(excetra_log_dom, __VA_ARGS__) 7#define DBG(...) EINA_LOG_DOM_DBG(excetra_log_dom, __VA_ARGS__)
20#define INF(...) EINA_LOG_DOM_INFO(excetra_log_dom, __VA_ARGS__) 8#define INF(...) EINA_LOG_DOM_INFO(excetra_log_dom, __VA_ARGS__)
21#define WRN(...) EINA_LOG_DOM_WARN(excetra_log_dom, __VA_ARGS__) 9#define WRN(...) EINA_LOG_DOM_WARN(excetra_log_dom, __VA_ARGS__)
@@ -29,7 +17,7 @@ int excetra_log_dom = -1;
29 17
30 18
31Eina_Bool 19Eina_Bool
32lyricwiki_data(void *d __UNUSED__, int type __UNUSED__, Ecore_Con_Event_Url_Data *ev) 20lyricwiki_data(void *d EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Url_Data *ev)
33{ 21{
34 Eina_Strbuf *buf = ecore_con_url_data_get(ev->url_con); 22 Eina_Strbuf *buf = ecore_con_url_data_get(ev->url_con);
35 23
@@ -104,7 +92,7 @@ lyricwiki_parse_stub(Eina_Strbuf *buf)
104} 92}
105 93
106Eina_Bool 94Eina_Bool
107lyricwiki_complete(void *d __UNUSED__, int type __UNUSED__, Ecore_Con_Event_Url_Complete *ev) 95lyricwiki_complete(void *d EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Url_Complete *ev)
108{ 96{
109 Eina_Strbuf *buf = ecore_con_url_data_get(ev->url_con); 97 Eina_Strbuf *buf = ecore_con_url_data_get(ev->url_con);
110 const Eina_List *headers, *l; 98 const Eina_List *headers, *l;