diff options
author | Benoit Dejean <bdejean@gmail.com> | 2015-06-21 19:13:35 +0200 |
---|---|---|
committer | Benoit Dejean <bdejean@gmail.com> | 2015-07-15 18:38:26 +0200 |
commit | 214c3635da88c10b0a93a8191a117b1d130e5fcf (patch) | |
tree | a8c58b1cf6a2764f9a73bc9224ab4b993d72f401 /lib | |
parent | fba67da65ddabdbedd6bf666cd50cbe01257dbe6 (diff) | |
download | libgtop-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-x | lib/lib.pl | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 = ''; |