This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11207] Support preprocessor macros
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: Thu, 11 Nov 2010 22:41:29 +0000
- Subject: [Bug translator/11207] Support preprocessor macros
- Auto-submitted: auto-generated
- References: <bug-11207-1110@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=11207
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fche at redhat dot com
Summary|Support preprocessor |Support preprocessor macros
|defines |
--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> 2010-11-11 22:41:08 UTC ---
Another instance of this sort of need is to represent the
casting/arithmetic magic used in the linux kernel list.h
macros, like
void
inode_to_filename(struct inode *inode)
{
struct dentry *dentry = list_first_entry(inode->i_dentry,
struct dentry, d_alias);
printk("%.*s\n", dentry->d_name.len, dentry->d_name.name);
}
where list_first_entry hides quite a bit of stuff that in
our language would expand to @casts etc. With some more
const-propagation, some of it could be done with an ordinary
script function, but not everything.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.