2000-05-29 18:26:00 +04:00
|
|
|
# Read the sqliteVdbe.h file and generate a table of opcode names.
|
|
|
|
#
|
|
|
|
BEGIN {
|
|
|
|
printf "static char *zOpName[] = { 0,\n"
|
|
|
|
n = 0
|
|
|
|
}
|
|
|
|
/^#define OP_MAX/ {
|
|
|
|
next
|
|
|
|
}
|
|
|
|
/^#define OP_/ {
|
|
|
|
name = "\"" substr($2,4) "\","
|
|
|
|
if( n<3 ){
|
2001-04-04 15:48:57 +04:00
|
|
|
printf " %-19s", name
|
2000-05-29 18:26:00 +04:00
|
|
|
n++
|
|
|
|
} else {
|
|
|
|
printf " %s\n", name
|
|
|
|
n = 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
END {
|
|
|
|
if( n ){ printf "\n" }
|
|
|
|
printf "};\n"
|
|
|
|
}
|