/**
* Typeface and script library
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* This code is in public domain
*/
/* This should be enough for approximately 10000 fonts */
#include <cstdlib>
#include <string.h>
#include <glib.h>
#include "nr-type-primitives.h"
/**
* An entry in a list of key->value pairs
*/
struct NRTDEntry {
void *val;
};
/**
* Type Dictionary, consisting of size number of key-value entries
*/
struct NRTypeDict {
unsigned int size;
};
static NRTDEntry *nr_td_entry_new (void);
/**
* Calls the destructor for each item in list
*/
void
{
if (list->destructor) {
}
}
void
{
if (list->destructor) {
}
}
/**
* Creates a new typeface dictionary of size NR_DICTSIZE
* and initalizes all the entries to NULL
*/
nr_type_dict_new (void)
{
int i;
for (i = 0; i < NR_DICTSIZE; i++) {
}
return td;
}
/**
* Hashes a string and returns the int
*/
static unsigned int
{
unsigned int h;
h = *p;
if (h != 0) {
for (p += 1; *p; p++) h = (h << 5) - h + *p;
}
return h;
}
/**
*/
void
{
if (key) {
unsigned int hval;
return;
}
}
tde = nr_td_entry_new ();
}
}
/**
* Looks up the given key from the typeface dictionary
*/
void *
{
if (key) {
unsigned int hval;
}
}
return NULL;
}
/**
* Creates a new TDEntry
*/
static NRTDEntry *
nr_td_entry_new (void)
{
if (!nr_tde_free_list) {
int i;
for (i = 0; i < (NR_TDE_BLOCK_SIZE - 1); i++) {
}
}
return tde;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8 :