377 |
described by string item STRING_ITEM. */ |
described by string item STRING_ITEM. */ |
378 |
static inline _L4_string_item_t * |
static inline _L4_string_item_t * |
379 |
_L4_attribute_always_inline |
_L4_attribute_always_inline |
380 |
_L4_add_substring_address_to (_L4_string_item_t *string_item, |
_L4_add_substring_to (_L4_string_item_t *string_item, |
381 |
_L4_string_item_t *source) |
_L4_string_item_t *source) |
382 |
{ |
{ |
383 |
__L4_string_item_t *target = (__L4_string_item_t *) string_item; |
__L4_string_item_t *target = (__L4_string_item_t *) string_item; |
413 |
(of the same length) to the string item STRING_ITEM. */ |
(of the same length) to the string item STRING_ITEM. */ |
414 |
static inline _L4_string_item_t * |
static inline _L4_string_item_t * |
415 |
_L4_attribute_always_inline |
_L4_attribute_always_inline |
416 |
_L4_add_substring_to (_L4_string_item_t *string_item, void *source) |
_L4_add_substring_address_to (_L4_string_item_t *string_item, void *source) |
417 |
{ |
{ |
418 |
__L4_string_item_t *target = (__L4_string_item_t *) string_item; |
__L4_string_item_t *target = (__L4_string_item_t *) string_item; |
419 |
|
|
424 |
|
|
425 |
/* Now add the source substring. */ |
/* Now add the source substring. */ |
426 |
target->nr_substrings++; |
target->nr_substrings++; |
427 |
target->string[target->nr_substrings + 1] = (_L4_word_t) source; |
target->string[target->nr_substrings] = (_L4_word_t) source; |
428 |
|
|
429 |
return string_item; |
return string_item; |
430 |
} |
} |