On Fri, May 25, 2012 at 4:29 PM, ChunEon Park <her...@naver.com> wrote:
>
> But even I changed API, I didn't change actual return value.
> Just changed API but It still returns previous int type value.

as an enum can be implemented with a type different than an int, yes

for example : -fshort-enums option of gcc (see :
http://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options)

Vincent

>
>  Really does it cause ABI break?
>
> ------------------------------------
> -Regards, Hermet-
>
> -----Original Message-----
> From: "Carsten Haitzler"&lt;ras...@rasterman.com&gt;
> To: "Enlightenment developer 
> list"&lt;enlightenment-devel@lists.sourceforge.net&gt;;
> Cc:
> Sent: 2012-05-25 (금) 21:29:12
> Subject: Re: [E-devel] E SVN: hermet IN trunk/ecore: . src/lib/ecore_x 
> src/lib/ecore_x/xcb src/lib/ecore_x/xlib
>
> On Fri, 25 May 2012 13:47:35 +0200 Vincent Torri 
> &lt;vincent.torri&gt;@gmail.com&gt; said:
>
> correct, though only in odd cases. i dont know of any compiler that uses
> something other than an int for an enum. is generally not a good idea to 
> change
> types of returns or arguments.
>
> &gt; according to raster, you can break ABI by changing that, as the
> &gt; implementation of an enum can vary from a compiler to another
> &gt;
> &gt; Vincent
> &gt;
> &gt; On Fri, May 25, 2012 at 12:15 PM, Enlightenment SVN
> &gt; &lt;no-reply&gt;@enlightenment.org&gt; wrote:
> &gt; &gt; Log:
> &gt; &gt; ecore/ecore_x - Changed ecore_x_error_get() return type to
> &gt; &gt; Ecore_X_Error_Code from int
> &gt; &gt;
> &gt; &gt;
> &gt; &gt;
> &gt; &gt; Author:       hermet
> &gt; &gt; Date:         2012-05-25 03:15:27 -0700 (Fri, 25 May 2012)
> &gt; &gt; New Revision: 71421
> &gt; &gt; Trac:         http://trac.enlightenment.org/e/changeset/71421
> &gt; &gt;
> &gt; &gt; Modified:
> &gt; &gt;  trunk/ecore/ChangeLog trunk/ecore/src/lib/ecore_x/Ecore_X.h
> &gt; &gt; trunk/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c
> &gt; &gt; trunk/ecore/src/lib/ecore_x/xlib/ecore_x.c
> &gt; &gt; trunk/ecore/src/lib/ecore_x/xlib/ecore_x_error.c
> &gt; &gt;
> &gt; &gt; Modified: trunk/ecore/ChangeLog
> &gt; &gt; ===================================================================
> &gt; &gt; --- trunk/ecore/ChangeLog       2012-05-25 09:19:16 UTC (rev 71420)
> &gt; &gt; +++ trunk/ecore/ChangeLog       2012-05-25 10:15:27 UTC (rev 71421)
> &gt; &gt; @@ -682,4 +682,8 @@
> &gt; &gt;         timer around, quit mainloop, then start it again expecting 
> the timer
> &gt; &gt;         to keep ticking off. also happens to be an issuw with
> &gt; &gt;         iterating the mainloop.
> &gt; &gt; -
> &gt; &gt; +
> &gt; &gt; +2012-05-25 ChunEon Park (Hermet)
> &gt; &gt; +
> &gt; &gt; +        * Changed ecore_x_error_get() return type to 
> Ecore_X_Error_Code
> &gt; &gt; from
> &gt; &gt; +        int
> &gt; &gt;
> &gt; &gt; Modified: trunk/ecore/src/lib/ecore_x/Ecore_X.h
> &gt; &gt; ===================================================================
> &gt; &gt; --- trunk/ecore/src/lib/ecore_x/Ecore_X.h       2012-05-25 09:19:16 
> UTC
> &gt; &gt; (rev 71420) +++ trunk/ecore/src/lib/ecore_x/Ecore_X.h       
> 2012-05-25
> &gt; &gt; 10:15:27 UTC (rev 71421) @@ -1255,9 +1255,11 @@
> &gt; &gt;  ecore_x_io_error_handler_set(void (*func)(void *data),
> &gt; &gt;                              const void *data);
> &gt; &gt;  EAPI int
> &gt; &gt; - ecore_x_error_request_get(void);
> &gt; &gt; -EAPI int
> &gt; &gt; - ecore_x_error_code_get(void);
> &gt; &gt; +ecore_x_error_request_get(void);
> &gt; &gt; +
> &gt; &gt; +EAPI Ecore_X_Error_Code
> &gt; &gt; +ecore_x_error_code_get(void);
> &gt; &gt; +
> &gt; &gt;  EAPI Ecore_X_ID
> &gt; &gt;  ecore_x_error_resource_id_get(void);
> &gt; &gt;
> &gt; &gt;
> &gt; &gt; Modified: trunk/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c
> &gt; &gt; ===================================================================
> &gt; &gt; --- trunk/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c   2012-05-25 
> 09:19:16
> &gt; &gt; UTC (rev 71420) +++ 
> trunk/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c
> &gt; &gt; 2012-05-25 10:15:27 UTC (rev 71421) @@ -58,7 +58,7 @@
> &gt; &gt;  *
> &gt; &gt;  * Return the error code from the last X error
> &gt; &gt;  */
> &gt; &gt; -EAPI int
> &gt; &gt; +EAPI Ecore_X_Error_Code
> &gt; &gt;  ecore_x_error_code_get(void)
> &gt; &gt;  {
> &gt; &gt;    return _error_code;
> &gt; &gt;
> &gt; &gt; Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x.c
> &gt; &gt; ===================================================================
> &gt; &gt; --- trunk/ecore/src/lib/ecore_x/xlib/ecore_x.c  2012-05-25 09:19:16 
> UTC
> &gt; &gt; (rev 71420) +++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x.c  
> 2012-05-25
> &gt; &gt; 10:15:27 UTC (rev 71421) @@ -1228,7 +1228,7 @@
> &gt; &gt;  _ecore_x_window_manage_error(void *data __UNUSED__)
> &gt; &gt;  {
> &gt; &gt;    if ((ecore_x_error_request_get() == X_ChangeWindowAttributes) 
> &amp;&amp;
> &gt; &gt; -       (ecore_x_error_code_get() == BadAccess))
> &gt; &gt; +       (ecore_x_error_code_get() == ECORE_X_ERROR_CODE_BAD_ACCESS))
> &gt; &gt;      _ecore_x_window_manage_failed = 1;
> &gt; &gt;  }
> &gt; &gt;
> &gt; &gt;
> &gt; &gt; Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_error.c
> &gt; &gt; ===================================================================
> &gt; &gt; --- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_error.c    2012-05-25 
> 09:19:16
> &gt; &gt; UTC (rev 71420) +++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_error.c
> &gt; &gt;  2012-05-25 10:15:27 UTC (rev 71421) @@ -69,7 +69,7 @@
> &gt; &gt;  *
> &gt; &gt;  * Return the error code from the last X error
> &gt; &gt;  */
> &gt; &gt; -EAPI int
> &gt; &gt; +EAPI Ecore_X_Error_Code
> &gt; &gt;  ecore_x_error_code_get(void)
> &gt; &gt;  {
> &gt; &gt;    return _error_code;
> &gt; &gt;
> &gt; &gt;
> &gt; &gt; 
> ------------------------------------------------------------------------------
> &gt; &gt; Live Security Virtual Conference
> &gt; &gt; Exclusive live event will cover all the ways today's security and
> &gt; &gt; threat landscape has changed and how IT managers can respond. 
> Discussions
> &gt; &gt; will include endpoint security, mobile security and the latest in 
> malware
> &gt; &gt; threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> &gt; &gt; _______________________________________________
> &gt; &gt; enlightenment-svn mailing list
> &gt; &gt; enlightenment-...@lists.sourceforge.net
> &gt; &gt; https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
> &gt;
> &gt; 
> ------------------------------------------------------------------------------
> &gt; Live Security Virtual Conference
> &gt; Exclusive live event will cover all the ways today's security and
> &gt; threat landscape has changed and how IT managers can respond. Discussions
> &gt; will include endpoint security, mobile security and the latest in malware
> &gt; threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> &gt; _______________________________________________
> &gt; enlightenment-devel mailing list
> &gt; enlightenment-devel@lists.sourceforge.net
> &gt; https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> &gt;
>
>
> --
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler)    ras...@rasterman.com
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to