|
Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
|
#include <config.h>#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <time.h>#include <sys/stat.h>#include <errno.h>#include <unistd.h>#include "common.h"#include "private.h"
Include dependency graph for util.c:Go to the source code of this file.
Macros | |
| #define | NMSGS (sizeof(messages) / sizeof(char *)) |
Functions | |
| int | mdvi_set_logfile (const char *filename) |
| int | mdvi_set_logstream (FILE *file) |
| int | mdvi_set_loglevel (int level) |
| static void | vputlog (int level, const char *head, const char *format, va_list ap) |
| void | __debug (int mask, const char *format,...) |
| void | mdvi_message (const char *format,...) |
| void | mdvi_crash (const char *format,...) |
| void | mdvi_error (const char *format,...) |
| void | mdvi_warning (const char *format,...) |
| void | mdvi_fatal (const char *format,...) |
| void * | mdvi_malloc (size_t nelems) |
| void * | mdvi_realloc (void *data, size_t newsize) |
| void * | mdvi_calloc (size_t nmemb, size_t size) |
| void | mdvi_free (void *ptr) |
| char * | mdvi_strdup (const char *string) |
| char * | mdvi_strncpy (char *to, const char *from, size_t length) |
| char * | mdvi_strndup (const char *string, size_t length) |
| void * | mdvi_memdup (const void *data, size_t length) |
| char * | mdvi_strrstr (const char *haystack, const char *needle) |
| char * | mdvi_build_path_from_cwd (const char *path) |
| double | unit2pix_factor (const char *spec) |
| int | unit2pix (int dpi, const char *spec) |
| Ulong | get_mtime (int fd) |
| char * | xstradd (char *dest, size_t *size, size_t n, const char *src, size_t m) |
| char * | getword (char *string, const char *delim, char **end) |
| char * | getstring (char *string, const char *delim, char **end) |
| static long | pow2 (size_t n) |
| void | dstring_init (Dstring *dstr) |
| int | dstring_append (Dstring *dstr, const char *string, int len) |
| int | dstring_copy (Dstring *dstr, int pos, const char *string, int len) |
| int | dstring_insert (Dstring *dstr, int pos, const char *string, int len) |
| int | dstring_new (Dstring *dstr, const char *string, int len) |
| void | dstring_reset (Dstring *dstr) |
Variables | |
| static char *const | messages [] |
| static FILE * | logfile = NULL |
| static int | _mdvi_log_level |
| Uint32 | _mdvi_debug_mask = 0 |
| int dstring_append | ( | Dstring * | dstr, |
| const char * | string, | ||
| int | len | ||
| ) |
| int dstring_copy | ( | Dstring * | dstr, |
| int | pos, | ||
| const char * | string, | ||
| int | len | ||
| ) |
| void dstring_init | ( | Dstring * | dstr) |
| int dstring_insert | ( | Dstring * | dstr, |
| int | pos, | ||
| const char * | string, | ||
| int | len | ||
| ) |
| int dstring_new | ( | Dstring * | dstr, |
| const char * | string, | ||
| int | len | ||
| ) |
| void dstring_reset | ( | Dstring * | dstr) |
| Ulong get_mtime | ( | int | fd) |
| char* getstring | ( | char * | string, |
| const char * | delim, | ||
| char ** | end | ||
| ) |
| char* getword | ( | char * | string, |
| const char * | delim, | ||
| char ** | end | ||
| ) |
| char* mdvi_build_path_from_cwd | ( | const char * | path) |
| void* mdvi_calloc | ( | size_t | nmemb, |
| size_t | size | ||
| ) |
| void mdvi_crash | ( | const char * | format, |
| ... | |||
| ) |
| void mdvi_error | ( | const char * | format, |
| ... | |||
| ) |
| void mdvi_fatal | ( | const char * | format, |
| ... | |||
| ) |
| void* mdvi_malloc | ( | size_t | nelems) |
| void* mdvi_memdup | ( | const void * | data, |
| size_t | length | ||
| ) |
| void* mdvi_realloc | ( | void * | data, |
| size_t | newsize | ||
| ) |
| int mdvi_set_logfile | ( | const char * | filename) |
| int mdvi_set_loglevel | ( | int | level) |
| int mdvi_set_logstream | ( | FILE * | file) |
| char* mdvi_strdup | ( | const char * | string) |
| char* mdvi_strncpy | ( | char * | to, |
| const char * | from, | ||
| size_t | length | ||
| ) |
| char* mdvi_strrstr | ( | const char * | haystack, |
| const char * | needle | ||
| ) |
| void mdvi_warning | ( | const char * | format, |
| ... | |||
| ) |
|
static |
| int unit2pix | ( | int | dpi, |
| const char * | spec | ||
| ) |
| double unit2pix_factor | ( | const char * | spec) |
|
static |
| char* xstradd | ( | char * | dest, |
| size_t * | size, | ||
| size_t | n, | ||
| const char * | src, | ||
| size_t | m | ||
| ) |