zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bdflib.c File Reference
#include <ft2build.h>
#include <FT_FREETYPE_H>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_INTERNAL_STREAM_H>
#include <FT_INTERNAL_OBJECTS_H>
#include "bdf.h"
#include "bdferror.h"

Go to the source code of this file.

Macros

#define _BDF_BBX   0x0400
 
#define _BDF_BITMAP   0x0800
 
#define _BDF_DWIDTH   0x0200
 
#define _BDF_ENCODING   0x0080
 
#define _BDF_FONT_BBX   0x0008
 
#define _BDF_FONT_NAME   0x0002
 
#define _BDF_GLYPH   0x0040
 
#define _BDF_GLYPH_BITS
 
#define _BDF_GLYPH_HEIGHT_CHECK   0x80000000UL
 
#define _BDF_GLYPH_WIDTH_CHECK   0x40000000UL
 
#define _BDF_GLYPHS   0x0020
 
#define _BDF_PROPS   0x0010
 
#define _BDF_SIZE   0x0004
 
#define _BDF_START   0x0001
 
#define _BDF_SWIDTH   0x0100
 
#define _BDF_SWIDTH_ADJ   0x1000
 
#define ACMSG1
 
#define ACMSG10   "DWIDTH field missing at line %ld. Set to glyph width.\n"
 
#define ACMSG11   "SIZE bits per pixel field adjusted to %hd.\n"
 
#define ACMSG12   "Duplicate encoding %ld (%s) changed to unencoded.\n"
 
#define ACMSG13   "Glyph %ld extra rows removed.\n"
 
#define ACMSG14   "Glyph %ld extra columns removed.\n"
 
#define ACMSG15   "Incorrect glyph count: %ld indicated but %ld found.\n"
 
#define ACMSG16   "Glyph %ld missing columns padded with zero bits.\n"
 
#define ACMSG2
 
#define ACMSG3   "Font width != actual width. Old: %hd New: %hd.\n"
 
#define ACMSG4
 
#define ACMSG5   "Font ascent != actual ascent. Old: %hd New: %hd.\n"
 
#define ACMSG6   "Font descent != actual descent. Old: %hd New: %hd.\n"
 
#define ACMSG7   "Font height != actual height. Old: %hd New: %hd.\n"
 
#define ACMSG8   "Glyph scalable width (SWIDTH) adjustments made.\n"
 
#define ACMSG9   "SWIDTH field missing at line %ld. Set automatically.\n"
 
#define DBGMSG1   " [%6ld] %s" /* no \n */
 
#define DBGMSG2   " (0x%lX)\n"
 
#define ERRMSG1   "[line %ld] Missing `%s' line.\n"
 
#define ERRMSG2   "[line %ld] Font header corrupted or missing fields.\n"
 
#define ERRMSG3   "[line %ld] Font glyphs corrupted or missing fields.\n"
 
#define ERRMSG4   "[line %ld] BBX too big.\n"
 
#define ERRMSG5   "[line %ld] `%s' value too big.\n"
 
#define ERRMSG6   "[line %ld] Input line too long.\n"
 
#define ERRMSG7   "[line %ld] Font name too long.\n"
 
#define ERRMSG8   "[line %ld] Invalid `%s' value.\n"
 
#define ERRMSG9   "[line %ld] Invalid keyword.\n"
 
#define FT_COMPONENT   trace_bdflib
 
#define INITIAL_HT_SIZE   241
 
#define isdigok(m, d)   (m[(d) >> 3] & ( 1 << ( (d) & 7 ) ) )
 
#define NO_SKIP   256 /* this value cannot be stored in a 'char' */
 
#define sbitset(m, cc)   ( m[(FT_Byte)(cc) >> 3] & ( 1 << ( (cc) & 7 ) ) )
 
#define setsbit(m, cc)   ( m[(FT_Byte)(cc) >> 3] |= (FT_Byte)( 1 << ( (cc) & 7 ) ) )
 

Typedefs

typedef FT_Error(* _bdf_line_func_t )(char *line, unsigned long linelen, unsigned long lineno, void *call_data, void *client_data)
 
typedef struct _bdf_list_t_ _bdf_list_t
 
typedef struct _bdf_parse_t_ _bdf_parse_t
 
typedef void(* hash_free_func )(hashnode node)
 

Functions

static FT_Error _bdf_add_comment (bdf_font_t *font, char *comment, unsigned long len)
 
static FT_Error _bdf_add_property (bdf_font_t *font, char *name, char *value, unsigned long lineno)
 
static long _bdf_atol (char *s, char **end, int base)
 
static short _bdf_atos (char *s, char **end, int base)
 
static unsigned long _bdf_atoul (char *s, char **end, int base)
 
static int _bdf_is_atom (char *line, unsigned long linelen, char **name, char **value, bdf_font_t *font)
 
static void _bdf_list_done (_bdf_list_t *list)
 
static FT_Error _bdf_list_ensure (_bdf_list_t *list, unsigned long num_items)
 
static void _bdf_list_init (_bdf_list_t *list, FT_Memory memory)
 
static char * _bdf_list_join (_bdf_list_t *list, int c, unsigned long *alen)
 
static void _bdf_list_shift (_bdf_list_t *list, unsigned long n)
 
static FT_Error _bdf_list_split (_bdf_list_t *list, char *separators, char *line, unsigned long linelen)
 
static FT_Error _bdf_parse_glyphs (char *line, unsigned long linelen, unsigned long lineno, void *call_data, void *client_data)
 
static FT_Error _bdf_parse_properties (char *line, unsigned long linelen, unsigned long lineno, void *call_data, void *client_data)
 
static FT_Error _bdf_parse_start (char *line, unsigned long linelen, unsigned long lineno, void *call_data, void *client_data)
 
static FT_Error _bdf_readstream (FT_Stream stream, _bdf_line_func_t callback, void *client_data, unsigned long *lno)
 
static FT_Error _bdf_set_default_spacing (bdf_font_t *font, bdf_options_t *opts, unsigned long lineno)
 
static FT_Error bdf_create_property (char *name, int format, bdf_font_t *font)
 
 bdf_free_font (bdf_font_t *font)
 
 bdf_get_font_property (bdf_font_t *font, const char *name)
 
 bdf_get_property (char *name, bdf_font_t *font)
 
 bdf_load_font (FT_Stream stream, FT_Memory extmemory, bdf_options_t *opts, bdf_font_t **font)
 
static int by_encoding (const void *a, const void *b)
 
static hashnodehash_bucket (const char *key, hashtable *ht)
 
static void hash_free (hashtable *ht, FT_Memory memory)
 
static FT_Error hash_init (hashtable *ht, FT_Memory memory)
 
static FT_Error hash_insert (char *key, size_t data, hashtable *ht, FT_Memory memory)
 
static hashnode hash_lookup (const char *key, hashtable *ht)
 
static FT_Error hash_rehash (hashtable *ht, FT_Memory memory)
 

Variables

static const bdf_options_t _bdf_opts
 
static const bdf_property_t _bdf_properties []
 
static const unsigned long _num_bdf_properties
 
static const unsigned char a2i [128]
 
static const unsigned char ddigits [32]
 
static const char empty [1] = { 0 }
 
static const unsigned char hdigits [32]
 
static const unsigned char nibble_mask [8]
 
static const unsigned char odigits [32]
 

Macro Definition Documentation

#define _BDF_BBX   0x0400

Definition at line 1116 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_BITMAP   0x0800

Definition at line 1117 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_DWIDTH   0x0200

Definition at line 1115 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_ENCODING   0x0080

Definition at line 1113 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_FONT_BBX   0x0008

Definition at line 1109 of file bdflib.c.

Referenced by _bdf_parse_start().

#define _BDF_FONT_NAME   0x0002

Definition at line 1107 of file bdflib.c.

Referenced by _bdf_parse_start().

#define _BDF_GLYPH   0x0040

Definition at line 1112 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_GLYPH_BITS
Value:
#define _BDF_SWIDTH
Definition: bdflib.c:1114
#define _BDF_DWIDTH
Definition: bdflib.c:1115
#define _BDF_BBX
Definition: bdflib.c:1116
#define _BDF_BITMAP
Definition: bdflib.c:1117
#define _BDF_ENCODING
Definition: bdflib.c:1113
#define _BDF_GLYPH
Definition: bdflib.c:1112

Definition at line 1121 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_GLYPH_HEIGHT_CHECK   0x80000000UL

Definition at line 1129 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_GLYPH_WIDTH_CHECK   0x40000000UL

Definition at line 1128 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_GLYPHS   0x0020

Definition at line 1111 of file bdflib.c.

Referenced by _bdf_parse_glyphs(), and bdf_load_font().

#define _BDF_PROPS   0x0010

Definition at line 1110 of file bdflib.c.

Referenced by _bdf_parse_properties(), and _bdf_parse_start().

#define _BDF_SIZE   0x0004

Definition at line 1108 of file bdflib.c.

Referenced by _bdf_parse_start().

#define _BDF_START   0x0001

Definition at line 1106 of file bdflib.c.

Referenced by _bdf_parse_glyphs(), _bdf_parse_start(), and bdf_load_font().

#define _BDF_SWIDTH   0x0100

Definition at line 1114 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define _BDF_SWIDTH_ADJ   0x1000

Definition at line 1119 of file bdflib.c.

Referenced by _bdf_parse_glyphs(), and bdf_load_font().

#define ACMSG1
Value:
"FONT_ASCENT property missing. " \
"Added `FONT_ASCENT %hd'.\n"

Definition at line 173 of file bdflib.c.

Referenced by _bdf_parse_properties(), and _bdf_parse_start().

#define ACMSG10   "DWIDTH field missing at line %ld. Set to glyph width.\n"

Definition at line 185 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define ACMSG11   "SIZE bits per pixel field adjusted to %hd.\n"

Definition at line 186 of file bdflib.c.

Referenced by _bdf_parse_start().

#define ACMSG12   "Duplicate encoding %ld (%s) changed to unencoded.\n"

Definition at line 187 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define ACMSG13   "Glyph %ld extra rows removed.\n"

Definition at line 188 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define ACMSG14   "Glyph %ld extra columns removed.\n"

Definition at line 189 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define ACMSG15   "Incorrect glyph count: %ld indicated but %ld found.\n"

Definition at line 190 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG16   "Glyph %ld missing columns padded with zero bits.\n"

Definition at line 191 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define ACMSG2
Value:
"FONT_DESCENT property missing. " \
"Added `FONT_DESCENT %hd'.\n"

Definition at line 175 of file bdflib.c.

Referenced by _bdf_parse_properties(), and _bdf_parse_start().

#define ACMSG3   "Font width != actual width. Old: %hd New: %hd.\n"

Definition at line 177 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG4
Value:
"Font left bearing != actual left bearing. " \
"Old: %hd New: %hd.\n"

Definition at line 178 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG5   "Font ascent != actual ascent. Old: %hd New: %hd.\n"

Definition at line 180 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG6   "Font descent != actual descent. Old: %hd New: %hd.\n"

Definition at line 181 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG7   "Font height != actual height. Old: %hd New: %hd.\n"

Definition at line 182 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG8   "Glyph scalable width (SWIDTH) adjustments made.\n"

Definition at line 183 of file bdflib.c.

Referenced by bdf_load_font().

#define ACMSG9   "SWIDTH field missing at line %ld. Set automatically.\n"

Definition at line 184 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define DBGMSG1   " [%6ld] %s" /* no \n */

Definition at line 205 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define DBGMSG2   " (0x%lX)\n"

Definition at line 206 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define ERRMSG1   "[line %ld] Missing `%s' line.\n"

Definition at line 194 of file bdflib.c.

Referenced by _bdf_parse_glyphs(), and _bdf_parse_start().

#define ERRMSG2   "[line %ld] Font header corrupted or missing fields.\n"

Definition at line 195 of file bdflib.c.

Referenced by bdf_load_font().

#define ERRMSG3   "[line %ld] Font glyphs corrupted or missing fields.\n"

Definition at line 196 of file bdflib.c.

Referenced by bdf_load_font().

#define ERRMSG4   "[line %ld] BBX too big.\n"

Definition at line 197 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define ERRMSG5   "[line %ld] `%s' value too big.\n"

Definition at line 198 of file bdflib.c.

Referenced by _bdf_parse_glyphs().

#define ERRMSG6   "[line %ld] Input line too long.\n"

Definition at line 199 of file bdflib.c.

Referenced by _bdf_readstream().

#define ERRMSG7   "[line %ld] Font name too long.\n"

Definition at line 200 of file bdflib.c.

Referenced by _bdf_set_default_spacing().

#define ERRMSG8   "[line %ld] Invalid `%s' value.\n"

Definition at line 201 of file bdflib.c.

Referenced by _bdf_add_property(), _bdf_parse_glyphs(), and _bdf_parse_start().

#define ERRMSG9   "[line %ld] Invalid keyword.\n"

Definition at line 202 of file bdflib.c.

Referenced by _bdf_parse_glyphs(), and _bdf_parse_start().

#define FT_COMPONENT   trace_bdflib

Definition at line 52 of file bdflib.c.

#define INITIAL_HT_SIZE   241

Definition at line 218 of file bdflib.c.

Referenced by hash_init().

#define isdigok (   m,
  d 
)    (m[(d) >> 3] & ( 1 << ( (d) & 7 ) ) )

Definition at line 844 of file bdflib.c.

Referenced by _bdf_atol(), _bdf_atos(), _bdf_atoul(), and _bdf_parse_glyphs().

#define NO_SKIP   256 /* this value cannot be stored in a 'char' */

Definition at line 656 of file bdflib.c.

Referenced by _bdf_readstream().

#define sbitset (   m,
  cc 
)    ( m[(FT_Byte)(cc) >> 3] & ( 1 << ( (cc) & 7 ) ) )

Definition at line 428 of file bdflib.c.

Referenced by _bdf_list_split().

#define setsbit (   m,
  cc 
)    ( m[(FT_Byte)(cc) >> 3] |= (FT_Byte)( 1 << ( (cc) & 7 ) ) )

Definition at line 426 of file bdflib.c.

Referenced by _bdf_list_split().

Typedef Documentation

typedef FT_Error(* _bdf_line_func_t)(char *line, unsigned long linelen, unsigned long lineno, void *call_data, void *client_data)

Definition at line 376 of file bdflib.c.

typedef struct _bdf_list_t_ _bdf_list_t
typedef struct _bdf_parse_t_ _bdf_parse_t
typedef void(* hash_free_func)(hashnode node)

Definition at line 221 of file bdflib.c.

Function Documentation

static FT_Error _bdf_add_comment ( bdf_font_t font,
char *  comment,
unsigned long  len 
)
static
static long _bdf_atol ( char *  s,
char **  end,
int  base 
)
static

Definition at line 896 of file bdflib.c.

References ddigits, hdigits, isdigok, and odigits.

Referenced by _bdf_add_property(), and _bdf_parse_glyphs().

static short _bdf_atos ( char *  s,
char **  end,
int  base 
)
static

Definition at line 951 of file bdflib.c.

References ddigits, hdigits, int, isdigok, and odigits.

Referenced by _bdf_parse_glyphs(), and _bdf_parse_start().

static unsigned long _bdf_atoul ( char *  s,
char **  end,
int  base 
)
static

Definition at line 849 of file bdflib.c.

References ddigits, hdigits, isdigok, and odigits.

Referenced by _bdf_add_property(), _bdf_parse_glyphs(), and _bdf_parse_start().

static int _bdf_is_atom ( char *  line,
unsigned long  linelen,
char **  name,
char **  value,
bdf_font_t font 
)
static

Definition at line 1230 of file bdflib.c.

References BDF_ATOM, bdf_get_property(), and bdf_property_t_::format.

Referenced by _bdf_parse_properties().

static void _bdf_list_done ( _bdf_list_t list)
static

Definition at line 442 of file bdflib.c.

References FT_FREE, and FT_ZERO.

Referenced by _bdf_set_default_spacing(), and bdf_load_font().

static FT_Error _bdf_list_ensure ( _bdf_list_t list,
unsigned long  num_items 
)
static

Definition at line 456 of file bdflib.c.

References error, FT_INT_MAX, and FT_RENEW_ARRAY.

Referenced by _bdf_list_split().

static void _bdf_list_init ( _bdf_list_t list,
FT_Memory  memory 
)
static

Definition at line 433 of file bdflib.c.

References FT_ZERO.

Referenced by _bdf_set_default_spacing(), and bdf_load_font().

static char* _bdf_list_join ( _bdf_list_t list,
int  c,
unsigned long *  alen 
)
static

Definition at line 517 of file bdflib.c.

References i, and j.

Referenced by _bdf_parse_glyphs(), _bdf_parse_properties(), and _bdf_parse_start().

static void _bdf_list_shift ( _bdf_list_t list,
unsigned long  n 
)
static

Definition at line 490 of file bdflib.c.

References i, and u.

Referenced by _bdf_parse_glyphs(), _bdf_parse_properties(), and _bdf_parse_start().

static FT_Error _bdf_list_split ( _bdf_list_t list,
char *  separators,
char *  line,
unsigned long  linelen 
)
static
static FT_Error _bdf_parse_glyphs ( char *  line,
unsigned long  linelen,
unsigned long  lineno,
void call_data,
void client_data 
)
static
static FT_Error _bdf_parse_properties ( char *  line,
unsigned long  linelen,
unsigned long  lineno,
void call_data,
void client_data 
)
static
static FT_Error _bdf_readstream ( FT_Stream  stream,
_bdf_line_func_t  callback,
void client_data,
unsigned long *  lno 
)
static
bdf_get_font_property ( bdf_font_t font,
const char *  name 
)
bdf_get_property ( char *  name,
bdf_font_t font 
)

Definition at line 1076 of file bdflib.c.

References _num_bdf_properties, _hashnode_::data, and hash_lookup().

Referenced by _bdf_is_atom().

static int by_encoding ( const void a,
const void b 
)
static

Definition at line 1006 of file bdflib.c.

References bdf_glyph_t_::encoding.

Referenced by _bdf_parse_glyphs().

static hashnode* hash_bucket ( const char *  key,
hashtable ht 
)
static

Definition at line 224 of file bdflib.c.

References bp, ft_strcmp, _hashnode_::key, hashtable_::size, and hashtable_::table.

Referenced by hash_insert(), hash_lookup(), and hash_rehash().

static void hash_free ( hashtable ht,
FT_Memory  memory 
)
static

Definition at line 302 of file bdflib.c.

References bp, FT_FREE, i, hashtable_::size, and hashtable_::table.

Referenced by bdf_free_font().

static FT_Error hash_init ( hashtable ht,
FT_Memory  memory 
)
static
static FT_Error hash_insert ( char *  key,
size_t  data,
hashtable ht,
FT_Memory  memory 
)
static
static hashnode hash_lookup ( const char *  key,
hashtable ht 
)
static

Definition at line 356 of file bdflib.c.

References hash_bucket().

Referenced by _bdf_add_property(), bdf_create_property(), bdf_get_font_property(), and bdf_get_property().

static FT_Error hash_rehash ( hashtable ht,
FT_Memory  memory 
)
static

Definition at line 252 of file bdflib.c.

References bp, error, FT_FREE, FT_NEW_ARRAY, hash_bucket(), i, hashtable_::limit, hashtable_::size, and hashtable_::table.

Referenced by hash_insert().

Variable Documentation

const bdf_options_t _bdf_opts
static
Initial value:
=
{
1,
1,
0,
}
#define BDF_PROPORTIONAL
Definition: bdf.h:63

Definition at line 62 of file bdflib.c.

Referenced by bdf_load_font().

const bdf_property_t _bdf_properties[]
static

Definition at line 80 of file bdflib.c.

const unsigned long _num_bdf_properties
static
Initial value:
= sizeof ( _bdf_properties ) /
sizeof ( _bdf_properties[0] )
static const bdf_property_t _bdf_properties[]
Definition: bdflib.c:80

Definition at line 168 of file bdflib.c.

Referenced by _bdf_add_property(), _bdf_parse_start(), bdf_create_property(), and bdf_get_property().

const unsigned char a2i[128]
static
Initial value:
=
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}

Definition at line 804 of file bdflib.c.

const unsigned char ddigits[32]
static
Initial value:
=
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 827 of file bdflib.c.

Referenced by _bdf_atol(), _bdf_atos(), and _bdf_atoul().

const char empty[1] = { 0 }
static

Definition at line 513 of file bdflib.c.

Referenced by _bdf_list_split().

const unsigned char hdigits[32]
static
Initial value:
=
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03,
0x7e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 835 of file bdflib.c.

Referenced by _bdf_atol(), _bdf_atos(), and _bdf_atoul().

const unsigned char nibble_mask[8]
static
Initial value:
=
{
0xFF, 0x80, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC, 0xFE
}

Definition at line 1453 of file bdflib.c.

const unsigned char odigits[32]
static
Initial value:
=
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 819 of file bdflib.c.

Referenced by _bdf_atol(), _bdf_atos(), and _bdf_atoul().