2012-09-04 00:03:02 -07:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
2012-06-25 02:07:39 -07:00
|
|
|
#include "Eo.h"
|
2012-09-25 23:56:52 -07:00
|
|
|
#include "eo_isa_simple.h"
|
|
|
|
#include "eo_isa_complex.h"
|
2012-06-25 02:07:39 -07:00
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
(void) argc;
|
|
|
|
(void) argv;
|
|
|
|
eo_init();
|
|
|
|
|
|
|
|
Eo *simpleobj = eo_add(SIMPLE_CLASS, NULL);
|
|
|
|
Eo *complexobj = eo_add(COMPLEX_CLASS, NULL);
|
|
|
|
|
|
|
|
printf("Simple: isa-simple:%d isa-complex:%d isa-mixin:%d isa-interface:%d\n",
|
|
|
|
eo_isa(simpleobj, SIMPLE_CLASS),
|
|
|
|
eo_isa(simpleobj, COMPLEX_CLASS),
|
|
|
|
eo_isa(simpleobj, MIXIN_CLASS),
|
|
|
|
eo_isa(simpleobj, INTERFACE_CLASS));
|
|
|
|
printf("Complex: isa-simple:%d isa-complex:%d isa-mixin:%d isa-interface:%d\n",
|
|
|
|
eo_isa(complexobj, SIMPLE_CLASS),
|
|
|
|
eo_isa(complexobj, COMPLEX_CLASS),
|
|
|
|
eo_isa(complexobj, MIXIN_CLASS),
|
|
|
|
eo_isa(complexobj, INTERFACE_CLASS));
|
|
|
|
|
|
|
|
eo_unref(simpleobj);
|
|
|
|
eo_unref(complexobj);
|
|
|
|
|
|
|
|
eo_shutdown();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|