diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-05-08 04:43:05 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-05-08 04:43:05 +0800 |
commit | b1b0801c8fb4bcceb7f89b3162ab2ec13a43f44e (patch) | |
tree | a2d597635edc041cf44736d3d2c21a58c51c0ace | |
parent | fadbc9a27fdf4695633477d6ae90fa0ab443ed96 (diff) | |
download | gsoc2013-evolution-b1b0801c8fb4bcceb7f89b3162ab2ec13a43f44e.tar gsoc2013-evolution-b1b0801c8fb4bcceb7f89b3162ab2ec13a43f44e.tar.gz gsoc2013-evolution-b1b0801c8fb4bcceb7f89b3162ab2ec13a43f44e.tar.bz2 gsoc2013-evolution-b1b0801c8fb4bcceb7f89b3162ab2ec13a43f44e.tar.lz gsoc2013-evolution-b1b0801c8fb4bcceb7f89b3162ab2ec13a43f44e.tar.xz gsoc2013-evolution-b1b0801c8fb4bcceb7f89b3162ab2ec13a43f44e.tar.zst gsoc2013-evolution-b1b0801c8fb4bcceb7f89b3162ab2ec13a43f44e.zip |
s/class/klass for arguments so that c++ developers don't complain later.
2002-05-07 Jeffrey Stedfast <fejj@ximian.com>
* camel-object.h: s/class/klass for arguments so that c++
developers don't complain later.
svn path=/trunk/; revision=16712
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-object.h | 33 |
2 files changed, 22 insertions, 16 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index b4311b413d..b8ef9d800e 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2002-05-07 Jeffrey Stedfast <fejj@ximian.com> + + * camel-object.h: s/class/klass for arguments so that c++ + developers don't complain later. + 2002-05-07 Dan Winship <danw@ximian.com> * camel-object.c (camel_object_class_cast): Fix a crash in a diff --git a/camel/camel-object.h b/camel/camel-object.h index 0578db77a8..cf574fe9f6 100644 --- a/camel/camel-object.h +++ b/camel/camel-object.h @@ -23,13 +23,14 @@ * USA */ + #ifndef CAMEL_OBJECT_H #define CAMEL_OBJECT_H 1 #ifdef __cplusplus extern "C" { #pragma } -#endif /* __cplusplus } */ +#endif /* __cplusplus */ #include <stdlib.h> /* size_t */ #include <glib.h> @@ -51,14 +52,14 @@ extern "C" { typedef struct _CamelObjectClass *CamelType; #ifdef G_DISABLE_CHECKS -#define CAMEL_CHECK_CAST( obj, ctype, ptype ) ((ptype *) obj) -#define CAMEL_CHECK_CLASS_CAST( class, ctype, ptype ) ((ptype *) class) +#define CAMEL_CHECK_CAST(obj, ctype, ptype) ((ptype *) obj) +#define CAMEL_CHECK_CLASS_CAST(klass, ctype, ptype) ((ptype *) klass) #else -#define CAMEL_CHECK_CAST( obj, ctype, ptype ) ((ptype *) camel_object_cast( (CamelObject *)(obj), (CamelType)(ctype) )) -#define CAMEL_CHECK_CLASS_CAST( class, ctype, ptype ) ((ptype *) camel_object_class_cast( (CamelObjectClass *)(class), (CamelType)(ctype) )) +#define CAMEL_CHECK_CAST(obj, ctype, ptype) ((ptype *) camel_object_cast ((CamelObject *)(obj), (CamelType)(ctype))) +#define CAMEL_CHECK_CLASS_CAST(klass, ctype, ptype) ((ptype *) camel_object_class_cast ((CamelObjectClass *)(klass), (CamelType)(ctype) )) #endif -#define CAMEL_CHECK_TYPE( obj, ctype ) (camel_object_is( (CamelObject *)(obj), (CamelType)(ctype) )) -#define CAMEL_CHECK_CLASS_TYPE( class, ctype ) (camel_object_class_is( (CamelObjectClass *)(class), (CamelType)(ctype) )) +#define CAMEL_CHECK_TYPE(obj, ctype) (camel_object_is ((CamelObject *)(obj), (CamelType)(ctype) )) +#define CAMEL_CHECK_CLASS_TYPE(klass, ctype) (camel_object_class_is ((CamelObjectClass *)(klass), (CamelType)(ctype))) extern CamelType camel_object_type; @@ -163,17 +164,17 @@ CamelType camel_type_register(CamelType parent, const char * name, /*unsigned in /* object class methods (types == classes now) */ const char *camel_type_to_name (CamelType type); -CamelType camel_name_to_type(const char *name); -void camel_object_class_add_event (CamelObjectClass *class, const char * name, CamelObjectEventPrepFunc prep); +CamelType camel_name_to_type (const char *name); +void camel_object_class_add_event (CamelObjectClass *class, const char *name, CamelObjectEventPrepFunc prep); -void camel_object_class_dump_tree(CamelType root); +void camel_object_class_dump_tree (CamelType root); /* casting */ -CamelObject *camel_object_cast(CamelObject * obj, CamelType ctype); -gboolean camel_object_is(CamelObject * obj, CamelType ctype); +CamelObject *camel_object_cast(CamelObject *obj, CamelType ctype); +gboolean camel_object_is(CamelObject *obj, CamelType ctype); -CamelObjectClass *camel_object_class_cast (CamelObjectClass *k, CamelType ctype); -gboolean camel_object_class_is (CamelObjectClass * class, CamelType ctype); +CamelObjectClass *camel_object_class_cast (CamelObjectClass *klass, CamelType ctype); +gboolean camel_object_class_is (CamelObjectClass *klass, CamelType ctype); CamelType camel_object_get_type (void); @@ -202,6 +203,6 @@ int camel_object_getv(CamelObject *obj, struct _CamelException *ex, CamelArgGetV #ifdef __cplusplus } -#endif /* __cplusplus */ +#endif /* __cplusplus */ -#endif /* CAMEL_OBJECT_H */ +#endif /* CAMEL_OBJECT_H */ |