1 /***************************************************************************/ |
1 /**************************************************************************** |
2 /* */ |
2 * |
3 /* ftrfork.c */ |
3 * ftrfork.c |
4 /* */ |
4 * |
5 /* Embedded resource forks accessor (body). */ |
5 * Embedded resource forks accessor (body). |
6 /* */ |
6 * |
7 /* Copyright 2004-2018 by */ |
7 * Copyright (C) 2004-2019 by |
8 /* Masatake YAMATO and Redhat K.K. */ |
8 * Masatake YAMATO and Redhat K.K. |
9 /* */ |
9 * |
10 /* FT_Raccess_Get_HeaderInfo() and raccess_guess_darwin_hfsplus() are */ |
10 * FT_Raccess_Get_HeaderInfo() and raccess_guess_darwin_hfsplus() are |
11 /* derived from ftobjs.c. */ |
11 * derived from ftobjs.c. |
12 /* */ |
12 * |
13 /* This file is part of the FreeType project, and may only be used, */ |
13 * This file is part of the FreeType project, and may only be used, |
14 /* modified, and distributed under the terms of the FreeType project */ |
14 * modified, and distributed under the terms of the FreeType project |
15 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
15 * license, LICENSE.TXT. By continuing to use, modify, or distribute |
16 /* this file you indicate that you have read the license and */ |
16 * this file you indicate that you have read the license and |
17 /* understand and accept it fully. */ |
17 * understand and accept it fully. |
18 /* */ |
18 * |
19 /***************************************************************************/ |
19 */ |
20 |
20 |
21 /***************************************************************************/ |
21 /**************************************************************************** |
22 /* Development of the code in this file is support of */ |
22 * Development of the code in this file is support of |
23 /* Information-technology Promotion Agency, Japan. */ |
23 * Information-technology Promotion Agency, Japan. |
24 /***************************************************************************/ |
24 */ |
25 |
25 |
26 |
26 |
27 #include <ft2build.h> |
27 #include <ft2build.h> |
28 #include FT_INTERNAL_DEBUG_H |
28 #include FT_INTERNAL_DEBUG_H |
29 #include FT_INTERNAL_STREAM_H |
29 #include FT_INTERNAL_STREAM_H |
30 #include FT_INTERNAL_RFORK_H |
30 #include FT_INTERNAL_RFORK_H |
31 #include "basepic.h" |
31 |
32 #include "ftbase.h" |
32 #include "ftbase.h" |
33 |
33 |
34 #undef FT_COMPONENT |
34 #undef FT_COMPONENT |
35 #define FT_COMPONENT trace_raccess |
35 #define FT_COMPONENT raccess |
36 |
36 |
37 |
37 |
38 /*************************************************************************/ |
38 /*************************************************************************/ |
39 /*************************************************************************/ |
39 /*************************************************************************/ |
40 /*************************************************************************/ |
40 /*************************************************************************/ |
436 FT_Int32 magic, |
436 FT_Int32 magic, |
437 FT_Long *result_offset ); |
437 FT_Long *result_offset ); |
438 |
438 |
439 static FT_Error |
439 static FT_Error |
440 raccess_guess_linux_double_from_file_name( FT_Library library, |
440 raccess_guess_linux_double_from_file_name( FT_Library library, |
441 char * file_name, |
441 char* file_name, |
442 FT_Long *result_offset ); |
442 FT_Long *result_offset ); |
443 |
443 |
444 static char * |
444 static char * |
445 raccess_make_file_name( FT_Memory memory, |
445 raccess_make_file_name( FT_Memory memory, |
446 const char *original_name, |
446 const char *original_name, |