make ../bin/circle
make[1]: Entering directory `/home/fubar/Desktop/test/src'
gcc -g -O2 -Wall -DIMC -DIMCCIRCLE -c -o db.o db.c
db.c: In function parse_object:
db.c:1847:3: warning: too few arguments for format
db.c:1946:34: error: macro "GET_OBJ_INSERT" passed 2 arguments, but takes just 1
db.c:1946:3: error: GET_OBJ_INSERT undeclared (first use in this function)
db.c:1946:3: note: each undeclared identifier is reported only once for each function it appears in
db.c:1947:34: error: macro "GET_OBJ_INSERT" passed 2 arguments, but takes just 1
db.c:1948:34: error: macro "GET_OBJ_INSERT" passed 2 arguments, but takes just 1
db.c:1949:34: error: macro "GET_OBJ_INSERT" passed 2 arguments, but takes just 1
make[1]: *** [db.o] Error 1
make[1]: Leaving directory `/home/fubar/Desktop/test/src'
make: *** [all] Error 2
db.c:1946:34: error: macro "GET_OBJ_INSERT" passed 2 arguments, but takes just 1
GET_OBJ_INSERT(obj_proto + i)[0] = 0;
GET_OBJ_INSERT(obj_proto + i, 0) = t[0];
if (!get_line(obj_f, line)) {
log("SYSERR: Expecting fourth numeric line of %s, but file ended!", buf2);
exit(1);
}
if ((retval = sscanf(line, "%d", t)) != 1) {
if (retval == 3) {
t[0] = 0;
} else if (retval == 4)
t[0] = 0;
else {
log("SYSERR: Format error in fourth numeric line (expecting 1 args, got %d), %s", retval, buf2);
exit(1);
}
}
GET_OBJ_IMPLANT(obj_proto + i) = t[0];
if (!get_line(obj_f, line)) {
log("SYSERR: Expecting fourth numeric line of %s, but file ended!", buf2);
exit(1);
}
if ((retval = sscanf(line, "%s %s %s %s", i1, i2, i3, i4)) != 4) {
if (retval == 3) {
t[3] = 0;
} else if (retval == 4)
t[3] = asciiflag_conv_aff(i1);
else {
log("SYSERR: Format error in fourth numeric line (expecting 1 args, got %d), %s", retval, buf2);
exit(1);
}
}
GET_OBJ_INSERT(obj_proto + i)[0] = asciiflag_conv(i1);
GET_OBJ_INSERT(obj_proto + i)[1] = asciiflag_conv(i2);
GET_OBJ_INSERT(obj_proto + i)[2] = asciiflag_conv(i3);
GET_OBJ_INSERT(obj_proto + i)[3] = asciiflag_conv(i4);
Stuff with an <——————– I added.
structs.h
genobj.c
db.c