mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
6807b4208a
NetSurf includes are now done with ""s and other system includes with <>s as C intended. The scandeps tool has been updated to only look for ""ed includes, and to verify that the files exist in the tree before adding them to the dependency lines. The depend rule has therefore been augmented to make sure the autogenerated files are built before it is run. This is untested under self-hosted RISC OS builds. All else tested and works. svn path=/trunk/netsurf/; revision=3307
33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
/*
|
|
* This file is part of NetSurf, http://netsurf-browser.org/
|
|
* Licensed under the GNU General Public License,
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
|
*/
|
|
|
|
/** \file
|
|
* Localised message support (interface).
|
|
*
|
|
* The messages module loads a file of keys and associated strings, and
|
|
* provides fast lookup by key. The messages file consists of key:value lines,
|
|
* comment lines starting with #, and other lines are ignored. Use
|
|
* messages_load() to read the file into memory. To lookup a key, use
|
|
* messages_get("key").
|
|
*
|
|
* It can also load additional messages files into different contexts and allow
|
|
* you to look up values in it independantly from the standard shared Messages
|
|
* file table. Use the _ctx versions of the functions to do this.
|
|
*/
|
|
|
|
#ifndef _NETSURF_UTILS_MESSAGES_H_
|
|
#define _NETSURF_UTILS_MESSAGES_H_
|
|
|
|
#include "utils/hashtable.h"
|
|
|
|
void messages_load(const char *path);
|
|
struct hash_table *messages_load_ctx(const char *path, struct hash_table *ctx);
|
|
const char *messages_get_ctx(const char *key, struct hash_table *ctx);
|
|
const char *messages_get(const char *key);
|
|
|
|
#endif
|