summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-06-30 23:17:05 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-30 23:17:05 +0100
commit8d0649ef0bf48716f404428bd88ea74d96228ccc (patch)
tree59815f5922f13a045d389ed18694b996653bfe29 /src/lib
parent154a407bf2f9d8a62cf539b05929edf2b0e1390a (diff)
eolian: remove superfluous macros
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/eolian/eo_parser.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index e83cfcc949..567eebf595 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -1,9 +1,6 @@
1#include "eo_parser.h" 1#include "eo_parser.h"
2#include "eolian_database.h" 2#include "eolian_database.h"
3 3
4#define FUNC_PUBLIC 0
5#define FUNC_PROTECTED 1
6
7#define CASE_LOCK(ls, var, msg) \ 4#define CASE_LOCK(ls, var, msg) \
8 if (has_##var) \ 5 if (has_##var) \
9 eo_lexer_syntax_error(ls, "double " msg); \ 6 eo_lexer_syntax_error(ls, "double " msg); \
@@ -489,7 +486,7 @@ parse_property(Eo_Lexer *ls)
489 ls->tmp.prop = prop; 486 ls->tmp.prop = prop;
490 if (ls->t.kw == KW_protected) 487 if (ls->t.kw == KW_protected)
491 { 488 {
492 prop->scope = FUNC_PROTECTED; 489 prop->scope = EOLIAN_SCOPE_PROTECTED;
493 eo_lexer_get(ls); 490 eo_lexer_get(ls);
494 } 491 }
495 prop->name = eina_stringshare_add(ls->t.value); 492 prop->name = eina_stringshare_add(ls->t.value);
@@ -556,7 +553,7 @@ parse_method(Eo_Lexer *ls, Eina_Bool ctor)
556 meth->type = METH_REGULAR; 553 meth->type = METH_REGULAR;
557 if (ls->t.kw == KW_protected) 554 if (ls->t.kw == KW_protected)
558 { 555 {
559 meth->scope = FUNC_PROTECTED; 556 meth->scope = EOLIAN_SCOPE_PROTECTED;
560 eo_lexer_get(ls); 557 eo_lexer_get(ls);
561 } 558 }
562 check(ls, TOK_VALUE); 559 check(ls, TOK_VALUE);