From 0b2b5dbfb982c383dd57aa4884f2b3f59f348747 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 27 Apr 2003 11:55:33 +0000 Subject: More translations of c comments, now also include files! --- source/blender/makesdna/intern/makesdna.c | 106 +++++++++++++++--------------- 1 file changed, 53 insertions(+), 53 deletions(-) (limited to 'source/blender/makesdna/intern/makesdna.c') diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index 0be86f53f56..4ff94472df2 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -131,14 +131,14 @@ int maxdata= 500000, maxnr= 50000; int nr_names=0; int nr_types=0; int nr_structs=0; -char **names, *namedata; /* op adres names[a] staat string a */ -char **types, *typedata; /* op adres types[a] staat string a */ -short *typelens; /* op typelens[a] staat de lengte van type a */ +char **names, *namedata; /* at adress names[a] is string a */ +char **types, *typedata; /* at adress types[a] is string a */ +short *typelens; /* at typelens[a] is de length of type a */ short *alphalens; /* contains sizes as they are calculated on the alpha */ -short **structs, *structdata; /* op sp= structs[a] staat eerste adres structdefinitie - sp[0] is typenummer - sp[1] is aantal elementen - sp[2] sp[3] is typenr, namenr (enz) */ +short **structs, *structdata; /* at sp= structs[a] is the first adress of a struct definition + sp[0] is type number + sp[1] is amount of elements + sp[2] sp[3] is typenr, namenr (etc) */ /* * debugSDNA: * - 0 = no output, except errors @@ -225,7 +225,7 @@ int add_type(char *str, int len) if(str[0]==0) return -1; - /* zoek typearray door */ + /* search through type array */ for(nr=0; nr 1) printf("\t|\t|-- detected struct %s\n", types[strct]); - /* eerst overal keurige strings van maken */ + /* first lets make it all nice strings */ md1= md+1; while(*md1 != '}') { if( ((long)md1) > ((long)mainend) ) break; @@ -554,17 +554,17 @@ int convert_include(char *filename) md1++; } - /* types en namen lezen tot eerste karakter niet '}' */ + /* read types and names until first character that is not '}' */ md1= md+1; while( *md1 != '}' ) { if( ((long)md1) > ((long)mainend) ) break; - /* als er 'struct' of 'unsigned' staat, overslaan */ + /* skip when it says 'struct' or 'unsigned' */ if(*md1) { if( strncmp(md1, "struct", 6)==0 ) md1+= 7; if( strncmp(md1, "unsigned", 6)==0 ) md1+= 9; - /* type te pakken! */ + /* we've got a type! */ type= add_type(md1, 0); if (debugSDNA > 1) printf("\t|\t|\tfound type %s (", md1); @@ -572,12 +572,12 @@ int convert_include(char *filename) md1+= strlen(md1); - /* doorlezen tot ';' */ + /* read until ';' */ while( *md1 != ';' ) { if( ((long)md1) > ((long)mainend) ) break; if(*md1) { - /* Name te pakken. slen needs + /* We've got a name. slen needs * correction for function * pointers! */ slen= strlen(md1); @@ -663,12 +663,12 @@ int calculate_structlens(void) lastunknown= unknown; unknown= 0; - /* loop alle structen af... */ + /* check all structs... */ for(a=0; a 1) { int a,b; @@ -934,7 +934,7 @@ int make_structDNA(FILE *file) } } - /* file schrijven */ + /* file writing */ if (debugSDNA > -1) printf("Writing file ... "); @@ -943,34 +943,34 @@ int make_structDNA(FILE *file) strcpy(str, "SDNA"); dna_write(file, str, 4); - /* SCHRIJF NAMEN */ + /* write names */ strcpy(str, "NAME"); dna_write(file, str, 4); len= nr_names; dna_write(file, &len, 4); - /* lengte berekenen datablok met strings */ + /* calculate size of datablock with strings */ cp= names[nr_names-1]; - cp+= strlen(names[nr_names-1]) + 1; /* +1: nul-terminator */ + cp+= strlen(names[nr_names-1]) + 1; /* +1: null-terminator */ len= (long)cp - (long)(names[0]); len= (len+3) & ~3; dna_write(file, names[0], len); - /* SCHRIJF TYPES */ + /* write TYPES */ strcpy(str, "TYPE"); dna_write(file, str, 4); len= nr_types; dna_write(file, &len, 4); - /* lengte berekenen datablok */ + /* calculate datablock size */ cp= types[nr_types-1]; - cp+= strlen(types[nr_types-1]) + 1; /* +1: nul-terminator */ + cp+= strlen(types[nr_types-1]) + 1; /* +1: null-terminator */ len= (long)cp - (long)(types[0]); len= (len+3) & ~3; dna_write(file, types[0], len); - /* SCHRIJF TYPELENGTES */ + /* WRITE TYPELENGTHS */ strcpy(str, "TLEN"); dna_write(file, str, 4); @@ -978,13 +978,13 @@ int make_structDNA(FILE *file) if(nr_types & 1) len+= 2; dna_write(file, typelens, len); - /* SCHRIJF STRUCTEN */ + /* WRITE STRUCTS */ strcpy(str, "STRC"); dna_write(file, str, 4); len= nr_structs; dna_write(file, &len, 4); - /* lengte berekenen datablok */ + /* calc datablock size */ sp= structs[nr_structs-1]; sp+= 2+ 2*( sp[1] ); len= (long)sp - (long)(structs[0]); @@ -992,7 +992,7 @@ int make_structDNA(FILE *file) dna_write(file, structs[0], len); - /* dna padding test */ + /* a simple dna padding test */ if (0) { FILE *fp; @@ -1036,7 +1036,7 @@ int make_structDNA(FILE *file) return(0); } -/* ************************* END MAKEN DNA ********************** */ +/* ************************* END MAKE DNA ********************** */ void make_bad_file(char *file) { -- cgit v1.2.3