Menu ▾ ▴

Commit [r468]  Maximize  Restore  History

Commit of Torsten on 2004-05-28

uaesupp.c

- removed my implementation of my_strdup(); it improved the malloc() debugging in so far that I could
see the strings were allocated by use of my_strdup(), but not where in the code, since it always
showed me the line in my_strdup() that contained the malloc() call, which wasn't helpful

uae2fell.h

- this macro does the trick: #define my_strdup(a) strcpy(malloc(strlen(a)+1), a)
since it can be used inline the debugger now shows the exact line where those strings were allocated,
not the best coding style, which is why I online use it when _FELLOW_DEBUG_CRT_MALLOC is set,
otherwise the standard CRT strdup is used

carfesh 2004-05-28

changed /branches/conversion_to_c/fellow/SRC/WIN32/UAE/C/FILESYS.C
changed /branches/conversion_to_c/fellow/SRC/WIN32/UAE/C/fsdb.c
changed /trunk/fellow/SRC/WIN32/UAE/C/FILESYS.C
changed /trunk/fellow/SRC/WIN32/UAE/C/fsdb.c
/branches/conversion_to_c/fellow/SRC/WIN32/UAE/C/FILESYS.C Diff Switch to side-by-side view
Loading...
/branches/conversion_to_c/fellow/SRC/WIN32/UAE/C/fsdb.c Diff Switch to side-by-side view
Loading...
/trunk/fellow/SRC/WIN32/UAE/C/FILESYS.C Diff Switch to side-by-side view
Loading...
/trunk/fellow/SRC/WIN32/UAE/C/fsdb.c Diff Switch to side-by-side view
Loading...