aboutsummaryrefslogtreecommitdiffstats
path: root/funcname1.awk
diff options
context:
space:
mode:
authorAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-08 05:14:08 +0000
committerAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-08 05:14:08 +0000
commit68a07bf03b7624c9924065cce9ffa45497225834 (patch)
treec2adb06a909a8594445e4a3f8587c4bad46e3ecd /funcname1.awk
downloadw3m-68a07bf03b7624c9924065cce9ffa45497225834.tar.gz
w3m-68a07bf03b7624c9924065cce9ffa45497225834.zip
Initial revision
Diffstat (limited to 'funcname1.awk')
-rw-r--r--funcname1.awk10
1 files changed, 10 insertions, 0 deletions
diff --git a/funcname1.awk b/funcname1.awk
new file mode 100644
index 0000000..343cf48
--- /dev/null
+++ b/funcname1.awk
@@ -0,0 +1,10 @@
+BEGIN { n=0 }
+/^#/ {next}
+{
+ if (cmd[$2] == "") {
+ print "#define FUNCNAME_" $2 " " n;
+ cmd[$2] = n;
+ }
+ n++;
+}
+