mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
revised dynamic string handling. allows for `bounds checking'
This commit is contained in:
parent
f9f1e053a4
commit
2a6830d2d8
2 changed files with 77 additions and 40 deletions
|
@ -199,8 +199,7 @@ typedef struct {
|
|||
} prstack_t;
|
||||
|
||||
typedef struct strref_s {
|
||||
struct strref_s *next;
|
||||
struct strref_s *prev;
|
||||
struct strref_s * next;
|
||||
char *string;
|
||||
int count;
|
||||
} strref_t;
|
||||
|
@ -216,7 +215,9 @@ struct progs_s {
|
|||
|
||||
// garbage collected strings
|
||||
strref_t *static_strings;
|
||||
strref_t dynamic_strings; // head of linked list;
|
||||
strref_t **dynamic_strings;
|
||||
strref_t *free_string_refs;
|
||||
int dyn_str_size;
|
||||
struct hashtab_s *strref_hash;
|
||||
int num_strings;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue