projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for F_sine segv, bunch of intl fixes
[goodguy/history.git]
/
cinelerra-5.1
/
libzmpeg3
/
libzmpeg3.h
diff --git
a/cinelerra-5.1/libzmpeg3/libzmpeg3.h
b/cinelerra-5.1/libzmpeg3/libzmpeg3.h
index e12321850a2cd1d2490ba8b7c71fcf219d3e88b9..712d1ca00dffd62644651ff5d3b75c3d4ecbb05f 100644
(file)
--- a/
cinelerra-5.1/libzmpeg3/libzmpeg3.h
+++ b/
cinelerra-5.1/libzmpeg3/libzmpeg3.h
@@
-94,7
+94,7
@@
extern "C" {
#define new_memset(s) \
void *operator new(size_t n) { \
#define new_memset(s) \
void *operator new(size_t n) { \
- void *t = (void*) new char[n]; \
+ void *
volatile
t = (void*) new char[n]; \
memset(t,s,n); \
return t; \
} \
memset(t,s,n); \
return t; \
} \
@@
-102,7
+102,7
@@
extern "C" {
delete[](char*)t; \
} \
void *operator new[](size_t n) { \
delete[](char*)t; \
} \
void *operator new[](size_t n) { \
- void *t = (void*) new char[n]; \
+ void *
volatile
t = (void*) new char[n]; \
memset(t,s,n); \
return t; \
} \
memset(t,s,n); \
return t; \
} \
@@
-2846,9
+2846,9
@@
public:
}
static inline void complete_path(char *full_path, char *path) {
}
static inline void complete_path(char *full_path, char *path) {
- char dir[
zmpeg3_t::
STRLEN];
+ char dir[STRLEN];
if( path[0] != '/' && getcwd(dir, sizeof(dir)) )
if( path[0] != '/' && getcwd(dir, sizeof(dir)) )
- s
printf(full_path
, "%s/%s", dir, path);
+ s
nprintf(full_path, STRLEN
, "%s/%s", dir, path);
else
strcpy(full_path, path);
}
else
strcpy(full_path, path);
}
@@
-2875,7
+2875,7
@@
public:
}
static inline void joinpath(char *path, char *dir, char *filename) {
}
static inline void joinpath(char *path, char *dir, char *filename) {
- s
printf(path
, "%s/%s", dir, filename);
+ s
nprintf(path, STRLEN
, "%s/%s", dir, filename);
}
static inline int64_t path_total_bytes(char *path) {
}
static inline int64_t path_total_bytes(char *path) {