aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/objc-encoding.h
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2011-07-11 09:42:23 +0000
committerNicola Pero <nicola@gcc.gnu.org>2011-07-11 09:42:23 +0000
commita8f18c40371add2ef647d14127cf91b046570bec (patch)
tree024ae2d04e639fefc111192785d29753f43e2712 /gcc/objc/objc-encoding.h
parent18970372c2159a1ad63e58f1683a01d2bcf3a86f (diff)
downloadgcc-a8f18c40371add2ef647d14127cf91b046570bec.zip
gcc-a8f18c40371add2ef647d14127cf91b046570bec.tar.gz
gcc-a8f18c40371add2ef647d14127cf91b046570bec.tar.bz2
In gcc/objc/: 2011-07-11 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/objc/: 2011-07-11 Nicola Pero <nicola.pero@meta-innovation.com> * objc-encoding.h (obstack.h): Do not include. (util_obstack, util_firstobj): Do not declare. (encode_field_decl): Updated prototype to return a tree and take a single tree argument. Updated comments. * objc-encoding.c (util_obstack, util_firstobj): Made static. (objc_encoding_init): New. (encode_field_decl): Existing function renamed to encode_field and made static. New encode_field_decl wrapper function added. (encode_aggregate_fields): Update call to encode_field_decl to call encode_field. * objc-next-runtime-abi-02.c (obstack.h): Do not include. (util_obstack, util_firstobj): Do not declare. (build_v2_ivar_list_initializer): Updated call to encode_field_decl. * objc-runtime-shared-support.c (obstack.h): Do not include. (util_obstack, util_firstobj): Do not declare. (build_ivar_list_initializer): Updated call to encode_field_decl. * objc-act.c (objc_init): Use objc_encoding_init. * Make-lang.in (objc/objc-runtime-shared-support.o): Do not depend on OBSTACK_H. (objc/objc-gnu-runtime-abi-01.o): Likewise. (objc/objc-next-runtime-abi-01.o): Likewise. (objc/objc-next-runtime-abi-02.o): Likewise. (objc/objc-act.o): Likewise. In gcc/objcp/: 2011-07-11 Nicola Pero <nicola.pero@meta-innovation.com> * Make-lang.in (objcp/objc-runtime-shared-support.o): Do not depend on OBSTACK_H. (objcp/objc-gnu-runtime-abi-01.o): Likewise. (objcp/objc-next-runtime-abi-01.o): Likewise. (objcp/objc-next-runtime-abi-02.o): Likewise. (objcp/objcp-act.o): Likewise. From-SVN: r176139
Diffstat (limited to 'gcc/objc/objc-encoding.h')
-rw-r--r--gcc/objc/objc-encoding.h25
1 files changed, 6 insertions, 19 deletions
diff --git a/gcc/objc/objc-encoding.h b/gcc/objc/objc-encoding.h
index 2fad593..18ea4d2 100644
--- a/gcc/objc/objc-encoding.h
+++ b/gcc/objc/objc-encoding.h
@@ -22,25 +22,10 @@ along with GCC; see the file COPYING3. If not see
#ifndef GCC_OBJC_ENCODING_H
#define GCC_OBJC_ENCODING_H
-/* TODO: Hide the following obstack code in objc-encoding.c, and have
- a objc_encoding_init() that is called by objc_init() to set them
- up. */
-
-/* Set up for use of obstacks. */
-#include "obstack.h"
-
-/* This obstack is used to accumulate the encoding of a data type. */
-extern struct obstack util_obstack;
-
-/* This points to the beginning of obstack contents, so we can free
- the whole contents. */
-extern char *util_firstobj;
-
-/* This will be used to initialize the obstacks used by encoding. It
+/* This is used to initialize the obstacks used by encoding. It
should be called before any encoding function is used. It is
usually done in objc_init(). */
-/* extern void objc_encoding_init (void); */
-
+extern void objc_encoding_init (void);
/* Encode a method prototype. The format is described in
gcc/doc/objc.texi, section 'Method signatures'. */
@@ -57,8 +42,10 @@ extern tree objc_build_encode_expr (tree type);
/* Encode the attributes of a property. */
extern tree objc_v2_encode_prop_attr (tree property);
-/* Encode the type of a field. */
-extern void encode_field_decl (tree field_decl, int curtype, int format);
+/* Encode the type of a field. Return an identifier with the type
+ encoding for the field. The type encoding is a null-terminated
+ string. */
+extern tree encode_field_decl (tree field_decl);
/* Tells "encode_pointer/encode_aggregate" whether we are generating
type descriptors for instance variables (as opposed to methods).