MKDIR_P = mkdir -p
OBJ_DIR = bin
-CPP_SOURCES := set.cc mutableset.cc element.cc function.cc order.cc table.cc predicate.cc boolean.cc csolver.cc structs.c
+C_SOURCES := set.c mutableset.c element.c function.c order.c table.c predicate.c boolean.c csolver.c structs.c
OBJECTS := $(CPP_SOURCES:%.cc=$(OBJ_DIR)/%.o) $(C_SOURCES:%.c=$(OBJ_DIR)/%.o)
debug: all
PHONY += docs
-docs: *.cc *.h
+docs: *.c *.cc *.h
doxygen
$(LIB_SO): $(OBJECTS)
tabbing:
uncrustify -c C.cfg --no-backup *.cc
+ uncrustify -c C.cfg --no-backup *.c
uncrustify -c C.cfg --no-backup *.h
.PHONY: $(PHONY)
tmp->isRange=false;
tmp->low=0;
tmp->high=0;
- tmp->members=allocVectorArrayInt(elements, num);
+ tmp->members=allocVectorArrayInt(num, elements);
return tmp;
}
typedef struct Vector ## name Vector ## name; \
Vector ## name * allocVector ## name(uint capacity); \
Vector ## name * allocDefVector ## name(); \
- Vector ## name * allocVectorArray ## name(type * array, uint capacity); \
+ Vector ## name * allocVectorArray ## name(uint capacity, type * array); \
void pushVector ## name(Vector ## name *vector, type item); \
type getVector ## name(Vector ## name *vector, uint index); \
void setVector ## name(Vector ## name *vector, uint index, type item); \