forked from enlightenment/efl
+ Fix some english typos
+ Fix some macros that need an expression and there are no attributes support, just pass the expression as is SVN revision: 38792
This commit is contained in:
parent
1caa0562ad
commit
40d9cab09a
|
@ -110,8 +110,8 @@
|
||||||
# define EINA_SCANF(fmt, arg)
|
# define EINA_SCANF(fmt, arg)
|
||||||
# define EINA_FORMAT(fmt)
|
# define EINA_FORMAT(fmt)
|
||||||
# define EINA_CONST
|
# define EINA_CONST
|
||||||
# define EINA_UNLIKELY(exp)
|
# define EINA_UNLIKELY(exp) exp
|
||||||
# define EINA_LIKELY(exp)
|
# define EINA_LIKELY(exp) exp
|
||||||
# endif
|
# endif
|
||||||
# else /* no __GNUC__ */
|
# else /* no __GNUC__ */
|
||||||
# define EINA_WARN_UNUSED_RESULT
|
# define EINA_WARN_UNUSED_RESULT
|
||||||
|
@ -122,8 +122,8 @@
|
||||||
# define EINA_SCANF(fmt, arg)
|
# define EINA_SCANF(fmt, arg)
|
||||||
# define EINA_FORMAT(fmt)
|
# define EINA_FORMAT(fmt)
|
||||||
# define EINA_CONST
|
# define EINA_CONST
|
||||||
# define EINA_UNLIKELY(exp)
|
# define EINA_UNLIKELY(exp) exp
|
||||||
# define EINA_LIKELY(exp)
|
# define EINA_LIKELY(exp) exp
|
||||||
# endif
|
# endif
|
||||||
#else /* no HAVE___ATTRIBUTE__ */
|
#else /* no HAVE___ATTRIBUTE__ */
|
||||||
# define EINA_WARN_UNUSED_RESULT
|
# define EINA_WARN_UNUSED_RESULT
|
||||||
|
@ -134,8 +134,8 @@
|
||||||
# define EINA_SCANF(fmt, arg)
|
# define EINA_SCANF(fmt, arg)
|
||||||
# define EINA_FORMAT(fmt)
|
# define EINA_FORMAT(fmt)
|
||||||
# define EINA_CONST
|
# define EINA_CONST
|
||||||
# define EINA_UNLIKELY(exp)
|
# define EINA_UNLIKELY(exp) exp
|
||||||
# define EINA_LIKELY(exp)
|
# define EINA_LIKELY(exp) exp
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@
|
||||||
* If you compiled Eina without debug mode, after executing that
|
* If you compiled Eina without debug mode, after executing that
|
||||||
* program, you will see only 1 message (the argument being
|
* program, you will see only 1 message (the argument being
|
||||||
* negative). Why ? These macros are just wrappers around
|
* negative). Why ? These macros are just wrappers around
|
||||||
* eina_error_print(). This function only dysplays messages if the
|
* eina_error_print(). This function only displays messages if the
|
||||||
* current error level is lesser or equal than the one used by
|
* current error level is lesser or equal than the one used by
|
||||||
* eina_error_print(). By default, the current error level is
|
* eina_error_print(). By default, the current error level is
|
||||||
* #EINA_ERROR_LEVEL_ERR (in non debug mode), and the macro uses
|
* #EINA_ERROR_LEVEL_ERR (in non debug mode), and the macro uses
|
||||||
|
@ -465,7 +465,7 @@ static const char *_colors[EINA_ERROR_LEVELS] = {
|
||||||
* }
|
* }
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* Compile this code with the following commant:
|
* Compile this code with the following command:
|
||||||
*
|
*
|
||||||
* @code
|
* @code
|
||||||
* gcc -Wall -o test_eina_error test_eina.c `pkg-config --cflags --libs eina`
|
* gcc -Wall -o test_eina_error test_eina.c `pkg-config --cflags --libs eina`
|
||||||
|
@ -520,7 +520,7 @@ EAPI Eina_Error EINA_ERROR_OUT_OF_MEMORY = 0;
|
||||||
* #EINA_ERROR_LEVEL_INFO and #EINA_ERROR_LEVEL_DBG. That value can
|
* #EINA_ERROR_LEVEL_INFO and #EINA_ERROR_LEVEL_DBG. That value can
|
||||||
* also be set later with eina_error_log_level_set().
|
* also be set later with eina_error_log_level_set().
|
||||||
*
|
*
|
||||||
* If you call explicitely this function and once the error subsystem
|
* If you call explicitly this function and once the error subsystem
|
||||||
* is not used anymore, then eina_error_shutdown() must be called to
|
* is not used anymore, then eina_error_shutdown() must be called to
|
||||||
* shut down the error system.
|
* shut down the error system.
|
||||||
*/
|
*/
|
||||||
|
@ -581,7 +581,7 @@ EAPI int eina_error_shutdown(void)
|
||||||
*
|
*
|
||||||
* This function stores in a list the error message described by
|
* This function stores in a list the error message described by
|
||||||
* @p msg. The returned value is a unique identifier greater or equal
|
* @p msg. The returned value is a unique identifier greater or equal
|
||||||
* than 1. The description can be retrive later by passing to
|
* than 1. The description can be retrieve later by passing to
|
||||||
* eina_error_msg_get() the returned value.
|
* eina_error_msg_get() the returned value.
|
||||||
*/
|
*/
|
||||||
EAPI Eina_Error eina_error_msg_register(const char *msg)
|
EAPI Eina_Error eina_error_msg_register(const char *msg)
|
||||||
|
@ -666,7 +666,7 @@ EAPI void eina_error_set(Eina_Error err)
|
||||||
* @p fmt, which is a formatted string, followed by optional arguments
|
* @p fmt, which is a formatted string, followed by optional arguments
|
||||||
* that can be converted (like with printf). If @p level is strictly
|
* that can be converted (like with printf). If @p level is strictly
|
||||||
* larger than the current error level, that function returns
|
* larger than the current error level, that function returns
|
||||||
* immediatly, otherwise it prints all the errors up to the current
|
* immediately, otherwise it prints all the errors up to the current
|
||||||
* error level. The current error level can be changed with
|
* error level. The current error level can be changed with
|
||||||
* eina_error_log_level_set(). See also eina_error_init() for more
|
* eina_error_log_level_set(). See also eina_error_init() for more
|
||||||
* informations.
|
* informations.
|
||||||
|
|
Loading…
Reference in New Issue