Migrate more strings
FossilOrigin-Name: 0d125c31daf305a4363234402dbf375ecd71b24da762aa8e8c59751678cf47ec
This commit is contained in:
parent
ce5944a7b1
commit
b00de734e8
25 changed files with 476 additions and 439 deletions
|
@ -82,13 +82,13 @@ pool::allocnext(size_t allocsize)
|
|||
};
|
||||
|
||||
char *
|
||||
pool::string(char *s, size_t l)
|
||||
pool::string(const char *s, size_t l)
|
||||
{
|
||||
char *b = (char *)alloc(l + 1);
|
||||
strncpy(b, s, l);
|
||||
b[l] = 0;
|
||||
return b;
|
||||
};
|
||||
}
|
||||
|
||||
pool *
|
||||
gp() // useful for global buffers that need to be initialisation order
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue