diff options
author | Sebastian Geerken <devnull@localhost> | 2013-01-13 15:21:46 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-01-13 15:21:46 +0100 |
commit | 5797bbb234071775fe6148a29c9224c04912c8c1 (patch) | |
tree | 4bd03596f875f886f7951e43526341b128c087c7 /dlib/dlib.h | |
parent | 657daf90e9a24bfeb3c38aca2682b5f36d86dff3 (diff) | |
parent | 927887827f2a440f1f1b39e58d87b12154098d4a (diff) |
Update with main repo.
Diffstat (limited to 'dlib/dlib.h')
-rw-r--r-- | dlib/dlib.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/dlib/dlib.h b/dlib/dlib.h index 8dc324a7..87335e00 100644 --- a/dlib/dlib.h +++ b/dlib/dlib.h @@ -99,7 +99,7 @@ int dStrnAsciiCasecmp(const char *s1, const char *s2, size_t n); */ #define Dstr_char_t char -typedef struct _dstr { +typedef struct { int sz; /* allocated size (private) */ int len; Dstr_char_t *str; @@ -128,13 +128,11 @@ const char *dStr_printable(Dstr *in, int maxlen); /* *-- dList -------------------------------------------------------------------- */ -struct Dlist_ { +typedef struct { int sz; /* allocated size (private) */ int len; void **list; -}; - -typedef struct Dlist_ Dlist; +} Dlist; /* dCompareFunc: * Return: 0 if parameters are equal (for dList_find_custom). @@ -175,10 +173,10 @@ void dLib_show_messages(bool_t show); /* *- Misc utility functions ---------------------------------------------------- */ -char *dGetcwd (); -char *dGethomedir (); -char *dGetline (FILE *stream); - +char *dGetcwd(); +char *dGethomedir(); +char *dGetline(FILE *stream); +int dClose(int fd); #ifdef __cplusplus } |