tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b623d89b0166e26eceee1f4dfb88b2ded0400c7e

commit b623d89b0166e26eceee1f4dfb88b2ded0400c7e
Author: Tom Hacohen <[email protected]>
Date:   Wed Aug 17 11:24:48 2016 +0100

    Efl Object: Make event description arrays const.
    
    This was an oversight. They should have been const arrays, and not just 
arrays
    of pointers to const items.
---
 src/bin/eolian/eo_generator.c | 2 +-
 src/lib/eo/Eo.h               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 96e2618..425e03a 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -23,7 +23,7 @@ static const Efl_Op_Description _@#class_op_desc[] = 
{@#list_op\n};\n\n";
 
 static const char
 tmpl_events_desc[] = "\
-static const Efl_Event_Description *_@#class_event_desc[] = {@#list_evdesc\n\
+static const Efl_Event_Description * const _@#class_event_desc[] = 
{@#list_evdesc\n\
      NULL\n\
 };\n\n";
 
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index b03b9ed..0911e34 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -411,7 +411,7 @@ struct _Efl_Class_Description
    const char *name; /**< The name of the class. */
    Efl_Class_Type type; /**< The type of the class. */
    Efl_Object_Ops ops;  /**< The ops description, should be filled using 
#EFL_CLASS_DESCRIPTION_OPS (later sorted by Eo). */
-   const Efl_Event_Description **events; /**< The event descriptions for this 
class. */
+   const Efl_Event_Description * const *events; /**< The event descriptions 
for this class. */
    size_t data_size; /**< The size of data (private + protected + public) this 
class needs per object. */
    void (*class_constructor)(Efl_Class *klass); /**< The constructor of the 
class. */
    void (*class_destructor)(Efl_Class *klass); /**< The destructor of the 
class. */

-- 


Reply via email to