- All tests passing
- Updated README and image - Added itoa to stdlib - Implemented modulus math for bcc which has none in the stdlib - Updated the build scripts to work on Ubuntu 22 - Added bochsrc with some useful overrides (new bochs bios in ubuntu is broken, use the legacy) - Made most of stdlib compile and run under GNU C for testing - Improved the tokenizer so it will return tokens of more than one character - Moved the basic parser from using void pointers to store values to using basic_value unions to represent possible types - Added tests for the basic tokenizer
This commit is contained in:
10
tests/stdlib_imod.c
Normal file
10
tests/stdlib_imod.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "types.h"
|
||||
#include "stdlib.h"
|
||||
#include "string.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
if ( imod(12, 10) != 2 ) return 1;
|
||||
if ( imod(1234, 10) != 4 ) return 2;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user