diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-03-11 22:02:49 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-03-11 22:02:49 +0100 |
commit | 9f6a77c2d17128a44bf2fc9fead449a05354def5 (patch) | |
tree | 905d3c56580a906b77b1ca2660cb6f3fd123b945 /fitz/fitz_base.h | |
parent | 31733cfd3ba1a920542da3792f2591cf7ba5f62a (diff) | |
download | mupdf-9f6a77c2d17128a44bf2fc9fead449a05354def5.tar.xz |
Rename and prune some files and functions.
Diffstat (limited to 'fitz/fitz_base.h')
-rw-r--r-- | fitz/fitz_base.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/fitz/fitz_base.h b/fitz/fitz_base.h index 211ed8dc..6bee3ecb 100644 --- a/fitz/fitz_base.h +++ b/fitz/fitz_base.h @@ -173,12 +173,9 @@ int runetochar(char *str, int *rune); int runelen(long c); int runenlen(int *r, int nrune); int fullrune(char *str, int n); -char *cleanname(char *name); typedef int fz_error; -#define fz_outofmem ((fz_error)-1) - #define fz_throw(...) fz_throwimp(__func__, __FILE__, __LINE__, __VA_ARGS__) #define fz_rethrow(cause, ...) fz_rethrowimp(cause, __func__, __FILE__, __LINE__, __VA_ARGS__) #define fz_catch(cause, ...) fz_catchimp(cause, __func__, __FILE__, __LINE__, __VA_ARGS__) @@ -189,22 +186,9 @@ fz_error fz_throwimp(const char *func, const char *file, int line, char *fmt, .. fz_error fz_rethrowimp(fz_error cause, const char *func, const char *file, int line, char *fmt, ...) __printflike(5, 6); fz_error fz_catchimp(fz_error cause, const char *func, const char *file, int line, char *fmt, ...) __printflike(5, 6); -typedef struct fz_memorycontext_s fz_memorycontext; - -struct fz_memorycontext_s -{ - void * (*malloc)(fz_memorycontext *, int); - void * (*realloc)(fz_memorycontext *, void *, int); - void (*free)(fz_memorycontext *, void *); -}; - -fz_memorycontext *fz_currentmemorycontext(void); -void fz_setmemorycontext(fz_memorycontext *memorycontext); - void *fz_malloc(int n); void *fz_realloc(void *p, int n); void fz_free(void *p); - char *fz_strdup(char *s); /* @@ -232,12 +216,6 @@ void *fz_hashgetval(fz_hashtable *table, int idx); #define fz_floor(x) floor(x) #define fz_ceil(x) ceil(x) -/* divide and floor towards -inf */ -static inline int fz_idiv(int a, int b) -{ - return a < 0 ? (a - b + 1) / b : a / b; -} - typedef struct fz_matrix_s fz_matrix; typedef struct fz_point_s fz_point; typedef struct fz_rect_s fz_rect; |