Add new service for inter-module calls

System Internals / FreeType - Ewald Hew [gmail.com] - 25 September 2017 03:26 EDT

NOTE: Does not compile!

This is to allow CFF functions moved to `psaux' to call functions declared in `src/cff/cffload.h'.

- include/freetype/internal/services/svcfftl.h: New file, setting up a `CFFLoad' service.

- include/freetype/internal/ftserv.h (FT_DEFINE_SERVICEDESCREC10, FT_DEFINE_SERVICEDESCREC): New macros. (FT_SERVICE_CFF_TABLE_LOAD_H): New macro.

- src/cff/cffdrivr.c, src/cff/cffpic.h: Register the new service.

- src/cff/cfftypes.h (CFF_FontRec), src/psaux/cf2font.h (CF2_FontRec): Add service interface.

- src/cff/cffobjs.c, src/psaux/cf2font.c, src/psaux/cf2ft.c, src/psaux/cf2intrp.c, src/psaux/cffdecode.c: Use the new service.

edacde6 Add new service for inter-module calls.
ChangeLog | 24 +++++++
include/freetype/internal/ftserv.h | 90 +++++++++++++++++++++++++-
include/freetype/internal/services/svcfftl.h | 94 ++++++++++++++++++++++++++++
src/cff/cffdrivr.c | 36 ++++++++---
src/cff/cffobjs.c | 4 ++
src/cff/cffpic.h | 5 +-
src/cff/cfftypes.h | 3 +
src/psaux/cf2font.c | 17 ++---
src/psaux/cf2font.h | 5 +-
src/psaux/cf2ft.c | 2 +
src/psaux/cf2intrp.c | 19 +++---
src/psaux/cffdecode.c | 25 +++++++-
12 files changed, 292 insertions(+), 32 deletions(-)

Upstream: git.savannah.gnu.org


  • Share