#include <stdio.h>
#include <glib.h>
-#include "tree.h"
+#include "treefuncs.h"
#include "main.h"
#include "util.h"
continue;
if(n==node ||
line_no>=nline_no ||
- strcmp(nid,id)!=0)
+ g_strcasecmp(nid,id)!=0)
continue;
s = g_strdup_printf("named symbol (argument or signal) '%s' "
- "redefined, first defined on line %d",
+ "redefined, first defined on line %d "
+ "(case insensitive)",
id,line_no);
print_error(FALSE,s,nline_no);
}
void
check_nonvoidempty(Class *c)
{
- GList *l;
- for(l=c->nodes;l;l=g_list_next(l)) {
- Node *n = l->data;
+ GList *li;
+ for(li=c->nodes; li; li=g_list_next(li)) {
+ Node *n = li->data;
if(n->type == METHOD_NODE) {
Method *m = (Method *)n;
if(m->method != REGULAR_METHOD)
continue;
- if(!(strcmp(m->mtype->name,"void")==0 &&
+ if(!(strcmp(m->mtype->name, "void")==0 &&
m->mtype->stars == 0) &&
!m->cbuf) {
print_error(TRUE,
void
check_signal_args(Class *c)
{
- GList *l;
- for(l=c->nodes;l;l=g_list_next(l)) {
- Node *n = l->data;
+ GList *li;
+ for(li=c->nodes; li; li=g_list_next(li)) {
+ Node *n = li->data;
if(n->type == METHOD_NODE) {
Method *m = (Method *)n;
GList *l;
for(l=m->gtktypes;l;l=l->next) {
char *s;
- if(get_cast(l->data,FALSE))
+ if(get_cast(l->data, FALSE))
continue;
s = g_strdup_printf("Unknown GTK+ type '%s' "
"among signal types",
if(n->type == ARGUMENT_NODE) {
Argument *a = (Argument *)n;
char *s;
- if(get_cast(a->gtktype,FALSE))
+ if(get_cast(a->gtktype, FALSE))
continue;
s = g_strdup_printf("Unknown GTK+ type '%s' "
"as argument type",