mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-26 14:07:05 +03:00
08177fa581
Add global content list. Better error handling in content code. Improved code documentation. Remove some obsolete functions. Implement debug window listing contents. svn path=/import/netsurf/; revision=951
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
/*
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
* Licensed under the GNU General Public License,
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
|
*/
|
|
|
|
#ifndef _NETSURF_UTILS_UTILS_H_
|
|
#define _NETSURF_UTILS_UTILS_H_
|
|
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
#include <sys/types.h>
|
|
#include <regex.h>
|
|
#include "libxml/encoding.h"
|
|
|
|
void die(const char * const error);
|
|
char * strip(char * const s);
|
|
int whitespace(const char * str);
|
|
void * xcalloc(const size_t n, const size_t size);
|
|
void * xrealloc(void * p, const size_t size);
|
|
void xfree(void* p);
|
|
char * xstrdup(const char * const s);
|
|
char * load(const char * const path);
|
|
char * squash_whitespace(const char * s);
|
|
char * tolat1(xmlChar * s);
|
|
char * tolat1_pre(xmlChar * s);
|
|
char *squash_tolat1(xmlChar *s);
|
|
bool is_dir(const char *path);
|
|
void regcomp_wrapper(regex_t *preg, const char *regex, int cflags);
|
|
void clean_cookiejar(void);
|
|
void unicode_transliterate(unsigned int c, char **r);
|
|
char *human_friendly_bytesize(unsigned long bytesize);
|
|
void warn_user(const char *warning, const char *detail);
|
|
|
|
#endif
|