prevent an unsigned overflow in FT1 has_chars() implementation
[imager.git] / plug.h
... / ...
CommitLineData
1#include "imdatatypes.h"
2#include "immacros.h"
3
4/* structures for passing data between Imager-plugin and the Imager-module */
5
6#include "ext.h"
7
8
9#define getINT(k,s) (util_table->getint(INP,k,s))
10#define getDOUBLE(k,s) (util_table->getdouble(INP,k,s))
11#define getVOID(k,s) (util_table->getvoid(INP,k,(void**)s))
12#define getSTR(k,s) (util_table->getstr(INP,k,(char**)s))
13#define getOBJ(k,t,s) (util_table->getobj(INP,k,t,(void**)s))
14
15#define i_color_set(cl,r,g,b,a) (symbol_table->i_color_set(cl,r,g,b,a))
16#define i_color_info(cl) (symbol_table->i_color_info(cl))
17
18#define im_get_context() (symbol_table->im_get_context_f())
19#define i_img_empty_ch(im,x,y,ch) ((symbol_table->i_img_empty_ch_f(im_get_context(), im,x,y,ch))
20#define i_img_exorcise(im) (symbol_table->i_img_exorcise_f(im))
21#define i_img_info(im,info) (symbol_table->i_img_info_f(im,info))
22
23#define i_img_setmask(im,ch_mask) (symbol_table->i_img_setmask_f(im,ch_mask))
24#define i_img_getmask(im) (symbol_table->i_img_getmask_f(im))
25
26/*
27Not needed? The i_gpix() macro in image.h will call the right function
28directly.
29#define i_ppix(im,x,y,val) (symbol_table->i_ppix(im,x,y,val))
30#define i_gpix(im,x,y,val) (symbol_table->i_gpix(im,x,y,val))
31*/
32
33#define i_box(im, x1, y1, x2, y2,val) (symbol_table->i_box(im, x1, y1, x2, y2,val))
34#define i_draw(im, x1, y1, x2, y2,val) (symbol_table->i_draw(im, x1, y1, x2, y2,val))
35#define i_arc(im, x, y, rad, d1, d2,val) (symbol_table->i_arc(im, x, y, rad, d1, d2,val))
36#define i_copyto(im,src, x1, y1, x2, y2, tx, ty,trans) (symbol_table->i_copyto(im,src, x1, y1, x2, y2, tx, ty,trans))
37#define i_rubthru(im,src, tx, ty) (symbol_table->i_rubthru(im,src, tx, ty))
38
39#ifdef WIN32
40extern char __declspec(dllexport) evalstr[];
41extern func_ptr __declspec(dllexport) function_list[];
42#endif