|
From: Kevin's C. B. A. <kev...@pl...> - 2007-03-11 12:28:02
|
Update of /cvsroot/libteklti/libteklti/src In directory planetsaphire.com:/tmp/cvs-serv4963 Modified Files: uchar.386.c uchar.c Log Message: TEMPORARY FIX: 386 asm version of uchardup() needs reordering. Index: uchar.386.c =================================================================== RCS file: /cvsroot/libteklti/libteklti/src/uchar.386.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C 2 -d -p -r1.5 -r1.6 *** uchar.386.c 29 Oct 2005 17:12:15 -0000 1.5 --- uchar.386.c 11 Mar 2007 12:35:09 -0000 1.6 *************** static const char _char2uchar_srcnull[] *** 39,42 **** --- 39,48 ---- + #endif /* USE_386_ASM */ + + #ifdef UCHARDUP_SAFE + /** + * FIXME: This function keeps crashing the system malloc() and free(). + */ TEKLTI_DECLSPEC uchar_t * uchardup ( const uchar_t * src ) { *************** TEKLTI_DECLSPEC uchar_t * uchardup ( con *** 152,157 **** --- 158,166 ---- return; } + #endif /* UCHARDUP_SAFE */ + #ifdef USE_386_ASM + TEKLTI_DECLSPEC uchar_t * char2ucharlen ( const char * src, size_t len ) { Index: uchar.c =================================================================== RCS file: /cvsroot/libteklti/libteklti/src/uchar.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C 2 -d -p -r1.3 -r1.4 *** uchar.c 29 Oct 2005 17:12:15 -0000 1.3 --- uchar.c 11 Mar 2007 12:35:09 -0000 1.4 *************** static const char char2uchar_srcnull[] = *** 36,40 **** static const char ucharempty_uchrtofreenull[] = "POTENTIAL SEGFAULT in ucharfree: uchrtofree is NULL!\n"; #endif /* DEBUG_USE_FERROR */ ! #ifndef USE_386_ASM --- 36,45 ---- static const char ucharempty_uchrtofreenull[] = "POTENTIAL SEGFAULT in ucharfree: uchrtofree is NULL!\n"; #endif /* DEBUG_USE_FERROR */ ! ! ! /* #ifndef USE_386_ASM */ ! /* ! * FIXME: The assembly function is broken at the moment. ! */ *************** TEKLTI_DECLSPEC uchar_t * uchardup ( con *** 80,83 **** --- 85,90 ---- + #ifndef USE_386_ASM + TEKLTI_DECLSPEC uchar_t * char2ucharlen ( const char * src, size_t len ) { |