]> pd.if.org Git - pdclib/commitdiff
Status review.
authorsolar <unknown>
Sun, 21 Nov 2010 12:17:15 +0000 (12:17 +0000)
committersolar <unknown>
Sun, 21 Nov 2010 12:17:15 +0000 (12:17 +0000)
functions/_PDCLIB/print.c
functions/stdio/fgetpos.c
functions/stdio/fsetpos.c
functions/stdio/ftell.c
functions/stdio/fwrite.c
functions/stdio/puts.c

index 46c00d9eeb60e2ea88e392d12423eeb7bff49fe6..8f019796c757342a5610e29e6e92f575d01d3daa 100644 (file)
@@ -42,7 +42,6 @@
    i - pointer to number of characters already delivered in this call
    n - pointer to maximum number of characters to be delivered in this call
    s - the buffer into which the character shall be delivered
-   TODO: ref. fputs() for a better way to buffer handling
 */
 #define DELIVER( x ) \
 do { \
index 5d90382c25d8d71bf491bbf933d4422bd717c0b2..0d5de428280995afc9a63f3f0934b434274faa57 100644 (file)
@@ -14,6 +14,7 @@ int fgetpos( struct _PDCLIB_file_t * _PDCLIB_restrict stream, struct _PDCLIB_fpo
 {
     pos->offset = stream->pos.offset + stream->bufidx - stream->ungetidx;
     pos->status = stream->pos.status;
+    /* TODO: Add mbstate. */
     return 0;
 }
 
index 4820f73b3ddf89b0d2014bd3a25cc9fccdabde20..1c39c498071abb9a24ab19edc9ec76f1b43be789 100644 (file)
@@ -25,6 +25,7 @@ int fsetpos( struct _PDCLIB_file_t * stream, const struct _PDCLIB_fpos_t * pos )
         return EOF;
     }
     stream->pos.status = pos->status;
+    /* TODO: Add mbstate. */
     return 0;
 }
 
index 0bf42f50698fccfacec7f1e6e8d51e9cc22ab886..09dd17fe189113739befd74e293b4229b57b8738 100644 (file)
@@ -13,7 +13,7 @@
 
 long int ftell( struct _PDCLIB_file_t * stream )
 {
-    /* TODO: A bit too fuzzy in the head now. stream->ungetidx should be in here
+    /* FIXME: A bit too fuzzy in the head now. stream->ungetidx should be in here
              somewhere.
     */
     if ( stream->pos.offset > ( LONG_MAX - stream->bufidx ) )
index 3c40186500a88ceac20eed0e02989a2d5ab7d113..ca439674045b1c31ed1b1bda6bf8296b46545755 100644 (file)
@@ -27,7 +27,6 @@ size_t fwrite( const void * _PDCLIB_restrict ptr, size_t size, size_t nmemb, str
     {
         for ( size_t size_i = 0; size_i < size; ++size_i )
         {
-            /* TODO: Should line-buffered streams be flushed on '\n' or system EOL? */
             if ( ( stream->buffer[ stream->bufidx++ ] = ((char*)ptr)[ nmemb_i * size + size_i ] ) == '\n' )
             {
                 /* Remember last newline, in case we have to do a partial line-buffered flush */
index a90e07863fbdb26185b9ae2827da22eed895b054..e28a2b8c0595fb064ecd099a6034ef8168834d08 100644 (file)
@@ -30,6 +30,9 @@ int puts( const char * s )
             }
         }
     }
+    /* FIXME: Think-o. '\n' is lineend, conversion to platform-specific
+       tales place only for text streams.
+    */
     s = _PDCLIB_eol;
     while ( *s != '\0' )
     {