/*
* This file provides the runtime library for cool. It implements
* the cool classes in C. Feel free to change it to match the structure
* of your code generator.
*/
typedef struct Object Object;
typedef struct Int Int;
typedef struct Bool Bool;
typedef struct String String;
typedef struct IO IO;
typedef struct _Object_vtable Object_vtable;
typedef struct _Int_vtable Int_vtable;
typedef struct _Bool_vtable Bool_vtable;
typedef struct _String_vtable String_vtable;
typedef struct _IO_vtable IO_vtable;
/* class type definitions */
;
;
;
;
;
/* vtable type definitions */
;
;
;
;
;
/* Class vtable prototypes */
extern const Object_vtable _Object_vtable_prototype;
extern const Int_vtable _Int_vtable_prototype;
extern const Bool_vtable _Bool_vtable_prototype;
extern const String_vtable _String_vtable_prototype;
extern const IO_vtable _IO_vtable_prototype;
/* methods in class Object */
Object *;
Object *;
String *;
Object *;
/* methods in class Int */
Int *;
void ;
/* methods in class Bool */
Bool *;
void ;
/* methods in class String */
String *;
int ;
String *;
String *;
/* methods in class IO */
IO *;
IO *;
IO *;
String *;
int ;