ReactOS  0.4.15-dev-2701-g34593d9
gxvmorx0.c File Reference
#include "gxvmorx.h"
Include dependency graph for gxvmorx0.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_gxvmorx
 

Functions

static void gxv_morx_subtable_type0_entry_validate (FT_UShort state, FT_UShort flags, GXV_XStateTable_GlyphOffsetCPtr glyphOffset_p, FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
 
 gxv_morx_subtable_type0_validate (FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_gxvmorx

Definition at line 39 of file gxvmorx0.c.

Function Documentation

◆ gxv_morx_subtable_type0_entry_validate()

static void gxv_morx_subtable_type0_entry_validate ( FT_UShort  state,
FT_UShort  flags,
GXV_XStateTable_GlyphOffsetCPtr  glyphOffset_p,
FT_Bytes  table,
FT_Bytes  limit,
GXV_Validator  gxvalid 
)
static

Definition at line 43 of file gxvmorx0.c.

50  {
51 #ifdef GXV_LOAD_UNUSED_VARS
52  FT_UShort markFirst;
53  FT_UShort dontAdvance;
54  FT_UShort markLast;
55 #endif
57 #ifdef GXV_LOAD_UNUSED_VARS
58  FT_UShort verb;
59 #endif
60 
61  FT_UNUSED( state );
62  FT_UNUSED( glyphOffset_p );
63  FT_UNUSED( table );
64  FT_UNUSED( limit );
65 
66 
67 #ifdef GXV_LOAD_UNUSED_VARS
68  markFirst = (FT_UShort)( ( flags >> 15 ) & 1 );
69  dontAdvance = (FT_UShort)( ( flags >> 14 ) & 1 );
70  markLast = (FT_UShort)( ( flags >> 13 ) & 1 );
71 #endif
72 
73  reserved = (FT_UShort)( flags & 0x1FF0 );
74 #ifdef GXV_LOAD_UNUSED_VARS
75  verb = (FT_UShort)( flags & 0x000F );
76 #endif
77 
78  if ( 0 < reserved )
79  {
80  GXV_TRACE(( " non-zero bits found in reserved range\n" ));
82  }
83  }
#define GXV_TRACE(s)
Definition: gxvcommn.h:304
GLint limit
Definition: glext.h:10326
r reserved
Definition: btrfs.c:2940
GLbitfield flags
Definition: glext.h:7161
static int state
Definition: maze.c:121
#define FT_INVALID_DATA
Definition: ftvalid.h:150
unsigned short FT_UShort
Definition: fttypes.h:209
#define FT_UNUSED(arg)
Definition: ftconfig.h:101

Referenced by gxv_morx_subtable_type0_validate().

◆ gxv_morx_subtable_type0_validate()

gxv_morx_subtable_type0_validate ( FT_Bytes  table,
FT_Bytes  limit,
GXV_Validator  gxvalid 
)

Definition at line 87 of file gxvmorx0.c.

90  {
91  FT_Bytes p = table;
92 
93 
95  "morx chain subtable type0 (Indic-Script Rearrangement)" );
96 
98 
99  gxvalid->xstatetable.optdata = NULL;
105 
106  gxv_XStateTable_validate( p, limit, gxvalid );
107 
108  GXV_EXIT;
109  }
GXV_XStateTable_Subtable_Setup_Func subtable_setup_func
Definition: gxvcommn.h:225
#define GXV_NAME_ENTER(name)
Definition: gxvcommn.h:301
GXV_XStateTable_OptData_Load_Func optdata_load_func
Definition: gxvcommn.h:227
GLenum GLsizei GLenum GLenum const GLvoid * table
Definition: glext.h:5644
static void gxv_morx_subtable_type0_entry_validate(FT_UShort state, FT_UShort flags, GXV_XStateTable_GlyphOffsetCPtr glyphOffset_p, FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
Definition: gxvmorx0.c:43
GLint limit
Definition: glext.h:10326
#define GXV_EXIT
Definition: gxvcommn.h:302
const FT_Byte * FT_Bytes
Definition: fttypes.h:165
GXV_XStateTable_Entry_Validate_Func entry_validate_func
Definition: gxvcommn.h:226
#define GXV_STATETABLE_HEADER_SIZE
Definition: gxvcommn.h:520
#define NULL
Definition: types.h:112
GLfloat GLfloat p
Definition: glext.h:8902
GXV_XStateTable_ValidatorRec xstatetable
Definition: gxvcommn.h:255
#define GXV_LIMIT_CHECK(_count)
Definition: gxvcommn.h:272
gxv_XStateTable_validate(FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid)
Definition: gxvcommn.c:1554

Referenced by gxv_morx_subtables_validate().