Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/psnames/pspic.h

Issue 89753003: Update freetype to latest version of ASOP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src/third_party/freetype.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/psnames/psmodule.c ('k') | src/psnames/pspic.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /***************************************************************************/ 1 /***************************************************************************/
2 /* */ 2 /* */
3 /* pspic.h */ 3 /* pspic.h */
4 /* */ 4 /* */
5 /* The FreeType position independent code services for psnames module. */ 5 /* The FreeType position independent code services for psnames module. */
6 /* */ 6 /* */
7 /* Copyright 2009 by */ 7 /* Copyright 2009, 2012 by */
8 /* Oran Agra and Mickey Gabel. */ 8 /* Oran Agra and Mickey Gabel. */
9 /* */ 9 /* */
10 /* This file is part of the FreeType project, and may only be used, */ 10 /* This file is part of the FreeType project, and may only be used, */
11 /* modified, and distributed under the terms of the FreeType project */ 11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */ 13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */ 14 /* understand and accept it fully. */
15 /* */ 15 /* */
16 /***************************************************************************/ 16 /***************************************************************************/
17 17
18 18
19 #ifndef __PSPIC_H__ 19 #ifndef __PSPIC_H__
20 #define __PSPIC_H__ 20 #define __PSPIC_H__
21 21
22 22
23 FT_BEGIN_HEADER 23 FT_BEGIN_HEADER
24 24
25 #include FT_INTERNAL_PIC_H 25 #include FT_INTERNAL_PIC_H
26 26
27 #ifndef FT_CONFIG_OPTION_PIC 27 #ifndef FT_CONFIG_OPTION_PIC
28 #define FT_PSCMAPS_SERVICES_GET pscmaps_services 28
29 #define FT_PSCMAPS_INTERFACE_GET pscmaps_interface 29 #define PSCMAPS_SERVICES_GET pscmaps_services
30 #define PSCMAPS_INTERFACE_GET pscmaps_interface
30 31
31 #else /* FT_CONFIG_OPTION_PIC */ 32 #else /* FT_CONFIG_OPTION_PIC */
32 33
33 #include FT_SERVICE_POSTSCRIPT_CMAPS_H 34 #include FT_SERVICE_POSTSCRIPT_CMAPS_H
34 35
35 typedef struct PSModulePIC_ 36 typedef struct PSModulePIC_
36 { 37 {
37 FT_ServiceDescRec* pscmaps_services; 38 FT_ServiceDescRec* pscmaps_services;
38 FT_Service_PsCMapsRec pscmaps_interface; 39 FT_Service_PsCMapsRec pscmaps_interface;
40
39 } PSModulePIC; 41 } PSModulePIC;
40 42
41 #define GET_PIC(lib) ((PSModulePIC*)((lib)->pic_container.psnames )) 43
42 #define FT_PSCMAPS_SERVICES_GET (GET_PIC(library)->pscmaps_services) 44 #define GET_PIC( lib ) \
43 #define FT_PSCMAPS_INTERFACE_GET (GET_PIC(library)->pscmaps_interface) 45 ( (PSModulePIC*)((lib)->pic_container.psnames) )
46 #define PSCMAPS_SERVICES_GET ( GET_PIC( library )->pscmaps_services )
47 #define PSCMAPS_INTERFACE_GET ( GET_PIC( library )->pscmaps_interface )
48
44 49
45 /* see pspic.c for the implementation */ 50 /* see pspic.c for the implementation */
46 void 51 void
47 psnames_module_class_pic_free( FT_Library library ); 52 psnames_module_class_pic_free( FT_Library library );
48 53
49 FT_Error 54 FT_Error
50 psnames_module_class_pic_init( FT_Library library ); 55 psnames_module_class_pic_init( FT_Library library );
51 56
52 #endif /* FT_CONFIG_OPTION_PIC */ 57 #endif /* FT_CONFIG_OPTION_PIC */
53 58
54 /* */ 59 /* */
55 60
56 FT_END_HEADER 61 FT_END_HEADER
57 62
58 #endif /* __PSPIC_H__ */ 63 #endif /* __PSPIC_H__ */
59 64
60 65
61 /* END */ 66 /* END */
OLDNEW
« no previous file with comments | « src/psnames/psmodule.c ('k') | src/psnames/pspic.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698