summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBenoit Dejean <bdejean@gmail.com>2015-06-21 19:13:35 +0200
committerBenoit Dejean <bdejean@gmail.com>2015-07-15 18:38:26 +0200
commit214c3635da88c10b0a93a8191a117b1d130e5fcf (patch)
treea8c58b1cf6a2764f9a73bc9224ab4b993d72f401 /lib
parentfba67da65ddabdbedd6bf666cd50cbe01257dbe6 (diff)
downloadlibgtop-214c3635da88c10b0a93a8191a117b1d130e5fcf.tar.gz
The perl generator for the *_l() functions does not need to know
about the glibtop_* struct layout, so drop this from the definitions.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/lib.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/lib.pl b/lib/lib.pl
index 1fc57a2a..7498ca03 100755
--- a/lib/lib.pl
+++ b/lib/lib.pl
@@ -88,7 +88,7 @@ sub output {
@line_fields = split(/\|/, $line, 9999);
$retval = $line_fields[1];
$feature = $line_fields[2];
- $param_def = $line_fields[4];
+ $param_def = $line_fields[3];
$orig = $feature;
$feature =~ s/^@//;
@@ -106,16 +106,16 @@ sub output {
}
if ($param_def eq 'string') {
- $call_param = ', ' . $line_fields[5];
+ $call_param = ', ' . $line_fields[4];
$param_buf = '';
$buf_set = '';
$param_decl = ",\n " . $space . ' const char *' .
- $line_fields[5];
- $send_ptr = "\t\tconst void *send_ptr = " . $line_fields[5] . ';';
- $send_size = "\t\tconst size_t send_size =\n\t\tstrlen (" .
+ $line_fields[4];
+ $send_ptr = "\n\tconst void *send_ptr = " . $line_fields[4] . ';';
+ $send_size = "\n\tconst size_t send_size =\n\t\tstrlen (" .
- $line_fields[5] . ') + 1;';
+ $line_fields[4] . ') + 1;';
}
else {
$call_param = '';