Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-07-14 03:23:06 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-07-14 03:23:06 +0400
commit065605e0da8ecd7add39f159db624ae9063ec476 (patch)
tree46cb2051e28dcef4a04a998e2d9ef82a7b36ecfa /source/blender/makesdna/intern
parentb7b50298148ef502d14143b0a5fa01dfac2ecce4 (diff)
parent807ad1f0e0de49711d58ade2b660e74ec5452b2b (diff)
Merged changes in the trunk up to revision 48893.
Conflicts resolved: source/blender/blenkernel/CMakeLists.txt source/blender/blenloader/intern/readfile.c source/blender/editors/animation/anim_filter.c source/blender/makesrna/RNA_enum_types.h
Diffstat (limited to 'source/blender/makesdna/intern')
-rw-r--r--source/blender/makesdna/intern/makesdna.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index f8c0f6a5910..ab320322f83 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -64,8 +64,8 @@
/* headers around with more freedom. */
static const char *includefiles[] = {
- // if you add files here, please add them at the end
- // of makesdna.c (this file) as well
+ /* if you add files here, please add them at the end
+ * of makesdna.c (this file) as well */
"DNA_listBase.h",
"DNA_vec_types.h",
@@ -80,8 +80,8 @@ static const char *includefiles[] = {
"DNA_lamp_types.h",
"DNA_material_types.h",
"DNA_vfont_types.h",
- // if you add files here, please add them at the end
- // of makesdna.c (this file) as well
+ /* if you add files here, please add them at the end
+ * of makesdna.c (this file) as well */
"DNA_meta_types.h",
"DNA_curve_types.h",
"DNA_mesh_types.h",
@@ -122,8 +122,8 @@ static const char *includefiles[] = {
"DNA_particle_types.h",
"DNA_cloth_types.h",
"DNA_gpencil_types.h",
- // if you add files here, please add them at the end
- // of makesdna.c (this file) as well
+ /* if you add files here, please add them at the end
+ * of makesdna.c (this file) as well */
"DNA_windowmanager_types.h",
"DNA_anim_types.h",
"DNA_boid_types.h",
@@ -136,7 +136,7 @@ static const char *includefiles[] = {
"DNA_freestyle_types.h",
"DNA_linestyle_types.h",
- // empty string to indicate end of includefiles
+ /* empty string to indicate end of includefiles */
""
};
@@ -452,7 +452,7 @@ static int preprocess_include(char *maindata, int len)
memcpy(temp, maindata, len);
- // remove all c++ comments
+ /* remove all c++ comments */
/* replace all enters/tabs/etc with spaces */
cp = temp;
a = len;
@@ -831,8 +831,8 @@ static int calculate_structlens(int firststruct)
else {
typelens[structtype] = len;
alphalens[structtype] = alphalen;
- // two ways to detect if a struct contains a pointer:
- // has_pointer is set or alphalen != len
+ /* two ways to detect if a struct contains a pointer:
+ * has_pointer is set or alphalen != len */
if (has_pointer || alphalen != len) {
if (alphalen % 8) {
printf("Sizeerror 8 in struct: %s (add %d bytes)\n", types[structtype], alphalen % 8);
@@ -974,7 +974,7 @@ static int make_structDNA(char *baseDirectory, FILE *file)
add_type("uint64_t", 8); /* SDNA_TYPE_UINT64 */
add_type("void", 0); /* SDNA_TYPE_VOID */
- // the defines above shouldn't be output in the padding file...
+ /* the defines above shouldn't be output in the padding file... */
firststruct = nr_types;
/* add all include files defined in the global array */
@@ -992,7 +992,7 @@ static int make_structDNA(char *baseDirectory, FILE *file)
if (debugSDNA) printf("\tFinished scanning %d headers.\n", i);
if (calculate_structlens(firststruct)) {
- // error
+ /* error */
return(1);
}
@@ -1093,7 +1093,7 @@ static int make_structDNA(char *baseDirectory, FILE *file)
if (fp == NULL) ;
else {
- // add all include files defined in the global array
+ /* add all include files defined in the global array */
for (i = 0; strlen(includefiles[i]); i++) {
fprintf(fp, "#include \"%s%s\"\n", baseDirectory, includefiles[i]);
}
@@ -1170,7 +1170,7 @@ int main(int argc, char **argv)
fprintf(file, "unsigned char DNAstr[]= {\n");
if (make_structDNA(baseDirectory, file)) {
- // error
+ /* error */
fclose(file);
make_bad_file(argv[1], __LINE__);
return_status = 1;