summaryrefslogtreecommitdiff
path: root/libobjc/objc
Commit message (Collapse)AuthorAgeFilesLines
* 2007-04-09 Andrew Ruder <andy@aeruder.net>pinskia2007-04-091-44/+37
| | | | | | | | | | | * sendmsg.c: Added __objc_msg_forward2, a hook that allows external libraries to provide a function that returns the real forwarding function based on both the selector and the receiver. * objc/objc-api.h: Define __objc_msg_forward2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123678 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-02-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>manu2007-02-181-1/+1
| | | | | | | | * objc/objc-list.h (list_free): Add keyword 'inline' to avoid unused warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122090 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu>pinskia2005-12-161-0/+1
| | | | | | | | | | | | | | | | | | PR objc/25360 * objc/objc-act.c (encode_type): Encode Complex types as 'j' followed by the inner type. 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu> PR objc/25360 * objc/objc-api.c (_C_COMPLEX): New define. * encoding.c (objc_sizeof_type): Handle _C_Complex. (objc_alignof_type): Likewise. (objc_skip_typespec): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108675 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu>pinskia2005-12-111-0/+1
| | | | | | | | | | | | | | | | | PR libobjc/25346 * objc/objc-api.h (_C_BOOL): New define. * encoding.c (objc_sizeof_type): Handle _C_BOOL. (objc_alignof_type): Likewise. (objc_skip_typespec): Likewise. 2005-12-11 Andrew Pinski <pinskia@physics.uc.edu> PR libobjc/25346 * objc.dg/encode-7.m: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108378 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-11-20 David Ayers <d.ayers@inode.at>ayers2005-11-201-100/+0
| | | | | | | | | | | | | | PR libobjc/19024 * objc/hash.h: Remove deprecated hash API. * hash_compat.c: Remove. * Makefile.in: Remove reference to hash_compat.c. * configure.ac (VERSION): Bump library version to 2:0:0. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107251 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libobjc/23612uweigand2005-10-061-9/+9
| | | | | | | | * objc/objc-api.h (struct objc_ivar): Move definition to global scope. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105073 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>kcook2005-08-1713-25/+25
| | | | | | | * All files: Update FSF address. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103197 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-06-08 David Ayers <d.ayers@inode.at>ayers2005-06-0810-19/+19
| | | | | | | | | | | * objc/NXConstStr.h, objc/Object.h, objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h, objc/runtime.h, objc/sarray.h, objc/thr.h, objc/typedstream.h: Do not include Objective-C headers as system headers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100760 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-03-03 David Ayers <d.ayers@inode.at>ayers2005-03-031-2/+2
| | | | | | | | * objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated version reference. Correct typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95840 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-03-02 David Ayers <d.ayers@inode.at>pinskia2005-03-021-14/+115
| | | | | | | | | | | | | | | | | | | | | | | | PR libobjc/19024 * Makefile.in (OBJS): Add hash_compat.lo. (OBJS_GC): Add hash_compat_gc.lo. (hash_compat_gc.lo): New target and rule. * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove) (hash_next, hash_value_for_key, hash_is_key_in_hash) (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix with objc_. Add deprecated non prefixed inlined versions. (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated declarations. * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next) (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and update callers. * hash_compat.c: New file. * archive.c: Update callers. * init.c: Likewise. * selector.c: Likewise. * libobjc.def: Add objc_ versions of hash functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95793 138bc75d-0d04-0410-961f-82ee72b054a4
* [libobjc/ChangeLog]zlaski2004-08-131-11/+1
| | | | | | | | | | 2004-08-13 Ziemowit Laski <zlaski@apple.com> * objc/sarray.h: Hoist include of assert.h near the top of file, and mark the remainder of the file 'extern "C"'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85971 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>pinskia2004-08-137-25/+31
| | | | | | | | | | | | | * objc/Object.h: Move includes out of extern "C" blocks. * objc/encoding.h: Likewise. * objc/hash.h: Likewise. * objc/objc-api.h: Likewise. * objc/runtime.h: Likewise. * objc/sarray.h: Likewise. * objc/typedstream.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85968 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-08-12 Ziemowit Laski <zlaski@apple.com>zlaski2004-08-1312-111/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * objc/NXConstStr.h: Update copyright date; bracket with 'extern "C"' for C++ use; make include syntax consistent by using <...> instead of "..."; hoist <objc/...> includes above the 'extern "C"' block. * objc/Object.h: Likewise. * objc/Protocol.h: Likewise. * objc/encoding.h: Likewise. * objc/hash.h: Likewise. * objc/runtime.h: Likewise. * objc/sarray.h: Likewise. * objc/thr.h: Likewise. * objc/typedstream.h: Likewise. * objc/objc-api.h: Add 'extern "C"' block for C++ use. (objc_static_instances): For C++ case, do away with zero-sized array. (objc_method): Hoist definition to file scope. (_objc_load_callback, _objc_object_alloc, class_get_class_method, class_get_instance_method, class_create_instance, class_get_class_name, class_get_instance_size, class_get_meta_class, class_get_super_class, class_get_version, class_is_class, class_is_meta_class, class_set_version, class_get_gc_object_type, class_ivar_set_gcinvisible, get_imp): Rename 'class' parameter to '_class'. * objc/objc-list.h: Add 'extern "C"' block for C++ use. * objc/objc.h: Update copyright date. (arglist_t): Provide a union tag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85927 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-24 Andrew Pinski <apinski@apple.com>pinskia2004-06-258-0/+85
| | | | | | | | | | | | | | | * objc/encoding.h: Wrap the functions with extern "C" for C++ mode. * objc/hash.h: Likewise. * objc/objc-api.h: Likewise. * objc/objc-list.h: Likewise. * objc/runtime.h: Likewise. * objc/sarray.h: Likewise. * objc/thr.h: Likewise. * objc/typedstream.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83635 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>pinskia2004-05-253-15/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge from the libobjc-branch 2004-02-09 Andrew Pinski <pinskia@physics.uc.edu> * Makefile.in (OBJC_H): Change objc-deps.h to objc-decls.h. 2004-02-03 Andrew Pinski <pinskia@physics.uc.edu> * Makefile.in (OBJC_H): Add objc-deps.h. 2004-01-27 Nicola Pero <n.pero@mi.flashnet.it> * Protocol.m ([-conformsTo:]): If the argument is nil, return NO. ([-hash], [-isEqual:]): New methods. 2004-01-27 Richard Frith-Macdonald <rfm@gnu.org> * sarray.c (sarray_free): Add a better comment. 2004-01-27 Adam Fedor <fedor@gnu.org> * hash.c (hash_add): Cast cachep to int. * selector.c (__sel_register_typed_name): Cast soffset_decode to int. 2004-01-27 Alexander Malmberg <alexander@malmberg.org> * selector.c: Rename register_selectors_from_list to __objc_register_selectors_from_list. Update caller. (__objc_register_selectors_from_list): Lock __objc_runtime_mutex while registering selectors. Use __sel_register_typed_name instead of sel_register_typed_name. Check for NULL method_name:s. (pool_alloc_selector): New function. (__sel_register_typed_name): Use pool_alloc_selector to allocate selector structures. * sendmsg.c (class_add_method_list): Use __objc_register_selectors_from_list. * objc/runtime.h: Add __objc_register_selectors_from_list. 2004-01-25 Adam Fedor <fedor@gnu.org> Nicola Pero <n.pero@mi.flashnet.it> Andrew Pinski <pinskia@physics.uc.edu> * objc/objc-decls.h: New file. * objc/objc-api.h (_objc_lookup_class): Mark as export. (_objc_load_callback): Likewise. (_objc_object_alloc): Likewise. (_objc_object_copy): Likewise. (_objc_object_dispose): Likewise. 2004-01-25 Andrew Pinski <pinskia@physics.uc.edu> * archive.c: s/__inline__/inline * sendmsg.c: Likewise. * encoding.c: Remove FIXME about the warning about unused variable. * sendmsg.c: Add a FIXME comment saying that this should be using libffi. * Makefile.in (LIBTOOL): Use @LIBTOOL@ now as it works. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82253 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-05 Ziemowit Laski <zlaski@apple.com>zlaski2004-03-052-3/+3
| | | | | | | | | | | * objc/hash.h (hash_string, compare_strings): Add type-casts to make Objective-C++ happy. * objc/typedstream.h (objc_get_stream_class_version): Rename parameter from 'class' to 'class_name' to make Objective-C++ happy. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78986 138bc75d-0d04-0410-961f-82ee72b054a4
* [gcc/ChangeLog]zlaski2004-02-061-0/+4
| | | | | | | | | | | | | | | | | 2004-02-06 Ziemowit Laski <zlaski@apple.com> * objc/objc-act.c (build_super_template) the 'class' field of 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS. (get_super_receiver): Likewise. [gcc/libobjc/ChangeLog] 2004-02-06 Ziemowit Laski <zlaski@apple.com> * objc/objc-api.h (objc_super): The 'class' field shall be named 'super_class' #ifdef __cplusplus. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77430 138bc75d-0d04-0410-961f-82ee72b054a4
* * objc/hash.h (hash_string): Don't use a cast as an lvalue.jsm282003-10-201-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72722 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>neroden2003-05-2312-50/+50
| | | | | | | | | | | * Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c, class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h, objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h, objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h, objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67131 138bc75d-0d04-0410-961f-82ee72b054a4
* libobjc/8562ljrittle2003-04-113-21/+21
| | | | | | | | | | | | | | (in libobjc:) * objc/hash.h (hash_string): Constify correctly. (compare_ptrs): Use direct compare. * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow. * objc/sarray.h: Global rename index to indx to avoid shadow. (in gcc/testsuite:) * objc.dg/headers.m: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65461 138bc75d-0d04-0410-961f-82ee72b054a4
* Added comments to the definition of IMPnicola2002-09-121-1/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57072 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-07-02 Rodney Brown <rbrown64@csc.com.au>shebs2002-07-023-66/+66
| | | | | | | | | | | | | | | | | | | | | | | | | * objc/encoding.h: Fix formatting. * objc/hash.h: Likewise. * objc/objc-api.h: Likewise. * objc/runtime.h: Likewise. * objc/thr.h: Likewise. * archive.c: Likewise. * class.c: Likewise. * encoding.c: Likewise. * gc.c: Likewise. * hash.c: Likewise. * init.c: Likewise. * misc.c: Likewise. * nil_method.c: Likewise. * objects.c: Likewise. * sarray.c: Likewise. * selector.c: Likewise. * sendmsg.c: Likewise. * thr-mach.c: Likewise. * thr.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55190 138bc75d-0d04-0410-961f-82ee72b054a4
* * Object.m (forward, read, write): Fix unused parameter warnings.ghazi2002-06-211-2/+3
| | | | | | | | | | | | * encoding.c: Include <stdlib.h>. (target_flags): Mark with attribute unused. (atoi): Delete. * runtime.h (__objc_selector_max_index): Change to unsigned int. (__objc_generate_gc_type_description): Prototype. * selector.c (__objc_selector_max_index): Change to unsigned int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54884 138bc75d-0d04-0410-961f-82ee72b054a4
* * Object.m: Fix signed/unsigned warning.ghazi2002-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Protocol.m: Likewise. * archive.c: Always include stdlib.h. (objc_read_short, objc_read_unsigned_short, objc_read_int, objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong): Fix signed/unsigned warning. (objc_write_type, objc_read_type, objc_write_types, objc_read_types): Ensure ctype 8-bit safety. (__objc_no_write, __objc_no_read): Mark unused parameters. * class.c (class_table_setup): Specify void arg. * encoding.c (atoi, objc_sizeof_type, objc_alignof_type, objc_skip_typespec, objc_skip_offset, objc_layout_structure_next_member): Ensure ctype 8-bit safety. (objc_layout_structure_next_member): Ensure variables are initialized. * gc.c (__objc_generate_gc_type_description, class_ivar_set_gcinvisible): Mark unused parameters. * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark unused parameters. (__objc_init_protocols) Fix signed/unsigned warning. * nil_method.c (nil_method): Mark unused parameters. * thr.h (objc_thread_callback): Specify void arg. * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix signed/unsigned warning. (sarray_free): Fix formatting. * selector.c (sel_types_match): Ensure ctype 8-bit safety. * sendmsg.c (__objc_init_install_dtable) Mark unused parameters. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54649 138bc75d-0d04-0410-961f-82ee72b054a4
* PR objc/6107hp2002-04-091-2/+2
| | | | | | | | * objc/objc-api.h (struct objc_protocol_list): Change type of member count from int to size_t. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52058 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-11-07 Aldy Hernandez <aldyh@redhat.com>aldyh2001-11-081-0/+1
| | | | | | | | | * objc-api.h (_C_VECTOR): New. * encoding.c (VECTOR_TYPE): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46849 138bc75d-0d04-0410-961f-82ee72b054a4
* Fixed object_is_class and object_is_metaclassnicola2001-07-161-7/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44039 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-14 Nicola Pero <n.pero@mi.flashnet.it>shebs2001-03-151-0/+2
| | | | | | | | | | * thr.c (objc_thread_add): New function. (objc_thread_remove): Ditto. * objc/thr.h: Declare them. * libobjc.def: Mention them. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40479 138bc75d-0d04-0410-961f-82ee72b054a4
* Added __objc_msg_forward, a hook that allows external libraries toovidiu2001-01-031-0/+7
| | | | | | | | | provide a function that returns the real forwarding function. This can alleviate problems __builtin_apply() and friends have on various platforms. (Solution suggested by Helge Hess.) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38651 138bc75d-0d04-0410-961f-82ee72b054a4
* * objc/hash.h: Include string.h.ghazi2000-07-131-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35019 138bc75d-0d04-0410-961f-82ee72b054a4
* * objc/Protocol.h, objc/objc-list.h: Change #endif labels tozack2000-03-292-2/+2
| | | | | | | comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32812 138bc75d-0d04-0410-961f-82ee72b054a4
* * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.law1998-10-081-2/+4
| | | | | | | | | (objc_get_type_qualifiers): Similarly. * objc/encoding.h (_C_BYREF): Define. (_F_BYREF): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22917 138bc75d-0d04-0410-961f-82ee72b054a4
* * objc/sarray.h: Make boffset be an unsigned long when sparc so itdavem1998-10-071-1/+1
| | | | | | | works out on 64-bit systems. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22881 138bc75d-0d04-0410-961f-82ee72b054a4
* * All .h files pushed down into the objc/ subdirectory.law1998-09-3012-0/+2031
* Makefile.in (copy_headers): Corresponding changes. * configure.in (AC_INIT): Corresponding changes. * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22664 138bc75d-0d04-0410-961f-82ee72b054a4