1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

shell.c.in: use eputz/oputz() instead of eputf/oputf() where appropriate to avoid compilation errors in -std=c99 mode (namely wasm builds).

FossilOrigin-Name: 9ef8317faebc29d016bdf2e8c678fb21ca2cfa95272f1f18b461fcaf0e220ac5
This commit is contained in:
stephan
2024-08-25 11:59:29 +00:00
parent cc902fd25e
commit 87ebadbf4e
3 changed files with 13 additions and 13 deletions

View File

@ -283,7 +283,7 @@ INCLUDE ../ext/consio/console_io.c
#else
/* For Fiddle, all console handling and emit redirection is omitted. */
/* These next 3 macros are for emitting formatted output. When complaints
* from the WASM build are issued for non-formatted output, (when a mere
* from the WASM build are issued for non-formatted output, when a mere
* string literal is to be emitted, the ?putz(z) forms should be used.
* (This permits compile-time checking of format string / argument mismatch.)
*/
@ -11070,11 +11070,11 @@ static int do_meta_command(char *zLine, ShellState *p){
}
if( jj>=ArraySize(aLabel) ){
eputf("Error: no such optimization: \"%s\"\n", zLabel);
eputf("Should be one of:");
eputz("Should be one of:");
for(jj=0; jj<ArraySize(aLabel); jj++){
eputf(" %s", aLabel[jj].zLabel);
}
eputf("\n");
eputz("\n");
rc = 1;
goto meta_command_exit;
}
@ -11091,9 +11091,9 @@ static int do_meta_command(char *zLine, ShellState *p){
curOpt = ~newOpt;
}
if( newOpt==0 ){
oputf("+All\n");
oputz("+All\n");
}else if( newOpt==0xffffffff ){
oputf("-All\n");
oputz("-All\n");
}else{
int jj;
for(jj=0; jj<ArraySize(aLabel); jj++){