#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 "toplev.h"#include "tm_p.h"#include "cppdefault.h"#include "prefix.h"

Go to the source code of this file.
| #define BAD | ( | gmsgid | ) | do { warning (gmsgid); return; } while (0) |
Definition at line 38 of file darwin-c.c.
Definition at line 176 of file darwin-c.c.
References frameworks_in_use, i, max_frameworks, memcpy, num_frameworks, strncmp(), xmalloc(), and xrealloc().
Referenced by find_subframework_file(), and framework_construct_pathname().
| void add_framework_path | ( | char * | path | ) |
Definition at line 404 of file darwin-c.c.
| static void add_system_framework_path | ( | char * | path | ) | [static] |
Definition at line 385 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 xmalloc().
Referenced by darwin_register_frameworks().
| void darwin_pragma_ignore | ( | cpp_reader *pfile | ATTRIBUTE_UNUSED | ) |
Definition at line 90 of file darwin-c.c.
| void darwin_pragma_options | ( | cpp_reader *pfile | ATTRIBUTE_UNUSED | ) |
Definition at line 98 of file darwin-c.c.
References BAD, c_lex(), IDENTIFIER_POINTER, pop_field_alignment(), push_field_alignment(), strcmp(), warning, and x.
| void darwin_pragma_unused | ( | cpp_reader *pfile | ATTRIBUTE_UNUSED | ) |
Definition at line 130 of file darwin-c.c.
References BAD, c_lex(), lookup_name(), TREE_CODE, TREE_USED, warning, and x.
| void darwin_register_frameworks | ( | const char * | sysroot, | |
| const char *iprefix | ATTRIBUTE_UNUSED, | |||
| int | stdinc | |||
| ) |
Definition at line 471 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 427 of file darwin-c.c.
Definition at line 209 of file darwin-c.c.
References frameworks_in_use, i, num_frameworks, and strncmp().
Referenced by find_subframework_file(), and framework_construct_pathname().
| static const char * find_subframework_file | ( | const char * | fname, | |
| const char * | pname | |||
| ) | [static] |
Definition at line 299 of file darwin-c.c.
References add_framework(), bufptr, framework_header::dirName, find_framework(), free(), i, strchr, strcpy, strlen(), strncpy(), strstr(), warning, and xmalloc().
Referenced by find_subframework_header().
| static const char * find_subframework_header | ( | cpp_reader * | pfile, | |
| const char * | header, | |||
| cpp_dir ** | dirp | |||
| ) | [static] |
Definition at line 504 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.
Referenced by darwin_register_frameworks().
| static char* framework_construct_pathname | ( | const char * | fname, | |
| cpp_dir * | dir | |||
| ) | [static] |
Definition at line 240 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 xmalloc().
Referenced by add_framework_path(), and add_system_framework_path().
Definition at line 73 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 61 of file darwin-c.c.
References align_stack::alignment, maximum_field_alignment, align_stack::prev, and xmalloc().
Definition at line 163 of file darwin-c.c.
Referenced by _cpp_compare_file_date(), _cpp_handle_directive(), _cpp_stack_include(), _nl_make_l10nflist(), add_dir(), adjust_range_with_scev(), Analyze_all_indices(), append_all_phase_dirs(), append_include_chain(), append_phase_dir(), build_classic_dir_vector(), change_phase_path(), cif_VerifyCanWrite(), Dep_Carried_Outside_Or_Zero(), Dep_Preserved(), Depv_Carried_By_Outer_Loop(), Depv_Collapse(), DRA_Make_File_Name(), DST_copy_include_dir(), DST_directory_of(), DST_dump_include_dirs(), DST_mk_include_dir(), elfNN_ia64_hash_copy_indirect(), DEPV_LIST::Eliminate_Inner_Carried(), DEPV_LIST::Eliminate_Inner_Carried_Or_All_Equals(), DEPV_LIST::Eliminate_Non_Distance_Carried_By(), ANL_FUNC_ENTRY::Emit_Original_Construct(), F90_Generate_Loops(), find_separate_debug_file(), finish_repo(), get_charset_aliases(), get_executable_dir_from_path(), get_mem_dep(), get_phases_real_path(), COST_TABLE::Init(), DEPV_ARRAY::Is_Blockable(), is_pound_line_dir(), load_register_parameters(), DEPV_ARRAY::Loop_Carrying_Dependence(), make_cpp_dir(), DEPV_NODE::Normalize_Step(), DEPV_ARRAY::One_Equal_Through_Depth(), open_include_file(), parse_include(), prefix_all_phase_dirs(), print_direction_vector(), remap_filename(), RV_Depv_Is_Reversable(), s(), search_path_head(), set_scripts_dir(), DEPV_ARRAY::Shorten_To_Dep(), SNL_Depv_Is_LCD(), SNL_Depv_Is_Permutable(), SNL_Update_Strip_Dependence(), CANT_BE_AVAIL_SEARCH< PRE_DIRECTION >::Start_from(), substitute_phase_dirs(), WFE_Set_Line_And_File(), WGEN_Set_Line_And_File(), and write_real_cst().
struct align_stack* field_align_stack = NULL [static] |
Definition at line 58 of file darwin-c.c.
const char* framework_defaults[] [static] |
Initial value:
{
"/System/Library/Frameworks",
"/Library/Frameworks",
}
Definition at line 418 of file darwin-c.c.
Referenced by darwin_register_frameworks().
struct framework_header framework_header_dirs[] [static] |
Initial value:
{
{ "Headers", 7 },
{ "PrivateHeaders", 14 },
{ NULL, 0 }
}
Definition at line 230 of file darwin-c.c.
struct { ... } * frameworks_in_use [static] |
Referenced by add_framework(), and find_framework().
Definition at line 161 of file darwin-c.c.
int max_frameworks = 0 [static] |
| const char* name |
Definition at line 162 of file darwin-c.c.
int num_frameworks = 0 [static] |
bool using_frameworks = false [static] |
Definition at line 40 of file darwin-c.c.
Referenced by add_framework_path(), add_system_framework_path(), and darwin_register_frameworks().
1.5.6