mirror of
https://github.com/sqlite/sqlite.git
synced 2024-11-28 07:38:14 +01:00
b327f77358
Ticket #940. (CVS 2005) FossilOrigin-Name: 4d0f29d54c0ccb153abd77d9b62b6461ec1e978f
23 lines
664 B
Awk
23 lines
664 B
Awk
#!/usr/bin/awk -f
|
|
#
|
|
# This AWK script scans the opcodes.h file (which is itself generated by
|
|
# another awk script) and uses the information gleaned to create the
|
|
# opcodes.c source file.
|
|
#
|
|
# Opcodes.c contains strings which are the symbolic names for the various
|
|
# opcodes used by the VDBE. These strings are used when disassembling a
|
|
# VDBE program during tracing or as a result of the EXPLAIN keyword.
|
|
#
|
|
BEGIN {
|
|
print "/* Automatically generated. Do not edit */"
|
|
print "/* See the mkopcodec.h script for details. */"
|
|
print "const char *sqlite3OpcodeNames[] = { \"?\","
|
|
}
|
|
/^#define OP_/ {
|
|
sub("OP_","",$2)
|
|
print " \"" $2 "\","
|
|
}
|
|
END {
|
|
print "};"
|
|
}
|