Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
huffman/include/common.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
49 lines (35 sloc)
954 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright (C) 2023 Harry Clark - Student No. 12340530 */ | |
/* DATE: 13/03/23 */ | |
/* HUFFMAN CODE DEMONSTRATION */ | |
/* JUST A LITTLE THING I WANTED TO MAKE FOR FUN AFTER WATCHING A | |
/* TOM SCOTT VIDEO ABOUT THE SUBJECT */ | |
/* THESE ARE ALL OF THE COMMON DATA TYPES ASSOCIATED WITH THIS PROJECT */ | |
#ifndef COMMON_TYPES | |
#define COMMON_TYPES | |
#include <string> | |
#include <cstdint> | |
#include <Windows.h> | |
#ifndef UNSIGNED_TYPES | |
#define UNSIGNED_TYPES | |
typedef uint8_t U8; | |
typedef uint16_t U16; | |
typedef uint32_t U32; | |
typedef uint64_t U64; | |
typedef size_t UNK_SIZE; | |
#endif | |
#ifndef SIGNED_TYPES | |
#define SIGNED_TYPES | |
typedef int8_t S8; | |
typedef int16_t S16; | |
typedef int32_t S32; | |
typedef int64_t S64; | |
#endif | |
#ifndef UNKNOWN_TYPES | |
#define UNKNOWN_TYPES | |
typedef unsigned char UNK_8; | |
typedef unsigned short UNK_16; | |
typedef unsigned int UNK_32; | |
typedef unsigned long UNK_64; | |
typedef size_t UNK_SIZE; | |
#endif | |
#endif |