Changeset 1391 for branches/GNU/src/gcc/libobjc/objc
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (21 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 dir.info 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libobjc/objc/encoding.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 1 1 /* Encoding of types for Objective C. 2 Copyright (C) 1993, 1997 Free Software Foundation, Inc.2 Copyright (C) 1993, 1997, 2002 Free Software Foundation, Inc. 3 3 4 4 Author: Kresten Krab Thorup … … 51 51 #define _F_GCINVISIBLE 0x20 52 52 53 int objc_aligned_size (const char *type);54 int objc_sizeof_type (const char *type);55 int objc_alignof_type (const char *type);56 int objc_aligned_size (const char *type);57 int objc_promoted_size (const char *type);53 int objc_aligned_size (const char *type); 54 int objc_sizeof_type (const char *type); 55 int objc_alignof_type (const char *type); 56 int objc_aligned_size (const char *type); 57 int objc_promoted_size (const char *type); 58 58 59 const char * objc_skip_type_qualifiers (const char*type);60 const char * objc_skip_typespec (const char*type);61 const char * objc_skip_offset (const char*type);62 const char * objc_skip_argspec (const char*type);63 int method_get_number_of_arguments (struct objc_method *);64 int method_get_sizeof_arguments (struct objc_method *);59 const char *objc_skip_type_qualifiers (const char *type); 60 const char *objc_skip_typespec (const char *type); 61 const char *objc_skip_offset (const char *type); 62 const char *objc_skip_argspec (const char *type); 63 int method_get_number_of_arguments (struct objc_method *); 64 int method_get_sizeof_arguments (struct objc_method *); 65 65 66 char * method_get_first_argument (struct objc_method*,66 char *method_get_first_argument (struct objc_method *, 67 67 arglist_t argframe, 68 const char **type);69 char *method_get_next_argument (arglist_t argframe,68 const char **type); 69 char *method_get_next_argument (arglist_t argframe, 70 70 const char **type); 71 char * method_get_nth_argument (struct objc_method*m,71 char *method_get_nth_argument (struct objc_method *m, 72 72 arglist_t argframe, 73 73 int arg, 74 74 const char **type); 75 75 76 unsigned objc_get_type_qualifiers (const char *type);76 unsigned objc_get_type_qualifiers (const char *type); 77 77 78 78 -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libobjc/objc/hash.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 61 61 * hash_new will have to be casted to this type. 62 62 */ 63 typedef unsigned int (*hash_func_type) (void *, const void *);63 typedef unsigned int (*hash_func_type) (void *, const void *); 64 64 65 65 /* … … 70 70 */ 71 71 72 typedef int (*compare_func_type) (const void *, const void *);72 typedef int (*compare_func_type) (const void *, const void *); 73 73 74 74 … … 175 175 176 176 177 while (*(char *)key) {178 ret ^= *(char *)key++ << ctr;177 while (*(char *) key) { 178 ret ^= *(char *) key++ << ctr; 179 179 ctr = (ctr + 1) % sizeof (void *); 180 180 } … … 188 188 compare_ptrs (const void *k1, const void *k2) 189 189 { 190 return ! (k1 - k2);190 return ! (k1 - k2); 191 191 } 192 192 … … 201 201 return 0; 202 202 else 203 return ! strcmp (k1, k2);203 return ! strcmp (k1, k2); 204 204 } 205 205 -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libobjc/objc/objc.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 74 74 /* 75 75 ** Definition of method type. When retrieving the implementation of a 76 ** method, this is type of the pointer returned 76 ** method, this is type of the pointer returned. The idea of the 77 ** definition of IMP is to represent a 'pointer to a general function 78 ** taking an id, a SEL, followed by other unspecified arguments'. You 79 ** must always cast an IMP to a pointer to a function taking the 80 ** appropriate, specific types for that function, before calling it - 81 ** to make sure the appropriate arguments are passed to it. The code 82 ** generated by the compiler to perform method calls automatically 83 ** does this cast inside method calls. 77 84 */ 78 85 typedef id (*IMP)(id, SEL, ...); -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libobjc/objc/runtime.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 1 1 /* GNU Objective C Runtime internal declarations 2 Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc.2 Copyright (C) 1993, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. 3 3 Contributed by Kresten Krab Thorup 4 4 … … 66 66 67 67 /* Number of selectors stored in each of the selector tables */ 68 extern int __objc_selector_max_index;68 extern unsigned int __objc_selector_max_index; 69 69 70 70 /* Mutex locking __objc_selector_max_index and its arrays. */ … … 83 83 SEL __sel_register_typed_name (const char*, const char*, 84 84 struct objc_selector*, BOOL is_const); 85 extern void __objc_generate_gc_type_description (Class); 85 86 86 87 #endif /* not __objc_runtime_INCLUDE_GNU */ -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libobjc/objc/thr.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 1 1 /* Thread and mutex controls for Objective C. 2 Copyright (C) 1996, 1997 Free Software Foundation, Inc.2 Copyright (C) 1996, 1997, 2002 Free Software Foundation, Inc. 3 3 Contributed by Galen C. Hunt (gchunt@cs.rochester.edu) 4 4 … … 75 75 76 76 /* Frontend mutex functions */ 77 objc_mutex_t objc_mutex_allocate (void);78 int objc_mutex_deallocate (objc_mutex_t mutex);79 int objc_mutex_lock (objc_mutex_t mutex);80 int objc_mutex_unlock (objc_mutex_t mutex);81 int objc_mutex_trylock (objc_mutex_t mutex);77 objc_mutex_t objc_mutex_allocate (void); 78 int objc_mutex_deallocate (objc_mutex_t mutex); 79 int objc_mutex_lock (objc_mutex_t mutex); 80 int objc_mutex_unlock (objc_mutex_t mutex); 81 int objc_mutex_trylock (objc_mutex_t mutex); 82 82 83 83 /* Frontend condition mutex functions */ 84 objc_condition_t objc_condition_allocate (void);85 int objc_condition_deallocate (objc_condition_t condition);86 int objc_condition_wait (objc_condition_t condition, objc_mutex_t mutex);87 int objc_condition_signal (objc_condition_t condition);88 int objc_condition_broadcast (objc_condition_t condition);84 objc_condition_t objc_condition_allocate (void); 85 int objc_condition_deallocate (objc_condition_t condition); 86 int objc_condition_wait (objc_condition_t condition, objc_mutex_t mutex); 87 int objc_condition_signal (objc_condition_t condition); 88 int objc_condition_broadcast (objc_condition_t condition); 89 89 90 90 /* Frontend thread functions */ 91 objc_thread_t objc_thread_detach (SEL selector, id object, id argument);92 void objc_thread_yield (void);93 int objc_thread_exit (void);94 int objc_thread_set_priority (int priority);95 int objc_thread_get_priority (void);96 void * objc_thread_get_data (void);97 int objc_thread_set_data (void *value);98 objc_thread_t objc_thread_id (void);99 void objc_thread_add (void);100 void objc_thread_remove (void);91 objc_thread_t objc_thread_detach (SEL selector, id object, id argument); 92 void objc_thread_yield (void); 93 int objc_thread_exit (void); 94 int objc_thread_set_priority (int priority); 95 int objc_thread_get_priority (void); 96 void * objc_thread_get_data (void); 97 int objc_thread_set_data (void *value); 98 objc_thread_t objc_thread_id (void); 99 void objc_thread_add (void); 100 void objc_thread_remove (void); 101 101 102 102 /* … … 112 112 so it can implement the NSBecomingMultiThreaded notification. 113 113 */ 114 typedef void (*objc_thread_callback) ();115 objc_thread_callback objc_set_thread_callback (objc_thread_callback func);114 typedef void (*objc_thread_callback) (void); 115 objc_thread_callback objc_set_thread_callback (objc_thread_callback func); 116 116 117 117 /* Backend initialization functions */ 118 int __objc_init_thread_system (void);119 int __objc_fini_thread_system (void);118 int __objc_init_thread_system (void); 119 int __objc_fini_thread_system (void); 120 120 121 121 /* Backend mutex functions */ 122 int __objc_mutex_allocate (objc_mutex_t mutex);123 int __objc_mutex_deallocate (objc_mutex_t mutex);124 int __objc_mutex_lock (objc_mutex_t mutex);125 int __objc_mutex_trylock (objc_mutex_t mutex);126 int __objc_mutex_unlock (objc_mutex_t mutex);122 int __objc_mutex_allocate (objc_mutex_t mutex); 123 int __objc_mutex_deallocate (objc_mutex_t mutex); 124 int __objc_mutex_lock (objc_mutex_t mutex); 125 int __objc_mutex_trylock (objc_mutex_t mutex); 126 int __objc_mutex_unlock (objc_mutex_t mutex); 127 127 128 128 /* Backend condition mutex functions */ 129 int __objc_condition_allocate (objc_condition_t condition);130 int __objc_condition_deallocate (objc_condition_t condition);131 int __objc_condition_wait (objc_condition_t condition, objc_mutex_t mutex);132 int __objc_condition_broadcast (objc_condition_t condition);133 int __objc_condition_signal (objc_condition_t condition);129 int __objc_condition_allocate (objc_condition_t condition); 130 int __objc_condition_deallocate (objc_condition_t condition); 131 int __objc_condition_wait (objc_condition_t condition, objc_mutex_t mutex); 132 int __objc_condition_broadcast (objc_condition_t condition); 133 int __objc_condition_signal (objc_condition_t condition); 134 134 135 135 /* Backend thread functions */ 136 objc_thread_t __objc_thread_detach (void (*func)(void *arg), void *arg);137 int __objc_thread_set_priority (int priority);138 int __objc_thread_get_priority (void);139 void __objc_thread_yield (void);140 int __objc_thread_exit (void);141 objc_thread_t __objc_thread_id (void);142 int __objc_thread_set_data (void *value);143 void * __objc_thread_get_data (void);136 objc_thread_t __objc_thread_detach (void (*func) (void *arg), void *arg); 137 int __objc_thread_set_priority (int priority); 138 int __objc_thread_get_priority (void); 139 void __objc_thread_yield (void); 140 int __objc_thread_exit (void); 141 objc_thread_t __objc_thread_id (void); 142 int __objc_thread_set_data (void *value); 143 void * __objc_thread_get_data (void); 144 144 145 145 #endif /* not __thread_INCLUDE_GNU */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.