X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fstdinit.c;h=f83bc4fd236ea7c566e6442b0117449c4516987c;hb=67cb1ca6543f8c00240597d140675bd1a66df90f;hp=24285f7031f878b0d3e969c3b950a802d0e311ea;hpb=6338b2fdd24c05facc84e9a9a6ba605a9fc61f26;p=pdclib.old diff --git a/platform/example/functions/_PDCLIB/stdinit.c b/platform/example/functions/_PDCLIB/stdinit.c index 24285f7..f83bc4f 100644 --- a/platform/example/functions/_PDCLIB/stdinit.c +++ b/platform/example/functions/_PDCLIB/stdinit.c @@ -18,6 +18,8 @@ /* In a POSIX system, stdin / stdout / stderr are equivalent to the (int) file descriptors 0, 1, and 2 respectively. */ +#if 0 +/* FIXME: Disabled for initial stdio.h development. */ /* TODO: This is proof-of-concept, requires finetuning. */ static struct _PDCLIB_file_t _PDCLIB_sin = { 0, { 0, 0 }, 0, 0, 0, /* mbstate, */ 0 }; static struct _PDCLIB_file_t _PDCLIB_sout = { 1, { 0, 0 }, 0, 0, 0, /* mbstate, */ 0 }; @@ -26,6 +28,7 @@ static struct _PDCLIB_file_t _PDCLIB_serr = { 2, { 0, 0 }, 0, 0, 0, /* mbstate, struct _PDCLIB_file_t * stdin = &_PDCLIB_sin; struct _PDCLIB_file_t * stdout = &_PDCLIB_sout; struct _PDCLIB_file_t * stderr = &_PDCLIB_serr; +#endif #endif