Improve handling of psi_c_diffadd and psb_sizeof_XX
parent
adbae358e4
commit
727a99e376
@ -1,29 +1,9 @@
|
||||
#include <sys/time.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "psb_internals.h"
|
||||
|
||||
#ifdef LowerUnderscore
|
||||
#define psi_c_diffadd psi_c_diffadd_
|
||||
#endif
|
||||
#ifdef LowerDoubleUnderscore
|
||||
#define psi_c_diffadd psi_c_diffadd__
|
||||
#endif
|
||||
#ifdef LowerCase
|
||||
#define psi_c_diffadd psi_c_diffadd
|
||||
#endif
|
||||
#ifdef UpperUnderscore
|
||||
#define psi_c_diffadd PSI_C_DIFFADD_
|
||||
#endif
|
||||
#ifdef UpperDoubleUnderscore
|
||||
#define psi_c_diffadd PSI_C_DIFFADD__
|
||||
#endif
|
||||
#ifdef UpperCase
|
||||
#define psi_c_diffadd PSI_C_DIFFADD
|
||||
#endif
|
||||
|
||||
void psi_c_diffadd(char *p1, char *p2, int *ret)
|
||||
void psi_c_diffadd(void *p1, void *p2, int *ret)
|
||||
{
|
||||
*ret = (int)(p2-p1);
|
||||
*ret = (int)((char *)p2-(char *)p1);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue