* [Bug translator/11528] New: Pass string values by reference where possible
@ 2010-04-26 12:48 jistone at redhat dot com
2010-05-08 14:27 ` [Bug translator/11528] " fche at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: jistone at redhat dot com @ 2010-04-26 12:48 UTC (permalink / raw)
To: systemtap
For string variables that aren't modified after assignment, like most function
parameters, we could pass them as a "const char*" reference rather than a
char[MAXSTRINGLEN] copy. With script functions it's easy to tell if a parameter
is modified; for embedded-C functions we could perhaps have a new /* foo */
annotation.
Return values could get similar treatment -- __retvalue could be a char* which
is pointed to the desired destination. We just need to make sure that even with
an unused return value, we still give __retvalue somewhere to go.
--
Summary: Pass string values by reference where possible
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=11528
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug translator/11528] Pass string values by reference where possible
2010-04-26 12:48 [Bug translator/11528] New: Pass string values by reference where possible jistone at redhat dot com
@ 2010-05-08 14:27 ` fche at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2010-05-08 14:27 UTC (permalink / raw)
To: systemtap
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |11472
nThis| |
AssignedTo|systemtap at sources dot |fche at redhat dot com
|redhat dot com |
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=11528
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-07 17:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-26 12:48 [Bug translator/11528] New: Pass string values by reference where possible jistone at redhat dot com
2010-05-08 14:27 ` [Bug translator/11528] " fche at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).