fixed source code for old compilers

This commit is contained in:
hyung-hwan 2018-01-28 04:51:22 +00:00
parent 355a7cfe59
commit 789b2a36ad
4 changed files with 13 additions and 16 deletions

View File

@ -189,10 +189,10 @@ static QSE_INLINE void qse_htl_setcopier (qse_htl_t* htl, qse_htl_copier_t _copi
#define qse_htl_getcomper(htl) ((htl)->comper) #define qse_htl_getcomper(htl) ((htl)->comper)
#define qse_htl_getfreeer(htl) ((htl)->freeer) #define qse_htl_getfreeer(htl) ((htl)->freeer)
#define qse_htl_sethasher(htl,_hahser) ((htl)->hasher = _hasher) #define qse_htl_sethasher(htl,_hasher) ((htl)->hasher = (_hasher))
#define qse_htl_setcomper(htl,_comper) ((htl)->comper = _comper) #define qse_htl_setcomper(htl,_comper) ((htl)->comper = (_comper))
#define qse_htl_setfreeer(htl,_freeer) ((htl)->freeer = _freeer) #define qse_htl_setfreeer(htl,_freeer) ((htl)->freeer = (_freeer))
#define qse_htl_setcopier(htl,_copier) ((htl)->copier = _copier) #define qse_htl_setcopier(htl,_copier) ((htl)->copier = (_copier))
#endif #endif
/** /**

View File

@ -92,16 +92,13 @@ static void t1 (void)
QSE_ASSERT (qse_log_gettarget (log, QSE_NULL) == (QSE_LOG_CONSOLE | QSE_LOG_FILE | QSE_LOG_SYSLOG_REMOTE)); QSE_ASSERT (qse_log_gettarget (log, QSE_NULL) == (QSE_LOG_CONSOLE | QSE_LOG_FILE | QSE_LOG_SYSLOG_REMOTE));
} }
QSE_LOG4 (log, QSE_T("test"), QSE_LOG_DEBUG,
#if defined(QSE_HAVE_INT128_T) #if defined(QSE_HAVE_INT128_T)
QSE_T("MSG %d %I128x %#0128I128b %l20d >>"), QSE_LOG4 (log, QSE_T("test"), QSE_LOG_DEBUG, QSE_T("MSG %d %I128x %#0128I128b %l20d >>"), 10 * i , q, q, (long)45);
#elif defined(QSE_HAVE_INT64_T) #elif defined(QSE_HAVE_INT64_T)
QSE_T("MSG %d %I64x %#064I64b %l20d >>"), QSE_LOG4 (log, QSE_T("test"), QSE_LOG_DEBUG, QSE_T("MSG %d %I64x %#064I64b %l20d >>"), 10 * i , q, q, (long)45);
#else #else
QSE_T("MSG %d %I32x %#032I32b %l20d >>"), QSE_LOG4 (log, QSE_T("test"), QSE_LOG_DEBUG, QSE_T("MSG %d %I32x %#032I32b %l20d >>"), 10 * i , q, q, (long)45);
#endif #endif
10 * i , q, q, (long)45
);
} }

View File

@ -28,7 +28,7 @@ static int stop_req = 0;
qse_mtx_unlock (mtx); \ qse_mtx_unlock (mtx); \
} while(0) } while(0)
static int thr_exec (qse_thr_t* thr) static int thr_exec (qse_thr_t* thr, void* ctx)
{ {
thr_xtn_t* xtn = qse_thr_getxtn(thr); thr_xtn_t* xtn = qse_thr_getxtn(thr);

View File

@ -20,7 +20,7 @@ struct thr_xtn_t
}; };
typedef struct thr_xtn_t thr_xtn_t; typedef struct thr_xtn_t thr_xtn_t;
static int thr_func (qse_thr_t* thr) static int thr_func (qse_thr_t* thr, void* ctx)
{ {
int i = 0; int i = 0;
thr_xtn_t* xtn = qse_thr_getxtn(thr); thr_xtn_t* xtn = qse_thr_getxtn(thr);