Ignore:
Timestamp:
Nov 1, 1999, 12:57:09 AM (26 years ago)
Author:
bird
Message:

Updated option/argument handling.
Corrected a few bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/misc/vprintf.c

    r1467 r1535  
    1 /* $Id: vprintf.c,v 1.2 1999-10-27 02:03:00 bird Exp $
     1/* $Id: vprintf.c,v 1.3 1999-10-31 23:57:07 bird Exp $
    22 *
    33 * vprintf and printf
     
    3636    #include <builtin.h>
    3737    #include "options.h"
     38    #include "Yield.h"
    3839#endif
    3940
     
    215216{
    216217    #ifdef RING0
    217         if (options.fQuiet)
     218        if (!options.fLogging)
    218219            return 0;
    219220    #else
     
    413414
    414415    #ifdef RING0
    415         if (options.fQuiet)
     416        if (!options.fLogging)
    416417            return 0;
    417418    #endif
     
    432433
    433434    #ifdef RING0
    434         if (options.fQuiet)
     435        if (!options.fLogging)
    435436            return 0;
    436437    #endif
     
    450451
    451452    #ifdef RING0
    452         if (options.fQuiet)
     453        if (!options.fLogging)
    453454            return 0;
    454455    #endif
     
    490491            while (!(_inp(options.usCom + 5) & 0x20));  /* Waits for the port to be ready. */
    491492            _outp(options.usCom, ch);                   /* Put the char. */
     493            Yield();
    492494        #else
    493495            DosWrite(1, (void*)&ch, 1, &ulWrote);
     
    507509static char *strout(char *psz, signed cchMax)
    508510{
     511    int cchYield = 0;
    509512    while (cchMax > 0 && *psz != '\0')
    510513    {
     
    536539                while (!(_inp(options.usCom + 5) & 0x20));  /* Waits for the port to be ready. */
    537540                _outp(options.usCom, chNewLine);            /* Put the char. */
     541                cchYield ++;
    538542            #else
    539543                DosWrite(1, (void*)&chReturn, 1, &ul);
     
    550554        psz += cch;
    551555        cchMax -= cch;
     556        cchYield += cch;
     557        if (cchYield > 3)
     558            if (Yield())
     559                cchYield = 0;
    552560    }
    553561    return psz;
Note: See TracChangeset for help on using the changeset viewer.