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

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

?? init.c

?? gcc的組件
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* GNU Objective C Runtime initialization    Copyright (C) 1993, 1995, 1996, 1997, 2002 Free Software Foundation, Inc.   Contributed by Kresten Krab Thorup   +load support contributed by Ovidiu Predescu <ovidiu@net-community.com>This file is part of GCC.GCC is free software; you can redistribute it and/or modify it under theterms of the GNU General Public License as published by the Free SoftwareFoundation; either version 2, or (at your option) any later version.GCC is distributed in the hope that it will be useful, but WITHOUT ANYWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESSFOR A PARTICULAR PURPOSE.  See the GNU General Public License for moredetails.You should have received a copy of the GNU General Public License along withGCC; see the file COPYING.  If not, write to the Free SoftwareFoundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  *//* As a special exception, if you link this library with files compiled with   GCC to produce an executable, this does not cause the resulting executable   to be covered by the GNU General Public License. This exception does not   however invalidate any other reasons why the executable file might be   covered by the GNU General Public License.  */#include "objc/runtime.h"/* The version number of this runtime.  This must match the number    defined in gcc (objc-act.c).  */#define OBJC_VERSION 8#define PROTOCOL_VERSION 2/* This list contains all modules currently loaded into the runtime.  */static struct objc_list *__objc_module_list = 0; 	/* !T:MUTEX *//* This list contains all proto_list's not yet assigned class links.  */static struct objc_list *unclaimed_proto_list = 0; 	/* !T:MUTEX *//* List of unresolved static instances.  */static struct objc_list *uninitialized_statics = 0; 	/* !T:MUTEX *//* Global runtime "write" mutex.  */objc_mutex_t __objc_runtime_mutex = 0;/* Number of threads that are alive.  */int __objc_runtime_threads_alive = 1;			/* !T:MUTEX *//* Check compiler vs runtime version.  */static void init_check_module_version (Module_t);/* Assign isa links to protos.  */static void __objc_init_protocols (struct objc_protocol_list *protos);/* Add protocol to class.  */static void __objc_class_add_protocols (Class, struct objc_protocol_list *);/* This is a hook which is called by __objc_exec_class every time a   class or a category is loaded into the runtime.  This may e.g. help   a dynamic loader determine the classes that have been loaded when   an object file is dynamically linked in.  */void (*_objc_load_callback) (Class class, Category *category); /* !T:SAFE *//* Is all categories/classes resolved?  */BOOL __objc_dangling_categories = NO;           /* !T:UNUSED */extern SEL__sel_register_typed_name (const char *name, const char *types, 			   struct objc_selector *orig, BOOL is_const);/* Sends +load to all classes and categories in certain situations.  */static void objc_send_load (void);/* Inserts all the classes defined in module in a tree of classes that   resembles the class hierarchy. This tree is traversed in preorder   and the classes in its nodes receive the +load message if these   methods were not executed before. The algorithm ensures that when   the +load method of a class is executed all the superclasses have   been already received the +load message.  */static void __objc_create_classes_tree (Module_t module);static void __objc_call_callback (Module_t module);/* A special version that works only before the classes are completely   installed in the runtime.  */static BOOL class_is_subclass_of_class (Class class, Class superclass);typedef struct objc_class_tree {  Class class;  struct objc_list *subclasses; /* `head' is pointer to an objc_class_tree */} objc_class_tree;/* This is a linked list of objc_class_tree trees. The head of these   trees are root classes (their super class is Nil). These different   trees represent different class hierarchies.  */static struct objc_list *__objc_class_tree_list = NULL;/* Keeps the +load methods who have been already executed. This hash   should not be destroyed during the execution of the program.  */static cache_ptr __objc_load_methods = NULL;/* This function is used when building the class tree used to send   ordinately the +load message to all classes needing it.  The tree   is really needed so that superclasses will get the message before   subclasses.   This tree will contain classes which are being loaded (or have just   being loaded), and whose super_class pointers have not yet been   resolved.  This implies that their super_class pointers point to a   string with the name of the superclass; when the first message is   sent to the class (/an object of that class) the class links will   be resolved, which will replace the super_class pointers with   pointers to the actual superclasses.   Unfortunately, the tree might also contain classes which had been   loaded previously, and whose class links have already been   resolved.   This function returns the superclass of a class in both cases, and   can be used to build the determine the class relationships while   building the tree.*/static Class  class_superclass_of_class (Class class){  char *super_class_name;  /* If the class links have been resolved, use the resolved   * links.  */  if (CLS_ISRESOLV (class))    return class->super_class;    /* Else, 'class' has not yet been resolved.  This means that its   * super_class pointer is really the name of the super class (rather   * than a pointer to the actual superclass).  */  super_class_name = (char *)class->super_class;  /* Return Nil for a root class.  */  if (super_class_name == NULL)    return Nil;  /* Lookup the superclass of non-root classes.  */  return objc_lookup_class (super_class_name);}/* Creates a tree of classes whose topmost class is directly inherited   from `upper' and the bottom class in this tree is   `bottom_class'. The classes in this tree are super classes of   `bottom_class'. `subclasses' member of each tree node point to the   next subclass tree node.  */static objc_class_tree *create_tree_of_subclasses_inherited_from (Class bottom_class, Class upper){  Class superclass = bottom_class->super_class ?			objc_lookup_class ((char *) bottom_class->super_class)		      : Nil;					  objc_class_tree *tree, *prev;  DEBUG_PRINTF ("create_tree_of_subclasses_inherited_from:");  DEBUG_PRINTF ("bottom_class = %s, upper = %s\n",		(bottom_class ? bottom_class->name : NULL),		(upper ? upper->name : NULL));  tree = prev = objc_calloc (1, sizeof (objc_class_tree));  prev->class = bottom_class;  while (superclass != upper)    {      tree = objc_calloc (1, sizeof (objc_class_tree));      tree->class = superclass;      tree->subclasses = list_cons (prev, tree->subclasses);      superclass = class_superclass_of_class (superclass);      prev = tree;    }  return tree;}/* Insert the `class' into the proper place in the `tree' class   hierarchy. This function returns a new tree if the class has been   successfully inserted into the tree or NULL if the class is not   part of the classes hierarchy described by `tree'. This function is   private to objc_tree_insert_class (), you should not call it   directly.  */static objc_class_tree *__objc_tree_insert_class (objc_class_tree *tree, Class class){  DEBUG_PRINTF ("__objc_tree_insert_class: tree = %x, class = %s\n",		tree, class->name);  if (tree == NULL)    return create_tree_of_subclasses_inherited_from (class, NULL);  else if (class == tree->class)    {      /* `class' has been already inserted */      DEBUG_PRINTF ("1. class %s was previously inserted\n", class->name);      return tree;    }  else if (class_superclass_of_class (class) == tree->class)    {      /* If class is a direct subclass of tree->class then add class to the	 list of subclasses. First check to see if it wasn't already	 inserted.  */      struct objc_list *list = tree->subclasses;      objc_class_tree *node;      while (list)	{	  /* Class has been already inserted; do nothing just return	     the tree.  */	  if (((objc_class_tree *) list->head)->class == class)	    {	      DEBUG_PRINTF ("2. class %s was previously inserted\n",			    class->name);	      return tree;	    }	  list = list->tail;	}      /* Create a new node class and insert it into the list of subclasses */      node = objc_calloc (1, sizeof (objc_class_tree));      node->class = class;      tree->subclasses = list_cons (node, tree->subclasses);      DEBUG_PRINTF ("3. class %s inserted\n", class->name);      return tree;    }  else    {      /* The class is not a direct subclass of tree->class. Search for         class's superclasses in the list of subclasses.  */      struct objc_list *subclasses = tree->subclasses;      /* Precondition: the class must be a subclass of tree->class;         otherwise return NULL to indicate our caller that it must         take the next tree.  */      if (! class_is_subclass_of_class (class, tree->class))	return NULL;      for (; subclasses != NULL; subclasses = subclasses->tail)	{	  Class aClass = ((objc_class_tree *) (subclasses->head))->class;	  if (class_is_subclass_of_class (class, aClass))	    {	      /* If we found one of class's superclasses we insert the	         class into its subtree and return the original tree	         since nothing has been changed.  */	      subclasses->head		  = __objc_tree_insert_class (subclasses->head, class); 	      DEBUG_PRINTF ("4. class %s inserted\n", class->name);	      return tree;	    }	}      /* We haven't found a subclass of `class' in the `subclasses'         list.  Create a new tree of classes whose topmost class is a         direct subclass of tree->class.  */      {	objc_class_tree *new_tree	  = create_tree_of_subclasses_inherited_from (class, tree->class);	tree->subclasses = list_cons (new_tree, tree->subclasses); 	DEBUG_PRINTF ("5. class %s inserted\n", class->name);	return tree;      }    }}/* This function inserts `class' in the right tree hierarchy classes.  */static voidobjc_tree_insert_class (Class class){  struct objc_list *list_node;  objc_class_tree *tree;  list_node = __objc_class_tree_list;  while (list_node)    {      tree = __objc_tree_insert_class (list_node->head, class);      if (tree)	{	  list_node->head = tree;	  break;	}      else	list_node = list_node->tail;    }  /* If the list was finished but the class hasn't been inserted,     insert it here.  */  if (! list_node)    {      __objc_class_tree_list = list_cons (NULL, __objc_class_tree_list);      __objc_class_tree_list->head = __objc_tree_insert_class (NULL, class);    }}/* Traverse tree in preorder. Used to send +load.  */static voidobjc_preorder_traverse (objc_class_tree *tree,			int level,			void (*function) (objc_class_tree *, int)){  struct objc_list *node;  (*function) (tree, level);  for (node = tree->subclasses; node; node = node->tail)    objc_preorder_traverse (node->head, level + 1, function);}/* Traverse tree in postorder. Used to destroy a tree.  */static voidobjc_postorder_traverse (objc_class_tree *tree,			 int level,			 void (*function) (objc_class_tree *, int)){  struct objc_list *node;  for (node = tree->subclasses; node; node = node->tail)    objc_postorder_traverse (node->head, level + 1, function);  (*function) (tree, level);}/* Used to print a tree class hierarchy.  */#ifdef DEBUGstatic void__objc_tree_print (objc_class_tree *tree, int level){  int i;  for (i = 0; i < level; i++)    printf ("  ");  printf ("%s\n", tree->class->name);}#endif/* Walks on a linked list of methods in the reverse order and executes   all the methods corresponding to `op' selector. Walking in the   reverse order assures the +load of class is executed first and then   +load of categories because of the way in which categories are   added to the class methods.  */static void__objc_send_message_in_list (MethodList_t method_list, Class class, SEL op){  int i;  if (! method_list)    return;  /* First execute the `op' message in the following method lists */  __objc_send_message_in_list (method_list->method_next, class, op);  /* Search the method list.  */  for (i = 0; i < method_list->method_count; i++)    {      Method_t mth = &method_list->method_list[i];      if (mth->method_name && sel_eq (mth->method_name, op)	  && ! objc_hash_is_key_in_hash (__objc_load_methods, mth->method_imp))	{	  /* Add this method into the +load hash table */	  objc_hash_add (&__objc_load_methods,			 mth->method_imp,			 mth->method_imp);	  DEBUG_PRINTF ("sending +load in class: %s\n", class->name);	  /* The method was found and wasn't previously executed.  */	  (*mth->method_imp) ((id)class, mth->method_name);	  break;	}    }}static void__objc_send_load (objc_class_tree *tree,		  int level __attribute__ ((__unused__))){  static SEL load_sel = 0;  Class class = tree->class;  MethodList_t method_list = class->class_pointer->methods;  if (! load_sel)    load_sel = sel_register_name ("load");  __objc_send_message_in_list (method_list, class, load_sel);}static void__objc_destroy_class_tree_node (objc_class_tree *tree,				int level __attribute__ ((__unused__))){  objc_free (tree);}/* This is used to check if the relationship between two classes   before the runtime completely installs the classes.  */static BOOLclass_is_subclass_of_class (Class class, Class superclass){  for (; class != Nil;)    {      if (class == superclass)	return YES;      class = class_superclass_of_class (class);    }  return NO;}/* This list contains all the classes in the runtime system for whom   their superclasses are not yet known to the runtime.  */static struct objc_list *unresolved_classes = 0;/* Extern function used to reference the Object and NXConstantString   classes.  */extern void __objc_force_linking (void);void__objc_force_linking (void){  extern void __objc_linking (void);  __objc_linking ();}/* Run through the statics list, removing modules as soon as all its   statics have been initialized.  */static voidobjc_init_statics (void){  struct objc_list **cell = &uninitialized_statics;  struct objc_static_instances **statics_in_module;  objc_mutex_lock (__objc_runtime_mutex);  while (*cell)    {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆一区二区三| 在线看不卡av| a4yy欧美一区二区三区| 91黄色激情网站| 日韩精品最新网址| 国产精品国产精品国产专区不片| 亚洲一区二区三区免费视频| 激情综合色综合久久综合| www.av精品| 精品日韩在线一区| 综合久久综合久久| 麻豆精品国产传媒mv男同| gogo大胆日本视频一区| 色综合天天综合给合国产| 欧美一区二区成人| 中文字幕亚洲区| 天天色天天操综合| 美女一区二区视频| 91免费视频观看| 欧美精品一区二区三区视频| 亚洲一区二区综合| 成人短视频下载| 欧美xxxxxxxx| 婷婷国产在线综合| 色老汉一区二区三区| 久久综合国产精品| 日韩制服丝袜先锋影音| 成人精品鲁一区一区二区| 91精品欧美综合在线观看最新| 欧美激情在线免费观看| 美女一区二区在线观看| 欧美日韩一区二区三区高清 | 亚洲第一搞黄网站| 成人久久18免费网站麻豆| 精品久久五月天| 日韩精品久久久久久| 色狠狠综合天天综合综合| 久久久久久夜精品精品免费| 性做久久久久久久久| 91蜜桃免费观看视频| 国产精品天干天干在线综合| 国产另类ts人妖一区二区| 精品国产免费久久| 精品亚洲国产成人av制服丝袜| 欧美日韩免费电影| 午夜免费久久看| 在线免费精品视频| 亚洲午夜激情av| 色综合久久天天| 亚洲色图欧美在线| www.亚洲在线| 国产精品久久久久久久岛一牛影视| 国产在线国偷精品免费看| 91亚洲精品乱码久久久久久蜜桃| 久久久久久久久岛国免费| 国产精品一二三四区| 精品国产乱子伦一区| 国产美女精品一区二区三区| 精品区一区二区| 精品亚洲aⅴ乱码一区二区三区| 日韩午夜激情免费电影| 蜜臀av在线播放一区二区三区| 欧美精品丝袜中出| 美女脱光内衣内裤视频久久影院| 欧美人狂配大交3d怪物一区| 首页国产欧美日韩丝袜| 91精品国产91热久久久做人人| 免费观看在线综合色| 在线观看网站黄不卡| 亚洲国产精品综合小说图片区| 欧美视频精品在线| 欧美精彩视频一区二区三区| 国产精品一二三区在线| 欧美成人官网二区| 国产精品 欧美精品| 国产天堂亚洲国产碰碰| 成人免费毛片高清视频| 欧美喷水一区二区| 免费观看91视频大全| 欧美精品一区二区三区在线播放 | 国产九九视频一区二区三区| 日本一区二区视频在线观看| 一本一本久久a久久精品综合麻豆| 一区二区三区四区中文字幕| 日韩精品最新网址| 91在线无精精品入口| 日韩1区2区日韩1区2区| 久久综合久久综合久久| 国产成人高清视频| 久久女同性恋中文字幕| 岛国一区二区三区| 午夜不卡av在线| 国产精品乱码人人做人人爱| 久久国产精品99久久久久久老狼 | 91美女片黄在线观看| 一二三四社区欧美黄| 欧美tickling挠脚心丨vk| av中文字幕一区| 久久精品国产成人一区二区三区 | 亚洲成人免费av| 中文字幕av一区二区三区| 欧美一区中文字幕| 色婷婷av一区二区三区之一色屋| 日韩精品一二三| 26uuu欧美| 成人午夜电影网站| 亚洲在线视频一区| 欧美日韩国产系列| a在线播放不卡| 国产制服丝袜一区| 日韩激情视频在线观看| 一区二区免费看| 日韩免费性生活视频播放| 在线观看日韩av先锋影音电影院| 国产精品123| 国内精品伊人久久久久av一坑 | 久久日韩精品一区二区五区| 欧美精品xxxxbbbb| 国产成人亚洲综合色影视| 日本欧美在线观看| 亚洲福利视频一区二区| 国产精品成人一区二区三区夜夜夜| 欧美一级日韩一级| 欧美日韩电影一区| 欧美在线高清视频| 色哟哟欧美精品| 91日韩一区二区三区| 99久久99久久久精品齐齐| 夫妻av一区二区| 国产精品99久久久久久宅男| 国产一区二区影院| 国产精品一区二区不卡| 国产91清纯白嫩初高中在线观看| 久久99精品网久久| 日日骚欧美日韩| 五月婷婷欧美视频| 免费xxxx性欧美18vr| 天天综合天天做天天综合| 日韩中文字幕91| 一区二区三区在线视频免费观看| 亚洲精品一线二线三线| 日韩欧美国产不卡| 久久免费视频一区| 国产精品不卡在线| 亚洲免费看黄网站| 亚洲成人午夜电影| 日本vs亚洲vs韩国一区三区二区| 国产美女主播视频一区| 狠狠久久亚洲欧美| 成人国产免费视频| 欧美自拍偷拍一区| 在线电影一区二区三区| 欧美电影影音先锋| 欧美精品一二三四| 欧美一级日韩一级| 久久色在线视频| 欧美激情自拍偷拍| 一区二区三区精品在线| 日韩av在线免费观看不卡| 精品一区在线看| 国产高清不卡二三区| 日本高清不卡视频| 7777精品伊人久久久大香线蕉超级流畅| 欧美日韩国产欧美日美国产精品| 日韩欧美一级二级三级久久久| 久久久久久一级片| 樱桃视频在线观看一区| 秋霞电影一区二区| 不卡视频一二三四| 欧美高清视频不卡网| 久久久欧美精品sm网站| 99国产欧美另类久久久精品| 91色视频在线| 亚洲精品在线免费观看视频| 国产精品成人网| 狠狠色狠狠色综合| 欧美日韩一级片在线观看| 欧美国产欧美综合| 午夜一区二区三区视频| 成人精品国产免费网站| 欧美一级国产精品| 亚洲欧美日韩在线播放| 日韩综合一区二区| 欧美日韩国产bt| 中文字幕在线观看不卡视频| 麻豆精品精品国产自在97香蕉 | 成人午夜电影久久影院| 欧美一区二区三区在| 国产精品电影一区二区三区| 亚洲第一综合色| 色婷婷综合视频在线观看| 精品国产精品网麻豆系列| 亚洲国产三级在线| 欧美色网一区二区| 亚洲欧洲日产国码二区| 国产乱人伦精品一区二区在线观看| 欧美熟乱第一页| 亚洲欧洲无码一区二区三区| 成+人+亚洲+综合天堂| 国产午夜精品一区二区三区四区|