Bug fix. Some awk interpreters seem to have problems with `\w+'.
This commit is contained in:
@@ -32,7 +32,7 @@ function output(line) {
|
|||||||
list = params[param];
|
list = params[param];
|
||||||
type = params[param];
|
type = params[param];
|
||||||
sub(/\(.*/, "", type);
|
sub(/\(.*/, "", type);
|
||||||
sub(/^\w+\(/, "", list); sub(/\)$/, "", list);
|
sub(/^.*\(/, "", list); sub(/\)$/, "", list);
|
||||||
|
|
||||||
string = string" (\""type"\"";
|
string = string" (\""type"\"";
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ function output(line) {
|
|||||||
list = params[param];
|
list = params[param];
|
||||||
type = params[param];
|
type = params[param];
|
||||||
sub(/\(.*/, "", type);
|
sub(/\(.*/, "", type);
|
||||||
sub(/^\w+\(/, "", list); sub(/\)$/, "", list);
|
sub(/^.*\(/, "", list); sub(/\)$/, "", list);
|
||||||
count = split (list, fields, /,/);
|
count = split (list, fields, /,/);
|
||||||
for (field = 1; field <= count; field++) {
|
for (field = 1; field <= count; field++) {
|
||||||
if (param_decl == "")
|
if (param_decl == "")
|
||||||
|
|||||||
Reference in New Issue
Block a user