bootstrappable: Simple initializer lists.

This commit is contained in:
Jan Nieuwenhuizen 2017-11-16 06:33:34 +01:00
parent a958c2cbf9
commit 72d79bbaf1
2 changed files with 6 additions and 3 deletions

View File

@ -137,7 +137,8 @@ BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
/* copy a string and truncate it. */
ST_FUNC char *pstrcpy(char *buf, int buf_size, const char *s)
{
char *q, *q_end;
char *q;
char *q_end;
int c;
if (buf_size > 0) {
@ -480,7 +481,8 @@ static void strcat_printf(char *buf, int buf_size, const char *fmt, ...)
static void error1(TCCState *s1, int is_warning, const char *fmt, va_list ap)
{
char buf[2048];
BufferedFile **pf, *f;
BufferedFile **pf;
BufferedFile *f;
buf[0] = '\0';
/* use upper file if inline ":asm:" or token ":paste:" */

View File

@ -143,7 +143,8 @@ typedef struct TinyAlloc {
uint8_t *buffer;
uint8_t *p;
unsigned nb_allocs;
struct TinyAlloc *next, *top;
struct TinyAlloc *next;
struct TinyAlloc *top;
#ifdef TAL_INFO
unsigned nb_peak;
unsigned nb_total;