Merged changes in the trunk up to revision 51718.
[blender.git] / source / blender / makesdna / intern / makesdna.c
index 24457f557b0a973a9808156f60ba4051fb1e25f1..188c11911b1e1ebab340cb8e8e9d80e94c69347b 100644 (file)
@@ -87,14 +87,14 @@ static const char *includefiles[] = {
        "DNA_mesh_types.h",
        "DNA_meshdata_types.h",
        "DNA_modifier_types.h",
-       "DNA_lattice_types.h",  
+       "DNA_lattice_types.h",
        "DNA_object_types.h",
        "DNA_object_force.h",
        "DNA_object_fluidsim.h",
        "DNA_world_types.h",
        "DNA_scene_types.h",
        "DNA_view3d_types.h",
-       "DNA_view2d_types.h",   
+       "DNA_view2d_types.h",
        "DNA_space_types.h",
        "DNA_userdef_types.h",
        "DNA_screen_types.h",
@@ -1176,7 +1176,7 @@ int main(int argc, char **argv)
                                strcpy(baseDirectory, BASE_HEADER);
                        }
 
-                       fprintf(file, "unsigned char DNAstr[]= {\n");
+                       fprintf(file, "const unsigned char DNAstr[] = {\n");
                        if (make_structDNA(baseDirectory, file)) {
                                /* error */
                                fclose(file);
@@ -1185,7 +1185,7 @@ int main(int argc, char **argv)
                        }
                        else {
                                fprintf(file, "};\n");
-                               fprintf(file, "int DNAlen = sizeof(DNAstr);\n");
+                               fprintf(file, "const int DNAlen = sizeof(DNAstr);\n");
        
                                fclose(file);
                        }
@@ -1197,7 +1197,7 @@ int main(int argc, char **argv)
 }
 
 /* handy but fails on struct bounds which makesdna doesnt care about
- * unless structs are nested */
+ * with quite the same strictness as GCC does */
 #if 0
 /* include files for automatic dependencies */