Ruby: prism/util/pm_string_list.h File Reference

Ruby 3.3.7p123 (2025-01-15 revision be31f993d7fa0219d85f7b3c694d454da4ecc10b)

Data Structures | Functions
pm_string_list.h File Reference

A list of strings. More...

`#include "prism/defines.h"`
`#include "prism/util/pm_string.h"`
`#include <stddef.h>`
`#include <stdlib.h>`

Go to the source code of this file.

## Data Structures
struct | pm_string_list_t
| A list of strings. More...

## Functions
void | pm_string_list_append (pm_string_list_t *string_list, pm_string_t *string)
| Append a pm_string_t to the given string list.
PRISM_EXPORTED_FUNCTION void | pm_string_list_free (pm_string_list_t *string_list)
| Free the memory associated with the string list.

## Detailed Description

A list of strings.

Definition in file pm_string_list.h.

## Function Documentation

## ◆ pm_string_list_append()

void pm_string_list_append | ( | pm_string_list_t * | string_list,
|  | pm_string_t * | string )

Append a pm_string_t to the given string list.

Parameters

  string_list | The string list to append to.
  string | The string to append.

Definition at line 7 of file pm_string_list.c.

## ◆ pm_string_list_free()

PRISM_EXPORTED_FUNCTION void pm_string_list_free | ( | pm_string_list_t * | string_list | ) |

Free the memory associated with the string list.

Parameters

  string_list | The string list to free.

Definition at line 26 of file pm_string_list.c.