亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? objc-actions.c

?? 早期freebsd實現
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* Implement classes and message passing for Objective C.   Copyright (C) 1992 Free Software Foundation, Inc.   Author: Steve Naroff.This file is part of GNU CC.GNU CC is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU CC is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU CC; see the file COPYING.  If not, write tothe Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  *//* *      Purpose: This module implements the Objective-C 4.0 language. * *      compatibility issues (with the Stepstone translator): * *	- does not recognize the following 3.3 constructs. *	  @requires, @classes, @messages, = (...) *	- methods with variable arguments must conform to ANSI standard. *	- tagged structure definitions that appear in BOTH the interface *	  and implementation are not allowed. *      - public/private: all instance variables are public within the *        context of the implementation...I consider this to be a bug in *        the translator. *      - statically allocated objects are not supported. the user will *        receive an error if this service is requested. * *      code generation `options': * *      - OBJC_INT_SELECTORS, OBJC_SELECTORS_WITHOUT_LABELS, NEXT_OBJC_RUNTIME */#include <stdio.h>#include "config.h"#include "tree.h"#include "c-tree.h"#include "c-lex.h"#include "flags.h"#include "objc-actions.h"#include "input.h"/* The GNU run time requires the selectors in a vector   so it can store the operation numbers in them.  */#ifndef NEXT_OBJC_RUNTIME#define OBJC_SELECTORS_WITHOUT_LABELS#endif/* Define the special tree codes that we use.  *//* Table indexed by tree code giving a string containing a character   classifying the tree code.  Possibilities are   t, d, s, c, r, <, 1 and 2.  See objc-tree.def for details.  */#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) TYPE,char *objc_tree_code_type[] = {  "x",#include "objc-tree.def"};#undef DEFTREECODE/* Table indexed by tree code giving number of expression   operands beyond the fixed part of the node structure.   Not used for types or decls.  */#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) LENGTH,int objc_tree_code_length[] = {  0,#include "objc-tree.def"};#undef DEFTREECODE/* Names of tree components.   Used for printing out the tree and error messages.  */#define DEFTREECODE(SYM, NAME, TYPE, LEN) NAME,char *objc_tree_code_name[] = {  "@@dummy",#include "objc-tree.def"};#undef DEFTREECODE/* Set up for use of obstacks.  */#include "obstack.h"#define obstack_chunk_alloc xmalloc#define obstack_chunk_free free/* This obstack is used to accumulate the encoding of a data type.  */static struct obstack util_obstack;/* This points to the beginning of obstack contents,   so we can free the whole contents.  */char *util_firstobj;/* for encode_method_def */#include "rtl.h"#define OBJC_VERSION	2#define NULLT	(tree) 0#define OBJC_ENCODE_INLINE_DEFS 	0#define OBJC_ENCODE_DONT_INLINE_DEFS	1/*** Private Interface (procedures) ***//* code generation */static void synth_module_prologue ();static char *build_module_descriptor ();static tree init_module_descriptor ();static void build_module_entry ();static tree build_objc_method_call ();static void build_message_selector_pool ();static void build_selector_translation_table ();static tree build_ivar_chain ();static tree build_ivar_template ();static tree build_method_template ();static tree build_private_template ();static void build_class_template ();static void build_category_template ();static tree build_super_template ();static void synth_forward_declarations ();static void generate_ivar_lists ();static void generate_dispatch_tables ();static void generate_shared_structures ();static tree build_msg_pool_reference ();static tree init_selector ();static tree build_keword_selector ();static tree synth_id_with_class_suffix ();/* misc. bookkeeping */typedef struct hashedEntry 	*hash;typedef struct hashedAttribute  *attr;struct hashedAttribute {        attr    next;        tree    value;};struct hashedEntry {        attr    list;	hash	next;	tree 	key;};static void hash_init ();static void hash_enter ();static hash hash_lookup ();static void hash_add_attr ();static tree lookup_method ();static tree lookup_instance_method_static ();static tree lookup_class_method_static ();static tree add_class ();static int  add_selector_reference ();static void add_class_reference ();static int  add_objc_string ();/* type encoding */static void encode_aggregate ();static void encode_bitfield ();static void encode_type ();static void encode_field_decl ();static void really_start_method ();static int  comp_method_with_proto ();static int  comp_proto_with_proto ();static tree get_arg_type_list ();static tree expr_last ();/* utilities for debugging and error diagnostics: */static void warn_with_method ();static void error_with_method ();static void error_with_ivar ();static char *gen_method_decl ();static char *gen_declaration ();static char *gen_declarator ();static int is_complex_decl ();static void adorn_decl ();static void dump_interfaces ();/*** Private Interface (data) ***//* reserved tag definitions: */#define TYPE_ID			"id"#define TAG_OBJECT		"objc_object"#define TAG_CLASS		"objc_class"#define TAG_SUPER		"objc_super"#define TAG_SELECTOR		"objc_selector"#define _TAG_CLASS		"_objc_class"#define _TAG_IVAR		"_objc_ivar"#define _TAG_IVAR_LIST		"_objc_ivar_list"#define _TAG_METHOD		"_objc_method"#define _TAG_METHOD_LIST	"_objc_method_list"#define _TAG_CATEGORY		"_objc_category"#define _TAG_MODULE		"_objc_module"#define _TAG_SYMTAB		"_objc_symtab"#define _TAG_SUPER		"_objc_super"/* set by `continue_class ()' and checked by `is_public ()' */#define TREE_STATIC_TEMPLATE(record_type) (TREE_PUBLIC(record_type))#define TYPED_OBJECT(type) \       (TREE_CODE (type) == RECORD_TYPE && TREE_STATIC_TEMPLATE (type))/* some commonly used instances of "identifier_node". */static tree self_id, _cmd_id;static tree self_decl, _msg_decl, _msgSuper_decl;static tree objc_getClass_decl, objc_getMetaClass_decl;static tree super_type, selector_type, id_type, class_type;static tree instance_type;static tree interface_chain = NULLT;/* chains to manage selectors that are referenced and defined in the module */static tree cls_ref_chain = NULLT;	/* classes referenced */static tree sel_ref_chain = NULLT;	/* selectors referenced */static tree sel_refdef_chain = NULLT;	/* selectors references & defined */static int  max_selector_index;		/* total # of selector referenced *//* hash tables to manage the global pool of method prototypes */static hash *nst_method_hash_list = 0;static hash *cls_method_hash_list = 0;/* the following are used when compiling a class implementation. * * implementation_template will normally be an anInterface, however if * none exists this will be equal to implementation_context...it is * set in start_class. *//* backend data declarations */static tree _OBJC_SYMBOLS_decl;static tree 	_OBJC_INSTANCE_VARIABLES_decl, _OBJC_CLASS_VARIABLES_decl;static tree 	_OBJC_INSTANCE_METHODS_decl, _OBJC_CLASS_METHODS_decl;static tree 	_OBJC_CLASS_decl, _OBJC_METACLASS_decl;#ifdef OBJC_SELECTORS_WITHOUT_LABELSstatic tree 	_OBJC_SELECTOR_REFERENCES_decl;#endifstatic tree _OBJC_MODULES_decl;static tree _OBJC_STRINGS_decl;static tree implementation_context = NULLT,	    implementation_template = NULLT;struct imp_entry {  struct imp_entry *next;  tree imp_context;  tree imp_template;  tree class_decl;		/* _OBJC_CLASS_<my_name>; */  tree meta_decl;		/* _OBJC_METACLASS_<my_name>; */};static struct imp_entry *imp_list = 0;static int imp_count = 0;	/* `@implementation' */static int cat_count = 0;	/* `@category' */static tree objc_class_template, objc_category_template, _PRIVATE_record;static tree _clsSuper_ref, __clsSuper_ref;static tree objc_method_template, objc_ivar_template;static tree objc_symtab_template, objc_module_template;static tree objc_super_template, objc_object_reference;static tree objc_object_id, objc_class_id;static tree _OBJC_SUPER_decl;static tree method_context = NULLT;static int  method_slot = 0;	/* used by start_method_def */#define BUFSIZE		512static char *errbuf;	/* a buffer for error diagnostics */extern char *strcpy (), *strcat ();extern tree groktypename_in_parm_context ();extern struct obstack permanent_obstack, *current_obstack,  *rtl_obstack;/* data imported from toplev.c  */extern char *dump_base_name;/* Open and close the file for outputting class declarations, if requested.  */int flag_gen_declaration = 0;FILE *gen_declaration_file;/* Warn if multiple methods are seen for the same selector, but with   different argument types. */int warn_selector = 0;voidlang_init (){  /* the beginning of the file is a new line; check for # */  /* With luck, we discover the real source file's name from that     and put it in input_filename.  */  ungetc (check_newline (), finput);  /* If gen_declaration desired, open the output file.  */  if (flag_gen_declaration)    {      int dump_base_name_length = strlen (dump_base_name);      register char *dumpname = (char *) xmalloc (dump_base_name_length + 7);      strcpy (dumpname, dump_base_name);      strcat (dumpname, ".decl");      gen_declaration_file = fopen (dumpname, "w");      if (gen_declaration_file == 0)	pfatal_with_name (dumpname);    }  if (doing_objc_thang)    init_objc ();}voidobjc_finish (){  if (doing_objc_thang)    finish_objc ();		/* Objective-C finalization */  if (gen_declaration_file)    fclose (gen_declaration_file);}voidlang_finish (){}intlang_decode_option (p)     char *p;{  if (!strcmp (p, "-lang-objc"))    doing_objc_thang = 1;  else if (!strcmp (p, "-gen-decls"))    flag_gen_declaration = 1;  else if (!strcmp (p, "-Wselector"))    warn_selector = 1;  else if (!strcmp (p, "-Wno-selector"))    warn_selector = 0;  else    return c_decode_option (p);  return 1;}static treedefine_decl (declarator, declspecs)     tree declarator;     tree declspecs;{  tree decl = start_decl (declarator, declspecs, 0);  finish_decl (decl, NULLT, NULLT);  return decl;}/* * rules for statically typed objects...called from `c-typeck.comptypes'. * * an assignment of the form `a' = `b' is permitted if: * *   - `a' is of type "id". *   - `a' and `b' are the same class type. *   - `a' and `b' are of class types A and B such that B is a descendant *     of A. */intmaybe_objc_comptypes (lhs, rhs)     tree lhs, rhs;{  if (doing_objc_thang)    return objc_comptypes (lhs, rhs);  return 0;}intobjc_comptypes (lhs, rhs)     tree lhs;     tree rhs;{  /* `id' = `<class> *', `<class> *' = `id' */  if ((TYPE_NAME (lhs) == objc_object_id && TYPED_OBJECT (rhs))      || (TYPED_OBJECT (lhs) && TYPE_NAME (rhs) == objc_object_id))    return 1;  /* `id' = `Class', `Class' = `id' */  else if ((TYPE_NAME (lhs) == objc_object_id &&	    TYPE_NAME (rhs) == objc_class_id) ||	   (TYPE_NAME (lhs) == objc_class_id &&	    TYPE_NAME (rhs) == objc_object_id))    return 1;  /* `<class> *' = `<class> *' */  else if (TYPED_OBJECT (lhs) && TYPED_OBJECT (rhs))    {      tree lname = TYPE_NAME (lhs), rname = TYPE_NAME (rhs);      if (lname == rname)	return 1;      else	{	  /* if the left hand side is a super class of the right hand side,	     allow it...	     */	  tree rinter = lookup_interface (rname);	  while (rinter)	    {	      if (lname == CLASS_SUPER_NAME (rinter))		return 1;	      rinter = lookup_interface (CLASS_SUPER_NAME (rinter));	    }	  return 0;	}    }  else    return 0;}/* Called from c-decl.c before all calls to rest_of_decl_compilation.  */voidmaybe_objc_check_decl (decl)     tree decl;{  if (doing_objc_thang)    objc_check_decl (decl);}voidobjc_check_decl (decl)     tree decl;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美tk—视频vk| 午夜精品在线看| 亚洲va中文字幕| www.欧美亚洲| 精品国产免费视频| 亚洲国产精品一区二区久久恐怖片 | 欧美午夜精品一区二区蜜桃| 久久亚洲一级片| 日本不卡免费在线视频| 一本色道久久综合亚洲91| 欧美激情综合在线| 精品一区二区三区视频| 欧美丰满美乳xxx高潮www| 综合欧美一区二区三区| 懂色av一区二区三区免费看| 日韩精品一区二区三区在线播放 | 九九在线精品视频| 欧美一区二区三区在线视频| 亚洲另类中文字| 91在线视频18| 日韩一区中文字幕| 99久久精品情趣| 综合久久国产九一剧情麻豆| 国产成人精品影院| 国产性做久久久久久| 国产一区二区日韩精品| 久久这里只有精品6| 国产一区二区三区香蕉| 精品久久久久久久久久久久久久久久久 | av高清久久久| 成人欧美一区二区三区在线播放| 国产99精品在线观看| 国产精品女同互慰在线看| 成人久久久精品乱码一区二区三区| 国产日产亚洲精品系列| 成人久久18免费网站麻豆| 国产欧美日本一区二区三区| 成人在线视频一区二区| 中文字幕五月欧美| 91捆绑美女网站| 亚洲国产综合色| 日韩一区二区三区高清免费看看| 日本va欧美va瓶| 精品乱人伦一区二区三区| 国产精品1区2区| 亚洲视频免费在线观看| 欧美视频精品在线观看| 日本不卡一区二区| 久久久久久久一区| 9久草视频在线视频精品| 亚洲男人的天堂在线aⅴ视频| 欧美色网一区二区| 精品亚洲国产成人av制服丝袜| 国产欧美日韩视频一区二区| 91福利国产精品| 久久国产视频网| 国产精品久久久久影院色老大| 欧美亚洲高清一区二区三区不卡| 免费精品视频在线| 国产精品成人在线观看| 欧美人xxxx| 成人性视频网站| 亚洲一区二区在线视频| 精品国内二区三区| 欧洲人成人精品| 国产美女一区二区| 一区二区三区国产| 久久青草国产手机看片福利盒子 | 一区二区国产视频| 91精品国产黑色紧身裤美女| 国产成人免费av在线| 亚洲成人精品影院| 欧美国产1区2区| 日韩一区二区免费在线电影| 9人人澡人人爽人人精品| 日韩av高清在线观看| 亚洲三级在线看| 精品成人私密视频| 777欧美精品| 欧日韩精品视频| 成人免费毛片片v| 久久99久国产精品黄毛片色诱| 亚洲人精品一区| 欧美高清在线一区二区| 欧美zozo另类异族| 欧美网站大全在线观看| 99久久综合99久久综合网站| 美洲天堂一区二卡三卡四卡视频| 一区二区三区免费在线观看| 国产欧美日韩在线看| 精品999在线播放| 日韩一区二区三区免费看 | 色综合视频在线观看| 久久国产福利国产秒拍| 亚洲va天堂va国产va久| 亚洲欧美激情小说另类| 中文字幕一区av| 国产精品国产精品国产专区不片| 久久亚区不卡日本| 精品99一区二区| 欧美成人国产一区二区| 91精品国产免费| 91精品婷婷国产综合久久| 欧美剧情电影在线观看完整版免费励志电影 | 一区在线中文字幕| 国产精品国产自产拍高清av王其| 国产日韩欧美高清| 日本一区二区动态图| 久久人人97超碰com| 久久午夜国产精品| 亚洲精品一线二线三线无人区| 日韩欧美一卡二卡| 日韩视频一区在线观看| 欧美精品一区二区三区四区| 精品国内片67194| 久久久精品免费网站| 国产日韩欧美综合在线| 中文在线资源观看网站视频免费不卡| 久久久国产午夜精品| 国产精品青草久久| 亚洲男同性恋视频| 一卡二卡欧美日韩| 丝袜美腿一区二区三区| 欧美96一区二区免费视频| 精品一区二区三区在线播放 | 国产精品视频一二三区| 国产精品福利电影一区二区三区四区| 中文字幕一区二区不卡| 一区二区三区精品在线| 日日夜夜精品视频免费| 久草热8精品视频在线观看| 国产精品一区二区三区99| www.99精品| 欧美日韩在线播放| 欧美v国产在线一区二区三区| 国产日产欧美一区二区三区| 日韩伦理免费电影| 天天色图综合网| 国产69精品久久99不卡| 91理论电影在线观看| 日韩一区二区免费电影| 国产精品久久三区| 首页国产欧美久久| 成人激情动漫在线观看| 欧美日韩免费观看一区二区三区| 日韩区在线观看| 最新成人av在线| 加勒比av一区二区| 色就色 综合激情| 久久久久久电影| 亚洲国产精品久久不卡毛片| 国产一区中文字幕| 欧美男人的天堂一二区| 国产欧美一区二区精品久导航 | 日韩三级免费观看| 亚洲欧美一区二区视频| 日本成人在线不卡视频| 91免费视频观看| 久久久久亚洲综合| 午夜欧美在线一二页| 懂色av中文字幕一区二区三区| 7777女厕盗摄久久久| 亚洲视频图片小说| 国产精品一区二区91| 91精品国产综合久久精品性色| 亚洲欧洲无码一区二区三区| 韩国精品主播一区二区在线观看| 欧美亚洲动漫制服丝袜| 国产精品嫩草99a| 久久9热精品视频| 欧美日韩精品一区视频| 综合亚洲深深色噜噜狠狠网站| 精品亚洲成a人| 日韩一区二区在线播放| 午夜伊人狠狠久久| 色视频欧美一区二区三区| 国产精品欧美久久久久一区二区| 狠狠色狠狠色合久久伊人| 欧美日韩久久不卡| 亚洲一区二区三区四区五区中文 | 精品久久久影院| 日本在线观看不卡视频| 欧美在线视频不卡| 亚洲欧美激情视频在线观看一区二区三区| 国产精品一区二区在线看| 精品国产凹凸成av人网站| 久久国产三级精品| 欧美一级二级三级乱码| 天天av天天翘天天综合网色鬼国产| 在线观看精品一区| 亚洲综合一区二区精品导航| 91免费国产视频网站| 亚洲青青青在线视频| 99国产精品一区| 亚洲人成网站色在线观看| 91美女片黄在线观看91美女| 最新高清无码专区| 在线中文字幕不卡| 午夜精品久久久久久久99樱桃| 欧美色大人视频|