| 1 |
#include <stdlib.h> |
| 2 |
#include <stdio.h> |
| 3 |
#include <assert.h> |
| 4 |
#include <hb.h> |
| 5 |
#include <hb-ot.h> |
| 6 |
#include <string.h> |
| 7 |
|
| 8 |
#include <lua.h> |
| 9 |
#include <lauxlib.h> |
| 10 |
#include <lualib.h> |
| 11 |
|
| 12 |
typedef hb_blob_t* Blob; |
| 13 |
typedef hb_face_t* Face; |
| 14 |
typedef hb_font_t* Font; |
| 15 |
typedef hb_buffer_t* Buffer; |
| 16 |
typedef hb_set_t* Set; |
| 17 |
typedef hb_feature_t Feature; |
| 18 |
typedef hb_tag_t Tag; |
| 19 |
typedef hb_script_t Script; |
| 20 |
typedef hb_direction_t Direction; |
| 21 |
typedef hb_language_t Language; |
| 22 |
typedef hb_variation_t Variation; |
| 23 |
|
| 24 |
typedef struct luahb_constant_t { |
| 25 |
const char *name; |
| 26 |
int value; |
| 27 |
} luahb_constant_t; |
| 28 |
|
| 29 |
// Functions to create classes and push them onto the stack |
| 30 |
int register_class(lua_State *L, const char *name, const luaL_Reg * methods, const luaL_Reg *functions, const luahb_constant_t* constants); |