Skip to content

Commit

Permalink
Initial add. Doesn't compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 2, 2000
1 parent 6ece7b5 commit 7cd538b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tools/testlib/TestPlatform.c
@@ -0,0 +1,35 @@
#define __I386
#define __ARCHITECTURE "i386"
#define __FUNCNAME_PREPEND ""
#define __STACK_DIRECTION -1
#define __EOL_STRING "\n"
#define __PATHCHAR '/'
#define __CURRENTDIRSTR "."
#define __CURRENTDIRCHAR '.'
#define __NODRIVELETTERS
typedef short _VB_boolean;
typedef unsigned char _VB_byte;
typedef short __integer;
typedef long __long;
typedef float __single;
typedef double __double;

void test_data_types(void)
{
printf("Testing data types...\n");

if (sizeof (__byte) != 1)
{
printf(" - __byte is (%d) bytes, should be 1.\n", sizeof (__byte));
errors++;
} // if

if (sizeof (__integer) != 2)
{
printf(" - __integer is (%d) bytes, should be 2.\n", sizeof (__byte));
errors++;
} // if

}


0 comments on commit 7cd538b

Please sign in to comment.