{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof *(yyss));
+__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof (*(yyss)));
yyss = &(*yyptr).yyss_alloc;
-yynewbytes = yystacksize * sizeof *yyss + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyss) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof *(yyvs));
+__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof (*(yyvs)));
yyvs = &(*yyptr).yyvs_alloc;
-yynewbytes = yystacksize * sizeof *yyvs + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyvs) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof *(yyls));
+__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof (*(yyls)));
yyls = &(*yyptr).yyls_alloc;
-yynewbytes = yystacksize * sizeof *yyls + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyls) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
if(yyss1 != yyssa)
free(yyss1);
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof *(yyss));
+__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof (*(yyss)));
yyss = &(*yyptr).yyss_alloc;
-yynewbytes = yystacksize * sizeof *yyss + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyss) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof *(yyvs));
+__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof (*(yyvs)));
yyvs = &(*yyptr).yyvs_alloc;
-yynewbytes = yystacksize * sizeof *yyvs + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyvs) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof *(yyls));
+__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof (*(yyls)));
yyls = &(*yyptr).yyls_alloc;
-yynewbytes = yystacksize * sizeof *yyls + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyls) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
if(yyss1 != yyssa)
free(yyss1);
break;
case 993:
{
-Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "Extra comma\n", (((void *)0))));
+Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "extra comma\n", (((void *)0))));
yyval.initializer = MkInitializerList(yyvsp[(2) - (4)].list);
yyval.initializer->loc = (yyloc);
{
for(c = 0; c < definedExpStackPos; c++)
if(definedExpStack[c] == definedExp)
break;
-if(c == definedExpStackPos && c < sizeof definedExpStack / sizeof(void *))
+if(c == definedExpStackPos && c < sizeof (definedExpStack) / sizeof(void *))
{
struct Location backupYylloc = yylloc;
struct __ecereNameSpace__ecere__com__Instance * backInput = fileInput;
switch(init->type)
{
case 0:
+if(init->exp)
+{
init->exp->usage = (init->exp->usage & ~0x1) | (((unsigned int)0x1) << 0);
ProcessExpression(init->exp);
if(init->exp->destType && init->exp->destType->kind == 8 && init->exp->destType->_class && init->exp->destType->_class->registered && init->exp->destType->_class->registered->type == 5)
}
else if(init->exp->destType && init->exp->destType->kind == 8)
FixReference(init->exp, 0x0);
+}
break;
case 1:
{
+if(init->list)
+{
struct Initializer * i;
for(i = (*init->list).first; i; i = i->next)
ProcessInitializer(i);
+}
break;
}
}
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof *(yyss));
+__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof (*(yyss)));
yyss = &(*yyptr).yyss_alloc;
-yynewbytes = yystacksize * sizeof *yyss + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyss) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof *(yyvs));
+__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof (*(yyvs)));
yyvs = &(*yyptr).yyvs_alloc;
-yynewbytes = yystacksize * sizeof *yyvs + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyvs) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof *(yyls));
+__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof (*(yyls)));
yyls = &(*yyptr).yyls_alloc;
-yynewbytes = yystacksize * sizeof *yyls + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyls) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
if(yyss1 != yyssa)
free(yyss1);
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof *(yyss));
+__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof (*(yyss)));
yyss = &(*yyptr).yyss_alloc;
-yynewbytes = yystacksize * sizeof *yyss + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyss) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof *(yyvs));
+__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof (*(yyvs)));
yyvs = &(*yyptr).yyvs_alloc;
-yynewbytes = yystacksize * sizeof *yyvs + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyvs) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof *(yyls));
+__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof (*(yyls)));
yyls = &(*yyptr).yyls_alloc;
-yynewbytes = yystacksize * sizeof *yyls + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyls) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
if(yyss1 != yyssa)
free(yyss1);
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof *(yyss));
+__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof (*(yyss)));
yyss = &(*yyptr).yyss_alloc;
-yynewbytes = yystacksize * sizeof *yyss + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyss) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof *(yyvs));
+__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof (*(yyvs)));
yyvs = &(*yyptr).yyvs_alloc;
-yynewbytes = yystacksize * sizeof *yyvs + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyvs) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof *(yyls));
+__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof (*(yyls)));
yyls = &(*yyptr).yyls_alloc;
-yynewbytes = yystacksize * sizeof *yyls + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyls) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
if(yyss1 != yyssa)
free(yyss1);
break;
case 993:
{
-Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "Extra comma\n", (((void *)0))));
+Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "extra comma\n", (((void *)0))));
yyval.initializer = MkInitializerList(yyvsp[(2) - (4)].list);
yyval.initializer->loc = (yyloc);
{
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof *(yyss));
+__builtin_memcpy(&(*yyptr).yyss_alloc, yyss, (yysize) * sizeof (*(yyss)));
yyss = &(*yyptr).yyss_alloc;
-yynewbytes = yystacksize * sizeof *yyss + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyss) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof *(yyvs));
+__builtin_memcpy(&(*yyptr).yyvs_alloc, yyvs, (yysize) * sizeof (*(yyvs)));
yyvs = &(*yyptr).yyvs_alloc;
-yynewbytes = yystacksize * sizeof *yyvs + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyvs) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
do
{
unsigned int yynewbytes;
-__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof *(yyls));
+__builtin_memcpy(&(*yyptr).yyls_alloc, yyls, (yysize) * sizeof (*(yyls)));
yyls = &(*yyptr).yyls_alloc;
-yynewbytes = yystacksize * sizeof *yyls + (sizeof(union yyalloc) - 1);
-yyptr += yynewbytes / sizeof *yyptr;
+yynewbytes = yystacksize * sizeof (*yyls) + (sizeof(union yyalloc) - 1);
+yyptr += yynewbytes / sizeof (*yyptr);
}while((0));
if(yyss1 != yyssa)
free(yyss1);
/* Line 1464 of yacc.c */
#line 3157 "grammar.y"
{
- Compiler_Warning($"Extra comma\n");
+ Compiler_Warning($"extra comma\n");
(yyval.initializer) = MkInitializerList((yyvsp[(2) - (4)].list));
(yyval.initializer).loc = (yyloc);
| '{' initializer_list '}' { $$ = MkInitializerList($2); $$.loc = @$; }
| '{' initializer_list ',' '}'
{
- Compiler_Warning($"Extra comma\n");
+ Compiler_Warning($"extra comma\n");
$$ = MkInitializerList($2);
$$.loc = @$;
switch(init.type)
{
case expInitializer:
- init.exp.usage.usageGet = true;
- ProcessExpression(init.exp);
- if(init.exp.destType && init.exp.destType.kind == classType && init.exp.destType._class &&
- init.exp.destType._class.registered && init.exp.destType._class.registered.type == noHeadClass)
+ if(init.exp)
{
- FixReference(init.exp, true);
+ init.exp.usage.usageGet = true;
+ ProcessExpression(init.exp);
+ if(init.exp.destType && init.exp.destType.kind == classType && init.exp.destType._class &&
+ init.exp.destType._class.registered && init.exp.destType._class.registered.type == noHeadClass)
+ {
+ FixReference(init.exp, true);
+ }
+ else if(init.exp.destType && init.exp.destType.kind == classType)
+ FixReference(init.exp, false);
}
- else if(init.exp.destType && init.exp.destType.kind == classType)
- FixReference(init.exp, false);
break;
case listInitializer:
{
- Initializer i;
- for(i = init.list->first; i; i = i.next)
- ProcessInitializer(i);
+ if(init.list)
+ {
+ Initializer i;
+ for(i = init.list->first; i; i = i.next)
+ ProcessInitializer(i);
+ }
break;
}
}