home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 6
/
AACD06.ISO
/
AACD
/
System
/
Mesa-3.1
/
glue
/
createheader.in
next >
Wrap
Text File
|
1999-07-04
|
1KB
|
30 lines
#include <stddef.h>
#include <stdio.h>
#include <exec/libraries.h>
#include "../include/library_gl@TARGET@.h"
#define LIB struct Library
#define TASK struct Task
int main(int argc, char **argv)
{
int extra = 0;
printf ("/* This header has been generated by the create_header tool.\n DO NOT EDIT! */\n\n");
printf ("#define MesaGL@TARGET@BASE_FLAGS %ld\n", offsetof(LIB, lib_Flags));
printf ("#define MesaGL@TARGET@BASE_NEGSIZE %ld\n", offsetof(LIB, lib_NegSize));
printf ("#define MesaGL@TARGET@BASE_POSSIZE %ld\n", offsetof(LIB, lib_PosSize));
printf ("#define MesaGL@TARGET@BASE_VERSION %ld\n", offsetof(LIB, lib_Version));
printf ("#define MesaGL@TARGET@BASE_REVISION %ld\n", offsetof(LIB, lib_Revision));
printf ("#define MesaGL@TARGET@BASE_IDSTRING %ld\n", offsetof(LIB, lib_IdString));
printf ("#define MesaGL@TARGET@BASE_SUM %ld\n", offsetof(LIB, lib_Sum));
printf ("#define MesaGL@TARGET@BASE_OPENCNT %ld\n", offsetof(LIB, lib_OpenCnt));
printf ("#define MesaGL@TARGET@BASE_LIBRARY %ld\n", sizeof(LIB));
printf ("#define MesaGL@TARGET@BASE_SIZEOF (MesaGL@TARGET@BASE_C_PRIVATE + %ld)\n",
(sizeof (struct MesaGL@TARGET@base) - offsetof (struct MesaGL@TARGET@base, mgl@TARGET@_seg_list) - 4) + extra * 6);
return 0;
}