Preparations for lowercase class and function names

This commit is contained in:
Thomas Schmitt 2007-10-23 16:00:14 +00:00
parent b44fc0d31f
commit e3096d501c

View File

@ -1,21 +1,36 @@
/*
cc -g -DCevap_lowercasE -c main.c
*/
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "cevapi.h" #include "cevapi.h"
#include "smem.h"
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
#ifdef Cevap_lowercasE
struct cevapi *cevap= NULL;
#else
struct CevapI *cevap= NULL; struct CevapI *cevap= NULL;
#endif
int ret; int ret;
/* full memory supervision */ /* full memory supervision */
Smem_set_record_items(1); Smem_set_record_items(1);
/* one short trip for testing */ /* one short trip for testing */
#ifdef Cevap_lowercasE
ret= cevapi_new(&cevap,0);
if(ret>0)
cevapi_destroy(&cevap,0);
#else /* Cevap_lowercasE */
ret= Cevapi_new(&cevap,0); ret= Cevapi_new(&cevap,0);
if(ret>0) if(ret>0)
Cevapi_destroy(&cevap,0); Cevapi_destroy(&cevap,0);
#endif /* ! Cevap_lowercasE */
/* report any leaked memory */ /* report any leaked memory */
Smem_stderr(1|2); Smem_stderr(1|2);