2007-08-19 18:37:38 +00:00
|
|
|
|
2007-10-23 16:00:14 +00:00
|
|
|
/*
|
|
|
|
cc -g -DCevap_lowercasE -c main.c
|
|
|
|
*/
|
2007-08-19 18:37:38 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "cevapi.h"
|
|
|
|
|
2007-10-23 16:00:14 +00:00
|
|
|
#include "smem.h"
|
|
|
|
|
2007-08-19 18:37:38 +00:00
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2007-10-23 16:00:14 +00:00
|
|
|
#ifdef Cevap_lowercasE
|
|
|
|
struct cevapi *cevap= NULL;
|
|
|
|
#else
|
2007-08-19 18:37:38 +00:00
|
|
|
struct CevapI *cevap= NULL;
|
2007-10-23 16:00:14 +00:00
|
|
|
#endif
|
2007-08-19 18:37:38 +00:00
|
|
|
int ret;
|
|
|
|
|
|
|
|
/* full memory supervision */
|
|
|
|
Smem_set_record_items(1);
|
|
|
|
|
|
|
|
/* one short trip for testing */
|
2007-10-23 16:00:14 +00:00
|
|
|
#ifdef Cevap_lowercasE
|
|
|
|
ret= cevapi_new(&cevap,0);
|
|
|
|
if(ret>0)
|
|
|
|
cevapi_destroy(&cevap,0);
|
|
|
|
#else /* Cevap_lowercasE */
|
2007-08-19 18:37:38 +00:00
|
|
|
ret= Cevapi_new(&cevap,0);
|
|
|
|
if(ret>0)
|
|
|
|
Cevapi_destroy(&cevap,0);
|
2007-10-23 16:00:14 +00:00
|
|
|
#endif /* ! Cevap_lowercasE */
|
2007-08-19 18:37:38 +00:00
|
|
|
|
|
|
|
/* report any leaked memory */
|
|
|
|
Smem_stderr(1|2);
|
|
|
|
|
|
|
|
exit(ret<=0);
|
|
|
|
}
|