To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=73908
                 Issue #|73908
                 Summary|in-line rtl[u]String definitions ...
               Component|porting
                 Version|680m197
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|mmeeks
             Reported by|mmeeks





------- Additional comments from [EMAIL PROTECTED] Fri Jan 26 06:10:42 -0800 
2007 -------
So, it would be altogether more pleasant if instead of having to construct
strings from Ascii (with RTL_CONSTASCII_USTRINGPARAM) we could create an
in-line, (and static) rtl_[u]String object, that is in .rodata - hence shared
across all processes, and tagged as 'static' thus, not requiring ref-counting
(cf. #73907#)

This can be done (for gcc at least) nice & conditionally & source compatibly [
Kay's neat idea ]:

/* force expansion */
#define RTL_CONSTASCII_USTRINGPARAM_STR( constAsciiStr ) L##constAsciiStr
/* emit in-line static .rodata rtl_uString */
#define RTL_CONSTASCII_USTRINGPARAM( constAsciiStr ) \
    ((rtl_uString *)(&((const struct { sal_Int32 r; sal_Int32 l; const wchar_t
b[sizeof(constAsciiStr)]; } ) { (1<<30)+1, sizeof(constAsciiStr)-1,
RTL_CONSTASCII_USTRINGPARAM_STR(constAsciiStr) }))), SAL_NO_ACQUIRE

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to