* Fix a dependency issue in Makefiles.
* Fix use of uninitialized variable in makesrna.
This commit is contained in:
2009-03-15 11:30:02 +00:00
parent 863a0e246f
commit 9ad4cd89c2
2 changed files with 6 additions and 4 deletions

View File

@@ -38,6 +38,10 @@ CSRCS = $(GENSRCS) rna_access.c rna_dependency.c
include nan_compile.mk
ifdef NAN_DEPEND
-include $(MAKESRCS:%.c=$(DIR)/$(DEBUG_DIR)%.d)
endif
CFLAGS += $(LEVEL_1_C_WARNINGS)
CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include

View File

@@ -1684,7 +1684,6 @@ static void rna_generate_header_cpp(BlenderRNA *brna, FILE *f)
fprintf(f, "/**************** %s ****************/\n\n", srna->name);
srna= ds->srna;
fprintf(f, "class %s : public %s {\n", srna->identifier, (srna->base)? srna->base->identifier: "Pointer");
fprintf(f, "public:\n");
fprintf(f, "\t%s(const PointerRNA& ptr) :\n\t\t%s(ptr)", srna->identifier, (srna->base)? srna->base->identifier: "Pointer");
@@ -1747,6 +1746,8 @@ static int rna_preprocess(char *outfile)
strcpy(deffile, outfile);
strcat(deffile, "RNA_blender_cpp.h");
status= (DefRNA.error != 0);
if(status) {
make_bad_file(deffile);
}
@@ -1765,11 +1766,8 @@ static int rna_preprocess(char *outfile)
}
}
rna_sort(brna);
status= (DefRNA.error != 0);
/* create rna_gen_*.c files */
for(i=0; PROCESS_ITEMS[i].filename; i++) {
strcpy(deffile, outfile);