#ifndef __TTF_ERROR_H
#define __TTF_ERROR_H

typedef enum {
  error_invalid_filename,
  error_read,
  error_out_of_memory,
  error_invalid_table,
  error_invalid_format,
  error_not_implement,
  error_invalid_version,
  error_need_head_table,
  error_need_maxp_table,
  error_invalid_prep,
  error_invalid_index,
  error_openfile
} error_type;

extern void Error_throw(error_type,...);
extern char *ttf_alloc(int size);

#endif
