Ticket #976 (closed patch: fixed)

Opened 5 years ago

Last modified 5 years ago

[PATCH] Reduce poking into STRING guts

Reported by: darbelo Owned by:
Priority: normal Milestone:
Component: core Version: trunk
Severity: low Keywords: strings pdd28 strstart
Cc: Language:
Patch status: Platform:

Description

In time I'd like to rip out the strstart member from the parrot_string_t structure as indicated by PDD 28 (Strings):

{DEPRECATION NOTE: the "char *" pointer "strstart" will be removed. It complicates the entire string subsystem for a tiny optimization on substring operations, and offset math is messy with encodings that aren't byte-based.}

But this is complicated by the fact that there is direct access to this field all over the parrot code base. This patch removes some of the unnecessary field poking that stands in the way this goal. A previous patch along this lines was commited recently by cotto++

Attachments

remove-struct-poking.patch Download (4.9 KB) - added by darbelo 5 years ago.

Change History

Changed 5 years ago by darbelo

Changed 5 years ago by cotto

  • status changed from new to closed
  • resolution set to fixed

applied as r40965

Note: See TracTickets for help on using tickets.