#include "dln.h"
#include <strings.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
Go to the source code of this file.
◆ DLN_ERROR
◆ dln_exit
Definition at line 21 of file dln.c.
◆ dln_memerror
#define dln_memerror abort |
◆ dln_notimplement
#define dln_notimplement --->>> dln not implemented <<<--- |
◆ EXTERNAL_PREFIX
#define EXTERNAL_PREFIX "" |
◆ free
#define free |
( |
|
x | ) |
xfree(x) |
◆ FUNCNAME_PREFIX
◆ init_funcname
#define init_funcname |
( |
|
buf, |
|
|
|
file |
|
) |
| |
Value:do {\
const char *base = (file);\
char *
const tmp =
ALLOCA_N(
char, plen+flen+1);\
if (!tmp) {\
dln_memerror();\
}\
memcpy(tmp+plen, base, flen);\
tmp[plen+flen] = '\0';\
} while (0)
static const char funcname_prefix[sizeof(FUNCNAME_PREFIX) - 1]
#define ALLOCA_N(type, n)
unsigned char buf[MIME_BUF_SIZE]
static size_t init_funcname_len(const char **file)
Definition at line 135 of file dln.c.
Referenced by dln_load().
◆ isdirsep
#define isdirsep |
( |
|
x | ) |
((x) == '/') |
◆ MAXPATHLEN
◆ S_ISDIR
#define S_ISDIR |
( |
|
m | ) |
(((m) & S_IFMT) == S_IFDIR) |
Definition at line 61 of file dln.c.
◆ translit_separator
#define translit_separator |
( |
|
str | ) |
(void)(str) |
◆ dln_load()
void* dln_load |
( |
const char * |
file | ) |
|
◆ dln_loaderror()
static void dln_loaderror |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
|
static |
◆ dln_strerror()
static const char* dln_strerror |
( |
void |
| ) |
|
|
static |
◆ getenv()
◆ init_funcname_len()
static size_t init_funcname_len |
( |
const char ** |
file | ) |
|
|
static |
◆ xcalloc()
◆ xmalloc()
◆ xrealloc()
◆ funcname_prefix