diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-11-08 16:53:46 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-11-08 16:53:46 +0000 |
commit | 8b70788fa0333ae44b46195dd78f8614438443c9 (patch) | |
tree | 467400baaaeaf8b4ffffc650c4414c208ab11ac4 /Build/source/texk/ttfdump/libttf/gstate.c | |
parent | 35d16fdfd460a826228374bc74b0d68c7923e112 (diff) |
ttfdump: Major update (see ChangeLog for details)
git-svn-id: svn://tug.org/texlive/trunk@24546 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttfdump/libttf/gstate.c')
-rw-r--r-- | Build/source/texk/ttfdump/libttf/gstate.c | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/Build/source/texk/ttfdump/libttf/gstate.c b/Build/source/texk/ttfdump/libttf/gstate.c index ba94ca69c79..d436bae3569 100644 --- a/Build/source/texk/ttfdump/libttf/gstate.c +++ b/Build/source/texk/ttfdump/libttf/gstate.c @@ -6,38 +6,30 @@ #include "ttf.h" #include "ttfutil.h" -#ifdef MEMCHECK -#include <dmalloc.h> -#endif - /* $Id: gstate.c,v 1.1.1.1 1998/06/05 07:47:52 robert Exp $ */ -#ifndef lint -static char vcid[] = "$Id: gstate.c,v 1.1.1.1 1998/06/05 07:47:52 robert Exp $"; -#endif /* lint */ - GraphicsState gsdefault; void ttfInitGraphicsState(TTFontPtr font) { - /*font->gstate = GS_DEFAULT; - font->gstate_init = GS_DEFAULT;*/ +#if 0 + font->gstate = GS_DEFAULT; + font->gstate_init = GS_DEFAULT; +#endif - /*ttfExecuteInstruction(font, font->fpgm); - ttfExecuteInstruction(font, font->prep);*/ +#if 0 + ttfExecuteInstruction(font, font->fpgm); + ttfExecuteInstruction(font, font->prep); +#endif } void ttfInitStack(TTFontPtr font) { font->vm.sp = 0; - font->vm.Stack = (LONG *) calloc (font->maxp->maxStackElements, sizeof(LONG)); - if (font->vm.Stack == NULL) - ttfError("Out of memory\n"); + font->vm.Stack = XCALLOC (font->maxp->maxStackElements, LONG); } void ttfInitStorageArea(TTFontPtr font) { - font->vm.StorageArea = (LONG *) calloc (font->maxp->maxStorage, sizeof(LONG)); - if (font->vm.StorageArea == NULL) - ttfError("Out of memory\n"); + font->vm.StorageArea = XCALLOC (font->maxp->maxStorage, LONG); } |