Overview
Comment: | Fix kvtest.c so that it compiles using MSVC. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | kvtest |
Files: | files | file ages | folders |
SHA1: | e2bbeae7e77cde531885ca492494a02e5322154d |
User & Date: | drh 2016-12-29 16:18:35 |
Context
2016-12-29
| ||
16:49 | Add more detail to the header command to further explain how to compile and use the kvtest.c utility. Closed-Leaf check-in: 55d29839 user: drh tags: kvtest | |
16:18 | Fix kvtest.c so that it compiles using MSVC. check-in: e2bbeae7 user: drh tags: kvtest | |
15:26 | In kvtest.c: do not show the --cache-size setting on fopen() runs. Show progress for the (potentially slow) "export" command. check-in: b0f58d24 user: drh tags: kvtest | |
Changes
Changes to test/kvtest.c.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
;
/* Reference resources used */
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <assert.h>
#include <string.h>
#include "sqlite3.h"
/*
** Show thqe help text and quit.
*/
static void showHelp(void){
fprintf(stdout, "%s", zHelp);
exit(1);
|
< > > > > > > > > > > > |
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
; /* Reference resources used */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <assert.h> #include <string.h> #include "sqlite3.h" #ifndef _WIN32 # include <unistd.h> #else /* Provide Windows equivalent for the needed parts of unistd.h */ # include <io.h> # define R_OK 2 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) # define access _access #endif /* ** Show thqe help text and quit. */ static void showHelp(void){ fprintf(stdout, "%s", zHelp); exit(1); |