| OLD | NEW |
| 1 /***************************************************************************/ | 1 /***************************************************************************/ |
| 2 /* */ | 2 /* */ |
| 3 /* ftpic.c */ | 3 /* ftpic.c */ |
| 4 /* */ | 4 /* */ |
| 5 /* The FreeType position independent code services (body). */ | 5 /* The FreeType position independent code services (body). */ |
| 6 /* */ | 6 /* */ |
| 7 /* Copyright 2009 by */ | 7 /* Copyright 2009, 2013 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 #include "../../include/ft2build.h" | 19 #include <ft2build.h> |
| 20 #include "../../include/freetype/freetype.h" | 20 #include FT_FREETYPE_H |
| 21 #include "../../include/freetype/internal/ftobjs.h" | 21 #include FT_INTERNAL_OBJECTS_H |
| 22 #include "basepic.h" | 22 #include "basepic.h" |
| 23 | 23 |
| 24 #ifdef FT_CONFIG_OPTION_PIC | 24 #ifdef FT_CONFIG_OPTION_PIC |
| 25 | 25 |
| 26 /* documentation is in ftpic.h */ | 26 /* documentation is in ftpic.h */ |
| 27 | 27 |
| 28 FT_BASE_DEF( FT_Error ) | 28 FT_BASE_DEF( FT_Error ) |
| 29 ft_pic_container_init( FT_Library library ) | 29 ft_pic_container_init( FT_Library library ) |
| 30 { | 30 { |
| 31 FT_PIC_Container* pic_container = &library->pic_container; | 31 FT_PIC_Container* pic_container = &library->pic_container; |
| 32 FT_Error error = FT_Err_Ok; | 32 FT_Error error; |
| 33 | 33 |
| 34 | 34 |
| 35 FT_MEM_SET( pic_container, 0, sizeof ( *pic_container ) ); | 35 FT_MEM_SET( pic_container, 0, sizeof ( *pic_container ) ); |
| 36 | 36 |
| 37 error = ft_base_pic_init( library ); | 37 error = ft_base_pic_init( library ); |
| 38 if ( error ) | 38 if ( error ) |
| 39 return error; | 39 return error; |
| 40 | 40 |
| 41 return FT_Err_Ok; | 41 return FT_Err_Ok; |
| 42 } | 42 } |
| 43 | 43 |
| 44 | 44 |
| 45 /* Destroy the contents of the container. */ | 45 /* Destroy the contents of the container. */ |
| 46 FT_BASE_DEF( void ) | 46 FT_BASE_DEF( void ) |
| 47 ft_pic_container_destroy( FT_Library library ) | 47 ft_pic_container_destroy( FT_Library library ) |
| 48 { | 48 { |
| 49 ft_base_pic_free( library ); | 49 ft_base_pic_free( library ); |
| 50 } | 50 } |
| 51 | 51 |
| 52 #endif /* FT_CONFIG_OPTION_PIC */ | 52 #endif /* FT_CONFIG_OPTION_PIC */ |
| 53 | 53 |
| 54 | 54 |
| 55 /* END */ | 55 /* END */ |
| OLD | NEW |