Support string literal #146

Closed
opened 2025-09-03 09:11:45 +02:00 by belka · 0 comments
Owner

Strings should be saved in a static buffer. In the first step a string can be translated to a pointer to a position in this buffer (in the final language it is a record with the length and pointer).

  • String is encountered. Check whether exactly this string is already in the buffer. If so return a pointer to this string.
  • Otherwise write the string after the last used position in the buffer and return a pointer to this position.
  • If a new string was written, advance the position by the length of the string bytes.
Strings should be saved in a static buffer. In the first step a string can be translated to a pointer to a position in this buffer (in the final language it is a record with the length and pointer). - String is encountered. Check whether exactly this string is already in the buffer. If so return a pointer to this string. - Otherwise write the string after the last used position in the buffer and return a pointer to this position. - If a new string was written, advance the position by the length of the string bytes.
belka added the
self-hosted
label 2025-09-03 09:11:45 +02:00
belka added
bootstrap
and removed
self-hosted
labels 2025-09-04 22:13:32 +02:00
belka closed this issue 2025-09-05 17:17:57 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: belka/elna#146
No description provided.