projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
png img proxy fixes, speed zoom segv fix, colapse ins 1frm silence undo, repair rende...
[goodguy/history.git]
/
cinelerra-5.1
/
guicast
/
bootstrap.c
diff --git
a/cinelerra-5.1/guicast/bootstrap.c
b/cinelerra-5.1/guicast/bootstrap.c
index 3757d9e8e404cd07d6e83a3960149d4c8259cb6f..a697492be44f9566ba7be05b5a32766dce787725 100644
(file)
--- a/
cinelerra-5.1/guicast/bootstrap.c
+++ b/
cinelerra-5.1/guicast/bootstrap.c
@@
-5,7
+5,7
@@
// Bootstrap for themes.
// Bootstrap for themes.
-// By default, concatenates all the resources and a table of contents
+// By default, concatenates all the resources and a table of contents
// into an object file with objcopy.
// Run nm <object> to get the symbols created by bootstrap.
// into an object file with objcopy.
// Run nm <object> to get the symbols created by bootstrap.
@@
-38,22
+38,22
@@
void append_contents(char *path,
char string[1024];
int i, j = 0;
char string[1024];
int i, j = 0;
- for(i = strlen(path) - 1;
+ for(i = strlen(path) - 1;
i > 0 && path[i] && path[i] != '/';
i > 0 && path[i] && path[i] != '/';
- i--)
+ i--)
;
if(path[i] == '/') i++;
;
if(path[i] == '/') i++;
-
+
for(j = 0; path[i] != 0; i++, j++)
string[j] = path[i];
string[j] = 0;
for(j = 0; path[i] != 0; i++, j++)
string[j] = path[i];
string[j] = 0;
-
+
strcpy(buffer + *buffer_size, string);
*buffer_size += strlen(string) + 1;
strcpy(buffer + *buffer_size, string);
*buffer_size += strlen(string) + 1;
-
+
*(int*)(buffer + *buffer_size) = data_offset;
*buffer_size += sizeof(int);
}
*(int*)(buffer + *buffer_size) = data_offset;
*buffer_size += sizeof(int);
}
@@
-133,7
+133,7
@@
int main(int argc, char *argv[])
// Leave space for offset to data
contents_size = sizeof(int);
// Leave space for offset to data
contents_size = sizeof(int);
-// Read through all the resources, concatenate to dest file,
+// Read through all the resources, concatenate to dest file,
// and record the contents.
while(current_arg < argc)
{
// and record the contents.
while(current_arg < argc)
{
@@
-173,9
+173,9
@@
int main(int argc, char *argv[])
if(!binary_mode && !string_mode)
{
// Create contents
if(!binary_mode && !string_mode)
{
// Create contents
- append_contents(path,
- data_offset,
- contents_buffer,
+ append_contents(path,
+ data_offset,
+ contents_buffer,
&contents_size);
}
}
&contents_size);
}
}