#include "config.h"#include "system.h"#include "coretypes.h"#include "tm.h"#include "cpplib.h"#include "tree.h"#include "c-pragma.h"#include "c-tree.h"#include "c-incpath.h"#include "c-common.h"#include "toplev.h"#include "flags.h"#include "tm_p.h"#include "cppdefault.h"#include "prefix.h"

Go to the source code of this file.
| #define BAD | ( | gmsgid | ) | do { warning (OPT_Wpragmas, gmsgid); return; } while (0) |
Definition at line 40 of file darwin-c.c.
Definition at line 41 of file darwin-c.c.
| #define builtin_define | ( | TXT | ) | cpp_define (pfile, TXT) |
Definition at line 607 of file darwin-c.c.
Definition at line 201 of file darwin-c.c.
References frameworks_in_use, i, max_frameworks, memcpy, num_frameworks, strncmp(), XNEWVEC, and xrealloc().
| void add_framework_path | ( | char * | path | ) |
Definition at line 445 of file darwin-c.c.
References add_cpp_dir_path(), BRACKET, cpp_dir::construct, framework_construct_pathname(), cpp_dir::name, cpp_dir::next, NULL, p, cpp_dir::sysp, using_frameworks, xmalloc(), and XNEW.
| static void add_system_framework_path | ( | char * | path | ) | [static] |
Definition at line 426 of file darwin-c.c.
References add_cpp_dir_path(), cpp_dir::construct, framework_construct_pathname(), cpp_dir::name, cpp_dir::next, NULL, p, cpp_dir::sysp, SYSTEM, using_frameworks, and XNEW.
| void darwin_cpp_builtins | ( | cpp_reader * | pfile | ) |
Definition at line 610 of file darwin-c.c.
References builtin_define, builtin_define_with_value(), and version_as_macro().
| void darwin_pragma_ignore | ( | cpp_reader *pfile | ATTRIBUTE_UNUSED | ) |
Definition at line 93 of file darwin-c.c.
| void darwin_pragma_ms_struct | ( | cpp_reader *pfile | ATTRIBUTE_UNUSED | ) |
Definition at line 165 of file darwin-c.c.
References BAD, darwin_ms_struct, IDENTIFIER_POINTER, pragma_lex(), and strcmp().
| void darwin_pragma_options | ( | cpp_reader *pfile | ATTRIBUTE_UNUSED | ) |
Definition at line 101 of file darwin-c.c.
References BAD, IDENTIFIER_POINTER, pop_field_alignment(), pragma_lex(), push_field_alignment(), strcmp(), warning, and x.
| void darwin_pragma_unused | ( | cpp_reader *pfile | ATTRIBUTE_UNUSED | ) |
Definition at line 133 of file darwin-c.c.
References BAD, lookup_name(), pragma_lex(), TREE_CODE, TREE_USED, and x.
| void darwin_register_frameworks | ( | const char * | sysroot, | |
| const char *iprefix | ATTRIBUTE_UNUSED, | |||
| int | stdinc | |||
| ) |
Definition at line 512 of file darwin-c.c.
References add_system_framework_path(), concat(), cpp_get_callbacks(), find_subframework_header(), framework_defaults, i, cpp_callbacks::missing_header, NULL, parse_in, str, using_frameworks, and xstrdup().
| void darwin_register_objc_includes | ( | const char * | sysroot, | |
| const char * | iprefix, | |||
| int | stdinc | |||
| ) |
Definition at line 468 of file darwin-c.c.
References add_path(), c_dialect_objc, concat(), cpp_GCC_INCLUDE_DIR, cpp_GCC_INCLUDE_DIR_len, flag_next_runtime, GCC_INCLUDE_DIR, len, NULL, str, strncmp(), SYSTEM, and update_path().
Definition at line 234 of file darwin-c.c.
References frameworks_in_use, i, num_frameworks, and strncmp().
| static const char * find_subframework_file | ( | const char * | fname, | |
| const char * | pname | |||
| ) | [static] |
Definition at line 340 of file darwin-c.c.
References add_framework(), bufptr, framework_header::dirName, find_framework(), free(), i, strchr, strcpy, strlen(), strncpy(), strstr(), warning, and XNEWVEC.
| static const char * find_subframework_header | ( | cpp_reader * | pfile, | |
| const char * | header, | |||
| cpp_dir ** | dirp | |||
| ) | [static] |
Definition at line 545 of file darwin-c.c.
References b, cpp_get_buffer(), cpp_get_dir(), cpp_get_file(), cpp_get_path(), cpp_get_prev(), find_subframework_file(), and n.
| static char* framework_construct_pathname | ( | const char * | fname, | |
| cpp_dir * | dir | |||
| ) | [static] |
Definition at line 265 of file darwin-c.c.
References add_framework(), buf, framework_header::dirName, find_framework(), free(), i, cpp_dir::len, cpp_dir::name, strchr, strcpy, strlen(), strncpy(), and XNEWVEC.
Definition at line 76 of file darwin-c.c.
References align_stack::alignment, error(), free(), maximum_field_alignment, and align_stack::prev.
| static void push_field_alignment | ( | int | bit_alignment | ) | [static] |
Definition at line 64 of file darwin-c.c.
References align_stack::alignment, maximum_field_alignment, align_stack::prev, and XNEW.
| static const char* version_as_macro | ( | void | ) | [static] |
Definition at line 575 of file darwin-c.c.
References error(), fail, ISDIGIT, result, and strncmp().
Referenced by darwin_cpp_builtins().
Definition at line 188 of file darwin-c.c.
struct align_stack* field_align_stack = NULL [static] |
Definition at line 61 of file darwin-c.c.
const char* framework_defaults[] [static] |
Initial value:
{
"/System/Library/Frameworks",
"/Library/Frameworks",
}
Definition at line 459 of file darwin-c.c.
struct framework_header framework_header_dirs[] [static] |
Initial value:
{
{ "Headers", 7 },
{ "PrivateHeaders", 14 },
{ NULL, 0 }
}
Definition at line 255 of file darwin-c.c.
struct { ... } * frameworks_in_use [static] |
Definition at line 186 of file darwin-c.c.
int max_frameworks = 0 [static] |
Definition at line 191 of file darwin-c.c.
| const char* name |
Definition at line 187 of file darwin-c.c.
int num_frameworks = 0 [static] |
Definition at line 190 of file darwin-c.c.
bool using_frameworks = false [static] |
Definition at line 43 of file darwin-c.c.
1.5.6