summaryrefslogtreecommitdiff
path: root/sample/mkproto.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/mkproto.rb')
-rw-r--r--sample/mkproto.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/mkproto.rb b/sample/mkproto.rb
index 3423a15905..e1d49be3e3 100644
--- a/sample/mkproto.rb
+++ b/sample/mkproto.rb
@@ -1,6 +1,6 @@
$/ = nil
-while gets()
- if /^((void|VALUE|int|char *\*|ID|struct [\w_]+ *\*|st_table *\*) *)?\n([\w\d_]+)\(.*\)\n\s*((.+;\n)*)\{/
+while line = gets()
+ if /^((void|VALUE|int|char *\*|ID|struct [\w_]+ *\*|st_table *\*) *)?\n([\w\d_]+)\(.*\)\n\s*((.+;\n)*)\{/ =~ line
$_ = $'
printf "%s %s(", $2, $3
args = []