VirtualBox

Changeset 3547 in kBuild for trunk/src/lib/console.h


Ignore:
Timestamp:
Jan 29, 2022 2:39:47 AM (3 years ago)
Author:
bird
Message:

lib: Changed the console-optimization wrappers to use the get_crt_codepage() function as that's more appropriate than GetConsoleCP() for use with _cputws(). Also made them avoid the heap for smaller writes that could fit into a reasonable (2KiB) stack buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/console.h

    r3188 r3547  
    4141# include <unistd.h>
    4242#endif
     43#ifdef KBUILD_OS_WINDOWS
     44# include "get_codepage.h"
     45#endif
    4346
    4447
     
    4952extern ssize_t  maybe_con_write(int fd, void const *pvBuf, size_t cbToWrite);
    5053extern size_t   maybe_con_fwrite(void const *pvBuf, size_t cbUnit, size_t cUnits, FILE *pFile);
    51 
    5254#endif
    5355
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette