31 lines
1.3 KiB
C
31 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* map_mapping.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mcolonna <mcolonna@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/10/04 12:00:07 by mcolonna #+# #+# */
|
|
/* Updated: 2024/10/04 15:24:14 by mcolonna ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef MAP_MAPPING_H
|
|
# define MAP_MAPPING_H
|
|
|
|
# include "map.h"
|
|
|
|
/// @brief Each element of g_map_mapping. A case and its associated char.
|
|
typedef struct s_map_mapping_element
|
|
{
|
|
/// @brief char representing the case.
|
|
char name;
|
|
/// @brief associated case.
|
|
t_map_case value;
|
|
} t_map_mapping_element;
|
|
|
|
/// @brief List of each char and its according case.
|
|
/// Ended by an element with the name '\0'.
|
|
extern const t_map_mapping_element g_map_mapping[];
|
|
|
|
#endif
|