00001 #ifndef __KAL_ARG_H__ 00002 #define __KAL_ARG_H__ 00003 00004 typedef unsigned long kal_arg_t; 00005 00006 static inline int kal_arg_int(kal_arg_t arg) { 00007 return (int) arg; 00008 } 00009 00010 static inline long kal_arg_long(kal_arg_t arg) { 00011 return (long) arg; 00012 } 00013 00014 static inline unsigned long kal_arg_ulong(kal_arg_t arg) { 00015 return (unsigned long) arg; 00016 } 00017 00018 static inline void * kal_arg_voidptr(kal_arg_t arg) { 00019 return (void *) arg; 00020 } 00021 00022 static inline kal_arg_t kal_int_arg(int i) { 00023 return (kal_arg_t) i; 00024 } 00025 00026 static inline kal_arg_t kal_long_arg(long i) { 00027 return (kal_arg_t) i; 00028 } 00029 00030 static inline kal_arg_t kal_ulong_arg(unsigned long i) { 00031 return (kal_arg_t) i; 00032 } 00033 00034 static inline kal_arg_t kal_voidptr_arg(void *i) { 00035 return (kal_arg_t) i; 00036 } 00037 00038 #endif