Browse Source

some structural changes

master
Georg Hopp 14 years ago
parent
commit
eb7a68d416
  1. 41
      test3.c
  2. 0
      tests/crypt_test.c
  3. 0
      tests/decrypt_test.c
  4. 0
      tests/dyntype_test.c

41
test3.c

@ -1,41 +0,0 @@
#include <stdio.h>
#include <string.h>
#include "bigpoint_cclass.h"
#include "bigpoint_dyntype.h"
int
main(int argc, char * argv[])
{
char string[] = "ein weiterer test";
int integer = 42;
float floating = 4.3;
char * rstring = NULL;
long rint = 0;
double rfloat = 0.0;
struct BIGPOINT_DYNTYPE * dynstring =
new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_STRING, strlen(string) + 1, string);
struct BIGPOINT_DYNTYPE * dynint =
new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_INT, sizeof(long), (long)integer);
struct BIGPOINT_DYNTYPE * dynfloat =
new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_FLOAT, sizeof(double), (double)floating);
bigpoint_dyntype_get(dynstring, rstring);
bigpoint_dyntype_get(dynint, rint);
bigpoint_dyntype_get(dynfloat, rfloat);
printf("%s\n", rstring);
printf("%ld\n", rint);
printf("%lf\n", rfloat);
delete(dynstring);
delete(dynint);
delete(dynfloat);
return 0;
}
// vim: set et ts=4 sw=4:

0
test2.c → tests/crypt_test.c

0
test.c → tests/decrypt_test.c

0
test4.c → tests/dyntype_test.c

Loading…
Cancel
Save