if(strcmp(yytext,"\n")==0) {
out=g_strconcat("Error: ",str," before newline",NULL);
} else if(yytext[0]=='\0') {
- out=g_strconcat("Error: ",str," at end of input",NULL);
+ out=g_strconcat("Error: ", str, " at end of input", NULL);
} else {
char *tmp = g_strdup(yytext);
- while((p=strchr(tmp,'\n')))
+ while((p=strchr(tmp, '\n')))
*p='.';
- out=g_strconcat("Error: ",str," before '",tmp,"'",NULL);
+ out=g_strconcat("Error: ", str, " before '", tmp, "'", NULL);
g_free(tmp);
}
- fprintf(stderr,"%s:%d: %s\n",filename,line_no,out);
+ fprintf(stderr, "%s:%d: %s\n", filename, line_no, out);
g_free(out);
exit(1);
strcmp(gtktypes->next->data,"NONE")==0)) {
print_error(TRUE, _("The number of GTK arguments and "
"function arguments for a signal "
- "don't seem to match"),line_no);
+ "don't seem to match"), line_no);
}
if(cbuf) {
char *p;
if(strcmp(yyvsp[-1].id, "destroywith")==0) {
g_free(yyvsp[-1].id);
destructor = yyvsp[0].id;
- destructor_line = ccode_line;
+ destructor_line = line_no;
destructor_simple = TRUE;
} else {
g_free(yyvsp[-1].id);
#line 456 "parse.y"
{
Node *node;
- char *get, *set;
+ char *get, *set = NULL;
Variable *var;
Type *type;
char *root;