diff --git a/ncc/include/stdint.h b/ncc/include/stdint.h index 47510a7..9ddba5a 100644 --- a/ncc/include/stdint.h +++ b/ncc/include/stdint.h @@ -8,14 +8,19 @@ #define uint64_t u64 // Unsigned integer ranges +#define UINT8_MAX 0xFF #define UINT16_MAX 0xFFFF #define UINT32_MAX 0xFFFFFFFF #define UINT64_MAX 0xFFFFFFFFFFFFFFFF // Signed integer ranges +#define INT8_MIN 0x80 +#define INT8_MAX 0x7F #define INT16_MIN 0x8000 #define INT16_MAX 0x7FFF #define INT32_MIN 0x80000000 #define INT32_MAX 0x7FFFFFFF +#define INT64_MIN 0x8000000000000000 +#define INT64_MAX 0x7FFFFFFFFFFFFFFF #endif diff --git a/ncc/include/stdio.h b/ncc/include/stdio.h index 2982933..544a94f 100644 --- a/ncc/include/stdio.h +++ b/ncc/include/stdio.h @@ -3,6 +3,8 @@ #include +#define EOF -1 + int puts(char* str) { asm (str) -> void { syscall print_str; };