summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-26 16:39:56 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-26 16:47:22 +0200
commit6d93dc4cbf4847d33a921a939b3d8b7f65fffa89 (patch)
treeb7e66d525c19c4aa84813fde055ce92eaa0a55ec /src/lib/eolian
parent7e10d96d27c207a005e872a5d6ec786759dd83ea (diff)
eolian: rename event_prefix to event_c_prefix for consistency
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/Eolian.h4
-rw-r--r--src/lib/eolian/database_class_api.c2
-rw-r--r--src/lib/eolian/eo_lexer.h2
-rw-r--r--src/lib/eolian/eo_parser.c6
4 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h
index 311ea9016a..4594f4b181 100644
--- a/src/lib/eolian/Eolian.h
+++ b/src/lib/eolian/Eolian.h
@@ -1510,14 +1510,14 @@ EAPI const Eolian_Documentation *eolian_class_documentation_get(const Eolian_Cla
1510EAPI Eina_Stringshare* eolian_class_c_prefix_get(const Eolian_Class *klass); 1510EAPI Eina_Stringshare* eolian_class_c_prefix_get(const Eolian_Class *klass);
1511 1511
1512/* 1512/*
1513 * @brief Returns the event prefix of a class 1513 * @brief Returns the C event prefix of a class
1514 * 1514 *
1515 * @param[in] klass the class 1515 * @param[in] klass the class
1516 * @return the event prefix 1516 * @return the event prefix
1517 * 1517 *
1518 * @ingroup Eolian 1518 * @ingroup Eolian
1519 */ 1519 */
1520EAPI Eina_Stringshare* eolian_class_event_prefix_get(const Eolian_Class *klass); 1520EAPI Eina_Stringshare* eolian_class_event_c_prefix_get(const Eolian_Class *klass);
1521 1521
1522/* 1522/*
1523 * @brief Returns the data type of a class 1523 * @brief Returns the data type of a class
diff --git a/src/lib/eolian/database_class_api.c b/src/lib/eolian/database_class_api.c
index 74cff1b06b..943f561d5e 100644
--- a/src/lib/eolian/database_class_api.c
+++ b/src/lib/eolian/database_class_api.c
@@ -28,7 +28,7 @@ eolian_class_c_prefix_get(const Eolian_Class *cl)
28} 28}
29 29
30EAPI Eina_Stringshare* 30EAPI Eina_Stringshare*
31eolian_class_event_prefix_get(const Eolian_Class *cl) 31eolian_class_event_c_prefix_get(const Eolian_Class *cl)
32{ 32{
33 EINA_SAFETY_ON_NULL_RETURN_VAL(cl, NULL); 33 EINA_SAFETY_ON_NULL_RETURN_VAL(cl, NULL);
34 return cl->ev_prefix; 34 return cl->ev_prefix;
diff --git a/src/lib/eolian/eo_lexer.h b/src/lib/eolian/eo_lexer.h
index e7f61a7a21..697f94685f 100644
--- a/src/lib/eolian/eo_lexer.h
+++ b/src/lib/eolian/eo_lexer.h
@@ -28,7 +28,7 @@ enum Tokens
28#define KEYWORDS KW(class), KW(const), KW(enum), KW(return), KW(struct), \ 28#define KEYWORDS KW(class), KW(const), KW(enum), KW(return), KW(struct), \
29 \ 29 \
30 KW(abstract), KW(c_prefix), KW(composites), KW(constructor), KW(constructors), \ 30 KW(abstract), KW(c_prefix), KW(composites), KW(constructor), KW(constructors), \
31 KW(data), KW(destructor), KW(error), KW(event_prefix), KW(events), KW(extends), \ 31 KW(data), KW(destructor), KW(error), KW(event_c_prefix), KW(events), KW(extends), \
32 KW(free), KW(get), KW(implements), KW(import), KW(interface), \ 32 KW(free), KW(get), KW(implements), KW(import), KW(interface), \
33 KW(keys), KW(legacy), KW(methods), KW(mixin), KW(params), \ 33 KW(keys), KW(legacy), KW(methods), KW(mixin), KW(params), \
34 KW(parse), KW(parts), KW(ptr), KW(set), KW(type), KW(values), KW(requires), \ 34 KW(parse), KW(parts), KW(ptr), KW(set), KW(type), KW(values), KW(requires), \
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index a721e73b37..519841a7ab 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -2013,7 +2013,7 @@ static void
2013parse_class_body(Eo_Lexer *ls, Eolian_Class_Type type) 2013parse_class_body(Eo_Lexer *ls, Eolian_Class_Type type)
2014{ 2014{
2015 Eina_Bool has_c_prefix = EINA_FALSE, 2015 Eina_Bool has_c_prefix = EINA_FALSE,
2016 has_event_prefix = EINA_FALSE, 2016 has_event_c_prefix = EINA_FALSE,
2017 has_data = EINA_FALSE, 2017 has_data = EINA_FALSE,
2018 has_methods = EINA_FALSE, 2018 has_methods = EINA_FALSE,
2019 has_parts = EINA_FALSE, 2019 has_parts = EINA_FALSE,
@@ -2036,8 +2036,8 @@ parse_class_body(Eo_Lexer *ls, Eolian_Class_Type type)
2036 eo_lexer_get(ls); 2036 eo_lexer_get(ls);
2037 check_next(ls, ';'); 2037 check_next(ls, ';');
2038 break; 2038 break;
2039 case KW_event_prefix: 2039 case KW_event_c_prefix:
2040 CASE_LOCK(ls, event_prefix, "event prefix definition") 2040 CASE_LOCK(ls, event_c_prefix, "event prefix definition")
2041 eo_lexer_get(ls); 2041 eo_lexer_get(ls);
2042 check_next(ls, ':'); 2042 check_next(ls, ':');
2043 _validate_pfx(ls); 2043 _validate_pfx(ls);