MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / clearTempFile

Function clearTempFile

modules/dasSQLITE/sqlite/shell.c:21538–21544  ·  view source on GitHub ↗

** Try to delete the temporary file (if there is one) and free the ** memory used to hold the name of the temp file. */

Source from the content-addressed store, hash-verified

21536** memory used to hold the name of the temp file.
21537*/
21538static void clearTempFile(ShellState *p){
21539 if( p->zTempFile==0 ) return;
21540 if( p->doXdgOpen ) return;
21541 if( shellDeleteFile(p->zTempFile) ) return;
21542 sqlite3_free(p->zTempFile);
21543 p->zTempFile = 0;
21544}
21545
21546/*
21547** Create a new temp file name with the given suffix.

Callers 4

newTempFileFunction · 0.85
do_meta_commandFunction · 0.85
process_inputFunction · 0.85
wmainFunction · 0.85

Calls 1

shellDeleteFileFunction · 0.85

Tested by

no test coverage detected