mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-14 06:31:38 +00:00
2c8bec27c7
Most were pretty easy and fairly logical, but gib's regex was a bit of a pain until I figured out the real problem was the conditional assignments. However, libs/gamecode/test/test-conv4 fails when optimizing due to gcc using vcvttps2dq (which is nice, actually) for vector forms, but not the single equivalent other times. I haven't decided what to do with the test (I might abandon it as it does seem to be UD).
18 lines
547 B
C
18 lines
547 B
C
#ifndef __util_h
|
|
#define __util_h
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct strset_s strset_t;
|
|
|
|
int count_strings (const char * const *str) __attribute__((pure));
|
|
void merge_strings (const char **out, const char * const *in1,
|
|
const char * const *in2);
|
|
void prune_strings (strset_t *strset, const char **strings, uint32_t *count);
|
|
|
|
strset_t *new_strset (const char * const *strings);
|
|
void del_strset (strset_t *strset);
|
|
void strset_add (strset_t *strset, const char *str);
|
|
int strset_contains (strset_t *strset, const char *str);
|
|
|
|
#endif//__util_h
|