This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/3671] Support array size declarations
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 6 Dec 2006 23:44:43 -0000
- Subject: [Bug translator/3671] Support array size declarations
- References: <20061206232852.3671.mmlnx@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From fche at redhat dot com 2006-12-06 23:44 -------
What has been holding us back is the lack of a proposed syntax.
OK, here is a simple and intuitive one:
global array[size]
Of course, this [size] usage may look different from actual key-tuple-based
indexing, but I suspect this would be OK.
It would be easy to implement. The vardecl class would have to get a
maxsize field. The parser::parse_global function would have to look for
[literal_number] set the field. Last, the translator would have to arrange
to pass the new field to mapvar::init.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3671
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.