| OLD | NEW |
| 1 #!/usr/bin/awk -f | 1 #!/usr/bin/awk -f |
| 2 # | 2 # |
| 3 # This AWK script scans the opcodes.h file (which is itself generated by | 3 # This AWK script scans the opcodes.h file (which is itself generated by |
| 4 # another awk script) and uses the information gleaned to create the | 4 # another awk script) and uses the information gleaned to create the |
| 5 # opcodes.c source file. | 5 # opcodes.c source file. |
| 6 # | 6 # |
| 7 # Opcodes.c contains strings which are the symbolic names for the various | 7 # Opcodes.c contains strings which are the symbolic names for the various |
| 8 # opcodes used by the VDBE. These strings are used when disassembling a | 8 # opcodes used by the VDBE. These strings are used when disassembling a |
| 9 # VDBE program during tracing or as a result of the EXPLAIN keyword. | 9 # VDBE program during tracing or as a result of the EXPLAIN keyword. |
| 10 # | 10 # |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 sub("OP_","",$2) | 22 sub("OP_","",$2) |
| 23 i++ | 23 i++ |
| 24 printf " /* %3d */ \"%s\",\n", $3, $2 | 24 printf " /* %3d */ \"%s\",\n", $3, $2 |
| 25 } | 25 } |
| 26 END { | 26 END { |
| 27 print " };" | 27 print " };" |
| 28 print " return azName[i];" | 28 print " return azName[i];" |
| 29 print "}" | 29 print "}" |
| 30 print "#endif" | 30 print "#endif" |
| 31 } | 31 } |
| OLD | NEW |