Mail Archives: djgpp/1997/09/03/20:39:58
This is a multi-part message in MIME format.
------=_NextPart_000_01BCB884.27CEF640
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
------=_NextPart_000_01BCB884.27CEF640
Content-Type: application/octet-stream; name="Example.c"
Content-Transfer-Encoding: 7bit
Content-Description: Example.c (C File)
Content-Disposition: attachment; filename="Example.c"
/* example.c */
/* Include file which contains all object functions and structures */
#include "object.h"
/* Global list of basic objects */
Object *ObjectList[2];
int main()
{
int i;
/* Basic object pointer, that you will use to manipulate all objects */
Object * ObjectPtr;
/* Initialize all objects here */
InitializeObjects();
/* Example loop which manipalates all objects */
for( i = 0; i < 2; i++)
{
ObjectPtr = ObjectList[i];
ObjectPtr->DoSomething(ObjectPtr);
/* OUTPUT:
X_Object int x = 1
Y_Object int y = 2
*/
}
return 0;
}
------=_NextPart_000_01BCB884.27CEF640
Content-Type: application/octet-stream; name="Example.gdt"
Content-Transfer-Encoding: base64
Content-Description: Example.gdt (GDT File)
Content-Disposition: attachment; filename="Example.gdt"
ABdfX1JISURFX2Rlc2t0b3AtZmlsZV9fGhEAr3FweHQgKCQXHxoxMR5xADc/OhMTPiEABw8PBw8H
cABwf3oTE3Bwf34gKy94LnAwPz4fLxogcjExMC8+MRMAABcfGjExHnEXHx4fGx0dHR0bGkAfME8f
B3B8XwAAAAAANz86ExM+czc/Pj87PT09PTs6QD8QTz8HcHxfAAAAAAAHDw8HDw5wBw8ODwsNDQ0N
CwpADzBPD1dwfF8AAAAAADc/OhMTMD4eTi4AAAAAAAABAAAAAAEAAAABAAAATwAAABYAAAADAAAA
AAAAAAAABQAAAAoAAAABAAAAAi1zCwAAAAEAAAAFLW0zODZkAAAAAAAAAAEAAAADAAAADi4uL2V4
YW1wbGUuZ3ByBSouZ3ByFmM6XGV4YW1wbGVcZXhhbXBsZS5ncHIAAAAABgAAAA4qLlthY2ZnaG1v
cHNdKglleGFtcGxlLmMJaW5pdG9iai5jCW1hbmlwX3guYwltYW5pcF95LmMIb2JqZWN0LmgAAK8H
BwcBcAFwBw8HBwcHcAAHDwcHBwdwAAcPBwcHB3AABw8HBwcHB3ABcAFwBwcHcAcPAXAHBwcHB3AH
AQcHAAAHDwcHBwdwDw8HDw8PDw8PDw9wDwFwD3BwcHAAAAAAAAcPBwcHB3APDwcPDw8PDw8PD3AP
AXAPcHBwcAAAAAAABw8HBwcHcA8PBw8PDw8PDw8PcA8BcA9wcHBwAAAAAAAHDwcHBwcBcHBwAAAA
AAAAr3FweHQgKCQXHxoxMR5xADc/OhMTPiEABw8PBw8HcABwf3oTE3Bwf34gKy94LnAwPz4fLxog
cjExMC8+MRMAABcfGjExHnEXHx4fGx0dHR0bGkAfME8fB3B8XwAAAAAANz86ExM+czc/Pj87PT09
PTs6QD8QTz8HcHxfAAAAAAAHDw8HDw5wBw8ODwsNDQ0NCwpADzBPD1dwfF8AAAAAADc/OhMTMD4e
Ti4AAAAAAAAFACAzAAH//////////////////////////////////////////wAIAAAAAAAQAAAA
UAAAABcAAAAAAAAAEAAAAFAAAAAXAAAAC2M6L2V4YW1wbGUv
------=_NextPart_000_01BCB884.27CEF640
Content-Type: application/octet-stream; name="Example.gpr"
Content-Transfer-Encoding: base64
Content-Description: Example.gpr (GPR File)
Content-Disposition: attachment; filename="Example.gpr"
F19fUkhJREVfcHJvamVjdC1maWxlX18aAlsBAQUABAD/C2V4YW1wbGUuZXhlCQAKAAUAAlsBAwQA
AAAEAAAABQAAAAJbAQIEAAlleGFtcGxlLmMJZXhhbXBsZS5vAAAFAAAAAlsBAwEAAAAHAAAACAAA
AAJbAQIEAP8Ib2JqZWN0LmgJAAgACAAA/wAAAAAAAAAA//9dXf8AAAAAAAAAAP//XQJbAQIEAAlp
bml0b2JqLmMJaW5pdG9iai5vAAAFAAAAAlsBAwMAAAAHAAAACAAAAAJbAQIEAP8ZYzovZGpncHAv
aW5jbHVkZS9zdGRsaWIuaAkACAAIAAD/AAAAAAAAAAD//10CWwECBAD/HmM6L2RqZ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AQQBABgtZnZ4dC1pbnRyaW5zaWNzLWRpc2FibGUA
AABdAlsBBAEAFy1mdnh0LWludHJpbnNpY3MtZW5hYmxlAAAAXQJbAQQBAActZnplcm9zAAAAXQJb
AQQBAAotZm5vLXplcm9zAAAAXQJbAQQBAA4tZmRlYnVnLWtsdWRnZQAAAF0CWwEEAQARLWZuby1k
ZWJ1Zy1rbHVkZ2UAAABdAlsBBAEACS1mb25ldHJpcAAAAF0CWwEEAQAMLWZuby1vbmV0cmlwAAAA
XQJbAQQBAAgtZnNpbGVudAAAAF0CWwEEAQALLWZuby1zaWxlbnQAAABdAlsBBAEADi1mdHlwZWxl
c3MtYm96AAAAXQJbAQQBABEtZm5vLXR5cGVsZXNzLWJvegAAAF0CWwEEAQAMLVdzdXJwcmlzaW5n
AAAAXQJbAQQBAA8tV25vLXN1cnByaXNpbmcAAABdAlsBBAEAFC1mZml4ZWQtbGluZS1sZW5ndGgt
AAAAXV0CWwELAAAAAAAAAAABAAAAXV0OKi5bYWNmZ2htb3BzXSoIAAAAAwAAAAAAAlsBDQEAAAAB
AAAAAQAAAARsaWJjXQIAAABYAgAABG1haW5d
------=_NextPart_000_01BCB884.27CEF640
Content-Type: application/octet-stream; name="Initobj.c"
Content-Transfer-Encoding: 7bit
Content-Description: Initobj.c (C File)
Content-Disposition: attachment; filename="Initobj.c"
// initobj.c
/* Include file which contains malloc() function */
#include <stdlib.h>
/* Include file which contains all object functions and structures */
#include "object.h"
void InitializeObjects()
{
X_Object * x;
Y_Object * y;
if((x = malloc(sizeof(X_Object))) == NULL)
{
printf("Couldn't get memory\n");
exit(1);
}
x->DoSomething = Manip_X;
if((y = malloc(sizeof(Y_Object))) == NULL)
{
printf("Couldn't get memory\n");
exit(1);
}
y->DoSomething = Manip_Y;
ObjectList[0] = (Object*)x;
ObjectList[1] = (Object*)y;
}
------=_NextPart_000_01BCB884.27CEF640
Content-Type: application/octet-stream; name="Manip_x.c"
Content-Transfer-Encoding: 7bit
Content-Description: Manip_x.c (C File)
Content-Disposition: attachment; filename="Manip_x.c"
/* manip_x.c */
/* Include file which contains printf() function */
#include <stdio.h>
/* Include file which contains all object functions and structures */
#include "object.h"
void Manip_X(X_Object * x)
{
/* Set variable x from a X_Object to 1 */
x->x = 1;
/* Display the value x from the X_Object */
printf("X_Object int x = %d\n",x->x);
};
------=_NextPart_000_01BCB884.27CEF640
Content-Type: application/octet-stream; name="Manip_y.c"
Content-Transfer-Encoding: 7bit
Content-Description: Manip_y.c (C File)
Content-Disposition: attachment; filename="Manip_y.c"
/* manip_y.c */
/* Include file which contains printf() function */
#include <stdio.h>
/* Include file which contains all object functions and structures */
#include "object.h"
void Manip_Y(Y_Object * y)
{
/* Set variable y from a Y_Object to 2 */
y->y = 2;
/* Display the value y from the Y_Object */
printf("Y_Object int y = %d\n",y->y);
}
------=_NextPart_000_01BCB884.27CEF640
Content-Type: application/octet-stream; name="Object.h"
Content-Transfer-Encoding: 7bit
Content-Description: Object.h (H File)
Content-Disposition: attachment; filename="Object.h"
#ifndef OBJECT_H
#define OBJECT_H
#define BASE_OBJECT \
void (*DoSomething)();
typedef struct { BASE_OBJECT } Object;
typedef struct
{
BASE_OBJECT
int x;
}X_Object;
typedef struct
{
BASE_OBJECT
int y;
}Y_Object;
extern void InitializeObjects(void); //Declared in initobj.c
extern void Manip_X(X_Object *); //Declared in manip_x.c
extern void Manip_Y(Y_Object *); //Declared in manip_y.c
extern Object *ObjectList[]; //Declared in example.c
#endif // endif : #ifndef OBJECT_H
------=_NextPart_000_01BCB884.27CEF640--
- Raw text -