For arrays, make a gh_list out of it and add this list to the returned

1998-12-09  Martin Baulig  <martin@home-of-linux.org>

	* guile.awk: For arrays, make a gh_list out of it and add this list
	to the returned list instead of adding all array fields there.
This commit is contained in:
Martin Baulig
1998-12-09 09:41:32 +00:00
committed by Martin Baulig
parent 2f20f2b7ff
commit ee9812e9af
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
1998-12-09 Martin Baulig <martin@home-of-linux.org>
* guile.awk: For arrays, make a gh_list out of it and add this list
to the returned list instead of adding all array fields there.
1998-12-08 Martin Baulig <martin@home-of-linux.org>
* guile.awk (glibtop-get-sysdeps): New guile function.

View File

@@ -105,9 +105,11 @@ function make_output(line) {
fields[field] = field_parts[1];
sub(/\]/, "", field_parts[2]);
number = field_parts[2];
output = output"gh_list\n\t\t\t(";
for (nr = 0; nr < number; nr++) {
output = output""convert[type]" ("feature"."fields[field]" ["nr"]),\n\t\t\t ";
}
output = output"SCM_UNDEFINED),\n\t\t\t";
} else {
output = output""convert[type]" ("feature"."fields[field]"),\n\t\t\t";
}