]> pd.if.org Git - pdclib/commit
* Test cleanups: surround the code for all functions by #ifndef REGTEST
authorOwen Shepherd <owen.shepherd@e43.eu>
Mon, 13 Aug 2012 20:11:29 +0000 (21:11 +0100)
committerOwen Shepherd <owen.shepherd@e43.eu>
Mon, 13 Aug 2012 20:11:29 +0000 (21:11 +0100)
commit219271fd548949abce8bd75c34dd42e519418fc4
treef107681353e73a3e0161fb64825f202030c968c0
parent1cc4363093c919f79eafac209bb5c41548d3f88f
* Test cleanups: surround the code for all functions by #ifndef REGTEST
* Don't REGTEST internal functions (it doesn't make sense)
* <stdio.h>: add _PDCLIB_fdopen, which opens a file based upon its _PDCLIB_fd_t
  file descriptor
    TODO: Should this be public or not? POSIX fdopen demonstrates utility
    TODO: Can we stop storing the file name? Is that useful?
* fopen: rewrite based upon _PDCLIB_fdopen to consolidate code
* strndup: don't REGTEST - mingw doesn't implement.
* <stddef.h>: conditional definition of wchar_t for <wchar.h>
* <wchar.h>: Add 4 simple functions for dependencies
* <_PDCLIB_aux.h>: rename _PDCLIB_ALL to _PDCLIB_EXTENSIONS
* platform/example/functions/stdio/tmpfile.c: return NULL, not 1
* Build system: SubInclude the platform directory to enable the building of
  support routines (e.g. app startup files)
* Test system: If $(CRT0) is set, link the contents of it into the tests. This
  enables the platform code to provide startup files.
40 files changed:
Jamfile
Jamrules
functions/_PDCLIB/atomax.c
functions/_PDCLIB/closeall.c
functions/_PDCLIB/digits.c
functions/_PDCLIB/errno.c
functions/_PDCLIB/filemode.c
functions/_PDCLIB/prepread.c
functions/_PDCLIB/prepwrite.c
functions/_PDCLIB/print.c
functions/_PDCLIB/scan.c
functions/_PDCLIB/strtox_main.c
functions/_PDCLIB/strtox_prelim.c
functions/stdio/_PDCLIB_fdopen.c [new file with mode: 0644]
functions/stdio/fopen.c
functions/string/strndup.c
functions/wchar/wcschr.c [new file with mode: 0644]
functions/wchar/wcscpy.c [new file with mode: 0644]
functions/wchar/wcslen.c [new file with mode: 0644]
functions/wchar/wcsrchr.c [new file with mode: 0644]
includes/stddef.h
includes/stdio.h
includes/wchar.h [new file with mode: 0644]
internals/_PDCLIB_aux.h
opt/nothread/call_once.c
opt/nothread/cnd_init.c
opt/nothread/cnd_signal.c
opt/nothread/cnd_wait.c
opt/nothread/mtx_destroy.c
opt/nothread/mtx_init.c
opt/nothread/mtx_lock.c
opt/nothread/mtx_timedlock.c
opt/nothread/mtx_trylock.c
opt/nothread/mtx_unlock.c
opt/nothread/thrd_yield.c
opt/nothread/tss_create.c
opt/nothread/tss_delete.c
opt/nothread/tss_get.c
opt/nothread/tss_set.c
platform/example/functions/stdio/tmpfile.c