Annotation of gpl/axl/src/axl_config.h, revision 1.1.1.2

1.1       misho       1: /*
                      2:  * Axl Library axl_config.h
                      3:  * Platform dependant definitions.
                      4:  *
                      5:  * This is a generated file.  Please modify 'configure.in'
                      6:  */
                      7: 
                      8: #ifndef __AXL_CONFIG_H__
                      9: #define __AXL_CONFIG_H__
                     10: 
                     11: /**
                     12:  * \addtogroup axl_decl_module
                     13:  * @{
                     14:  */
                     15: 
                     16: /**
                     17:  * @brief Allows to convert integer value (including constant values)
                     18:  * into a pointer representation.
                     19:  *
                     20:  * Use the oposite function to restore the value from a pointer to a
                     21:  * integer: \ref PTR_TO_INT.
                     22:  *
                     23:  * @param integer The integer value to cast to pointer.
                     24:  *
                     25:  * @return A \ref axlPointer reference.
                     26:  */
1.1.1.2 ! misho      27: #define INT_TO_PTR(integer)   ((axlPointer) (long) ((int)integer))
1.1       misho      28: 
                     29: /**
                     30:  * @brief Allows to convert a pointer reference (\ref axlPointer),
                     31:  * which stores an integer that was stored using \ref INT_TO_PTR.
                     32:  *
                     33:  * Use the oposite function to restore the pointer value stored in the
                     34:  * integer value.
                     35:  *
                     36:  * @param ptr The pointer to cast to a integer value.
                     37:  *
                     38:  * @return A int value.
                     39:  */
1.1.1.2 ! misho      40: #define PTR_TO_INT(ptr) ((int) (long) (ptr))
1.1       misho      41: 
                     42: /**
                     43:  * @brief Allows to get current platform configuration. This is used
                     44:  * by Axl library but could be used by applications built on top of
                     45:  * Axl to change its configuration based on the platform information.
                     46:  */
                     47: #define AXL_OS_UNIX (1)
                     48: 
                     49: /**
                     50:  * @internal Allows to now if the platform support vasprintf
                     51:  * function. Do not use this macro as it is supposed to be for
                     52:  * internal use.
                     53:  */
                     54: #define AXL_HAVE_VASPRINTF (1)
                     55: 
                     56: /* @} */
                     57: 
                     58: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>