Ignore:
Timestamp:
Sep 15, 2020, 9:46:48 PM (5 years ago)
Author:
bird
Message:

kash: Keep the filename around in debug builds. Added profiling of CloseHandle in debug builds, verifying that is is _slow_ when modifying (e.g. appending to) existing files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shfile.h

    r3458 r3465  
    106106    unsigned            shflags;        /**< The shell file descriptor flags. */
    107107    intptr_t            native;         /**< The native file descriptor number. */
     108#ifdef DEBUG
     109    char               *dbgname;        /**< The name of the file, if applicable, debug builds only. */
     110#  define SHFILE_DBGNAME(a) a
     111# else
     112#  define SHFILE_DBGNAME(a) NULL
     113#endif
    108114} shfile;
    109115
Note: See TracChangeset for help on using the changeset viewer.