|
Home --> Documentations --> PJLIB Reference
Go to the documentation of this file.
20 #ifndef __PJ_TYPES_H__
21 #define __PJ_TYPES_H__
71 #if defined(PJ_NATIVE_STRING_IS_UNICODE) && PJ_NATIVE_STRING_IS_UNICODE!=0
79 #if defined(PJ_NATIVE_STRING_IS_UNICODE) && PJ_NATIVE_STRING_IS_UNICODE!=0
80 # define PJ_T(literal_str) L##literal_str
82 # define PJ_T(literal_str) literal_str
98 #if defined(PJ_HAS_INT64) && PJ_HAS_INT64!=0
130 #if defined(PJ_IS_LITTLE_ENDIAN) && PJ_IS_LITTLE_ENDIAN!=0
270 #define PJ_ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
273 #define PJ_MAXINT32 0x7FFFFFFFL
278 #define PJ_MAX_OBJ_NAME 32
396 #define PJ_TIME_VAL_MSEC(t) ((t).sec * 1000 + (t).msec)
406 #define PJ_TIME_VAL_EQ(t1, t2) ((t1).sec==(t2).sec && (t1).msec==(t2).msec)
416 #define PJ_TIME_VAL_GT(t1, t2) ((t1).sec>(t2).sec || \
417 ((t1).sec==(t2).sec && (t1).msec>(t2).msec))
427 #define PJ_TIME_VAL_GTE(t1, t2) (PJ_TIME_VAL_GT(t1,t2) || \
428 PJ_TIME_VAL_EQ(t1,t2))
438 #define PJ_TIME_VAL_LT(t1, t2) (!(PJ_TIME_VAL_GTE(t1,t2)))
448 #define PJ_TIME_VAL_LTE(t1, t2) (!PJ_TIME_VAL_GT(t1, t2))
458 #define PJ_TIME_VAL_ADD(t1, t2) do { \
459 (t1).sec += (t2).sec; \
460 (t1).msec += (t2).msec; \
461 pj_time_val_normalize(&(t1)); \
473 #define PJ_TIME_VAL_SUB(t1, t2) do { \
474 (t1).sec -= (t2).sec; \
475 (t1).msec -= (t2).msec; \
476 pj_time_val_normalize(&(t1)); \
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|