huffman/inc/common.h

31 lines
613 B
C
Raw Permalink Normal View History

2016-11-30 10:55:10 +00:00
/**
* @file
* @brief Définitions communes pour le reste du code.
*/
2016-11-30 10:55:10 +00:00
#ifndef __HUFFMAN_COMMON_H_INCLUDED__
#define __HUFFMAN_COMMON_H_INCLUDED__
/**
* @brief Macro correspondant à la valeur booléenne vraie (1).
*/
2016-10-25 04:51:07 +00:00
#define TRUE 1
2016-11-30 10:55:10 +00:00
/**
* @brief Macro correspondant à la valeur booléenne fausse (0).
*/
2016-10-25 04:51:07 +00:00
#define FALSE 0
2016-11-30 10:55:10 +00:00
/**
* @brief Macro correspondant au nombre de caractères possibles.
*/
2016-10-25 04:51:07 +00:00
#define NUM_CHARS 256
2016-11-30 10:55:10 +00:00
/**
* @brief Alias du type d'entier non-signé 64 bits pour compter
* les longueurs de fichiers.
*/
typedef long long unsigned int bytecount;
2016-11-30 10:55:10 +00:00
#endif // __HUFFMAN_COMMON_H_INCLUDED__