75897234be
FossilOrigin-Name: 6f3655f79f9b6fc9fb7baaa10a7e0f2b6a512dfa
13 lines
239 B
Awk
13 lines
239 B
Awk
# Run this script on sqliteVdbe.h to renumber the opcodes sequentially.
|
|
#
|
|
BEGIN { cnt = 1 }
|
|
/^#define OP_MAX/ {
|
|
printf "#define %-20s %3d\n",$2, cnt-1
|
|
next
|
|
}
|
|
/^#define OP_/ {
|
|
printf "#define %-20s %3d\n",$2, cnt++
|
|
next
|
|
}
|
|
{ print }
|