sh_utils.h File Reference

Go to the source code of this file.

Defines

#define EXTERN_C
#define memzero(x)   memset(&(x), 0, sizeof(x))
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
#define boolstr_true(x)   ((x) ? "true" : "false")
#define boolstr_yes(x)   ((x) ? "yes" : "no")
#define boolstr_on(x)   ((x) ? "on" : "off")
#define IF_SYMBIAN_EXPR(x, y)   (y)
#define IF_SYMBIAN(x, y)   { y ; }
#define WHEN_SYMBIAN(stmt)
#define UNLESS_SYMBIAN(stmt)   { stmt ; }
#define TRUE_ON_SYMBIAN   0
#define DEFINE_FOR_SYMBIAN_CXX(def)
#define WHEN_SYMBIAN_CXX(stmt)
#define UNLESS_SYMBIAN_CXX(stmt)   { stmt ; }

Functions

EXTERN_C char * get_stack_info_string ()
EXTERN_C char * utf8ToJsonString (const char *text)

Define Documentation

#define boolstr_on (  )     ((x) ? "on" : "off")

Definition at line 23 of file sh_utils.h.

Referenced by CFlightModeObserver::HandleFlightMode().

#define boolstr_true (  )     ((x) ? "true" : "false")

Definition at line 21 of file sh_utils.h.

#define boolstr_yes (  )     ((x) ? "yes" : "no")

Definition at line 22 of file sh_utils.h.

Referenced by log_uploads_allowed(), and netpos_allowed_update_board().

#define DEFINE_FOR_SYMBIAN_CXX ( def   ) 

Definition at line 64 of file sh_utils.h.

#define EXTERN_C

Definition at line 12 of file sh_utils.h.

#define IF_SYMBIAN ( x,
 )     { y ; }

Definition at line 53 of file sh_utils.h.

#define IF_SYMBIAN_EXPR ( x,
 )     (y)

Definition at line 52 of file sh_utils.h.

#define MAX ( a,
 )     (((a) > (b)) ? (a) : (b))

Definition at line 18 of file sh_utils.h.

Referenced by zero_or_max().

#define memzero (  )     memset(&(x), 0, sizeof(x))

Definition at line 15 of file sh_utils.h.

#define TRUE_ON_SYMBIAN   0

Definition at line 56 of file sh_utils.h.

#define UNLESS_SYMBIAN ( stmt   )     { stmt ; }

Definition at line 55 of file sh_utils.h.

Referenced by er_show_error_msg().

#define UNLESS_SYMBIAN_CXX ( stmt   )     { stmt ; }

Definition at line 66 of file sh_utils.h.

#define WHEN_SYMBIAN ( stmt   ) 

Definition at line 54 of file sh_utils.h.

Referenced by ac_AppContext_destroy(), and er_show_error_msg().

#define WHEN_SYMBIAN_CXX ( stmt   ) 

Definition at line 65 of file sh_utils.h.


Function Documentation

EXTERN_C char* get_stack_info_string (  ) 

Definition at line 37 of file utilities_cxx.cpp.

References gx_strdup().

EXTERN_C char* utf8ToJsonString ( const char *  text  ) 

Definition at line 34 of file utilities.c.


ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:50:01 2011 by Doxygen 1.6.1