diff options
| author | Wez Furlong <wez@php.net> | 2005-02-27 05:20:19 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2005-02-27 05:20:19 +0000 |
| commit | ae5649598dcbb3b3b105344452c782bf0f289739 (patch) | |
| tree | e03893cec670b02478808f8913d6b4148455ec2c /ext/pdo_sqlite/sqlite/mkopcodec.awk | |
| parent | 58f61a16eea562cfed04c19cc319a608b2e9f345 (diff) | |
| download | php-git-ae5649598dcbb3b3b105344452c782bf0f289739.tar.gz | |
upgrade bundled sqlite to sqlite 3.1.3
Diffstat (limited to 'ext/pdo_sqlite/sqlite/mkopcodec.awk')
| -rw-r--r-- | ext/pdo_sqlite/sqlite/mkopcodec.awk | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ext/pdo_sqlite/sqlite/mkopcodec.awk b/ext/pdo_sqlite/sqlite/mkopcodec.awk index 6119272bd7..bf6bfbeb37 100644 --- a/ext/pdo_sqlite/sqlite/mkopcodec.awk +++ b/ext/pdo_sqlite/sqlite/mkopcodec.awk @@ -10,13 +10,19 @@ # BEGIN { print "/* Automatically generated. Do not edit */" - print "/* See the mkopcodec.h script for details. */" + print "/* See the mkopcodec.awk script for details. */" + printf "#if !defined(SQLITE_OMIT_EXPLAIN)" + printf " || !defined(NDEBUG)" + printf " || defined(VDBE_PROFILE)" + print " || defined(SQLITE_DEBUG)" print "const char *const sqlite3OpcodeNames[] = { \"?\"," } -/^#define OP_/ { +/define OP_/ { sub("OP_","",$2) - print " \"" $2 "\"," + i++ + printf " /* %3d */ \"%s\",\n", $3, $2 } END { print "};" + print "#endif" } |
