Commit cb12bdd8 authored by Nils Goroll's avatar Nils Goroll

vmodtool: fix first argument starting on new line

Fixes issue reported by @carlosabalde in #1976
parent c4183dc5
......@@ -288,7 +288,7 @@ class prototype(object):
s = s[i:].strip()
assert s[0] == "("
assert s[-1] == ")"
s = s[1:-1]
s = s[1:-1].lstrip()
self.args = []
while len(s) > 0:
a,s = arg(s)
......
......@@ -94,7 +94,8 @@ $Function VOID rot52(HTTP hdr)
Encrypt the HTTP header with quad-ROT13 encryption,
(this is approx 33% better than triple-DES).
$Function STRING argtest(STRING one, REAL two=2, STRING three="3",
$Function STRING argtest(
STRING one, REAL two=2, STRING three="3",
STRING comma=",", INT four=4)
$Function INT vre_limit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment