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:
authorCampbell Barton <ideasman42@gmail.com>2008-04-25 20:09:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-04-25 20:09:16 +0400
commitfeb440c2cd72ef87c79d1bbf1524802d4e82fa88 (patch)
tree0815c5e89ee6c0cfd579810fb4edbd524dceae00 /release/datafiles
parentb94f3d0fcb720d81833ae0d6f27aac1bbb50d815 (diff)
added sequencer paths to bpath iterator, This needed to use get/set filename callbacks internally because the sequencer stores dir/file separately.
This means when moving large projects with many images/videos/sounds is possible with 'File, External Data, Find Missing Files'. - needed so we can put peach animatic, glrenders & testrenders on the dvd. also datatoc.c - brecht's fixes from apricot.
Diffstat (limited to 'release/datafiles')
-rw-r--r--release/datafiles/datatoc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/datafiles/datatoc.c b/release/datafiles/datatoc.c
index 75f789b378a..2e24a0f92ef 100644
--- a/release/datafiles/datatoc.c
+++ b/release/datafiles/datatoc.c
@@ -62,7 +62,7 @@ int main(int argc, char**argv) {
if (argv[1][i]=='.') argv[1][i]='_';
sprintf(sizest, "%d", (int)size);
- printf ("Input filesize is %d, Output size should be %d\n", size, ((int)size)*4 + strlen("/* DataToC output of file <> */\n\n") + strlen("char datatoc_[]= {\"") + strlen ("\"};\n") + (strlen(argv[1])*3) + strlen(sizest) + strlen("int datatoc__size= ;\n") +(((int)(size/256)+1)*5));
+ printf ("Input filesize is %ld, Output size should be %ld\n", size, ((int)size)*4 + strlen("/* DataToC output of file <> */\n\n") + strlen("char datatoc_[]= {\"") + strlen ("\"};\n") + (strlen(argv[1])*3) + strlen(sizest) + strlen("int datatoc__size= ;\n") +(((int)(size/256)+1)*5));
fpout= fopen(cname, "w");
if (!fpout) {
@@ -93,8 +93,8 @@ int main(int argc, char**argv) {
/* fprintf (fpout, "\\x%02x", getc(fpin)); */
fprintf (fpout, "%3d,", getc(fpin));
}
-
- fprintf (fpout, "\n};\n\n");
+ /* null terminate for the case it is a string */
+ fprintf (fpout, "\n 0};\n\n");
fclose(fpin);
fclose(fpout);