summaryrefslogtreecommitdiff
path: root/src/str_partial.h
blob: 237355588ea17a1219270af433a0f08694a99482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "str.h"

/* This is meant to be extended, and only has minimal necessary
   fields. */

typedef str_info (*info_getter) (const str * const restrict , UNUM);

struct str_s {
  UNUM size;                    /* the size in bytes, not in chars */
  char *data;                   /* a void pointer is too general */
  /* polymorphic behaviour */
  info_getter getter;
};