diff options
| author | fche <fche> | 2005-08-10 23:11:15 +0000 |
|---|---|---|
| committer | fche <fche> | 2005-08-10 23:11:15 +0000 |
| commit | 319660888893154e17ebbe313501ede739a92dcd (patch) | |
| tree | 49653a0c1916d8dd8d8539e3ed1d9ba12a61155f /tapset | |
| parent | c0de7a8dc7987f0d1648e36085d328e290217aaa (diff) | |
| download | systemtap-steved-319660888893154e17ebbe313501ede739a92dcd.tar.gz systemtap-steved-319660888893154e17ebbe313501ede739a92dcd.tar.xz systemtap-steved-319660888893154e17ebbe313501ede739a92dcd.zip | |
2005-08-10 Frank Ch. Eigler <fche@elastic.org>
PR translator/1186
* elaborate.cxx (resolve_2types): Accept a flag to tolerate unresolved
expression types.
(visit_functioncall): Call it thusly.
* translate.cxx (emit_function): Tolerate void functions.
* stap.1.in: Document possibility of void functions.
* tapset/builtin_{log,printk,warn}.stp: Make these void functions.
* testsuite/buildok/nine.stp, semok/eighteen.stp: New tests.
Diffstat (limited to 'tapset')
| -rw-r--r-- | tapset/builtin_log.stp | 2 | ||||
| -rw-r--r-- | tapset/builtin_printk.stp | 2 | ||||
| -rw-r--r-- | tapset/builtin_warn.stp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tapset/builtin_log.stp b/tapset/builtin_log.stp index 2932d66e..3d1a0aaf 100644 --- a/tapset/builtin_log.stp +++ b/tapset/builtin_log.stp @@ -3,5 +3,5 @@ function _log (msg) %{ %} function log (msg) { - return 0 + _log (msg . "") + _log (msg . "") } diff --git a/tapset/builtin_printk.stp b/tapset/builtin_printk.stp index 3e456fb2..81826849 100644 --- a/tapset/builtin_printk.stp +++ b/tapset/builtin_printk.stp @@ -3,5 +3,5 @@ function _printk (msg) %{ %} function printk (msg) { - return 0 + _printk (msg . "") + _printk (msg . "") } diff --git a/tapset/builtin_warn.stp b/tapset/builtin_warn.stp index 98fef7fe..97289ee0 100644 --- a/tapset/builtin_warn.stp +++ b/tapset/builtin_warn.stp @@ -3,5 +3,5 @@ function _warn (msg) %{ %} function warn (msg) { - return 0 + _warn (msg . "") + _warn (msg . "") } |
