[Bug translator/11207] New: Support preprocessor defines
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Thu Jan 21 22:07:00 GMT 2010
It would be nice to be able to #define things in our scripts, both for brevity
and additional flexibility. There are many ways we could go about this.
One way is to incorporate this into our existing preprocessing style. It could
look something like:
%( define LIBFOO = "/path/to/libfoo.so" %)
%( define FOOFUNC(f) = process.library(LIBFOO).function(f) %)
probe FOOFUNC("*") { ... }
Another option is to just run our scripts through an existing preprocessor. CPP
is not an option because we don't want to expand embedded-C code blocks. It
should work to use m4 though, and maybe there are others.
One advantage of rolling our own is that it should be easier to maintain
column/line info for error reporting.
--
Summary: Support preprocessor defines
Product: systemtap
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: jistone at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11207
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list