2022-12-09 17:26:10 -07:00
|
|
|
#if !defined _BLANG_H
|
|
|
|
# define _BLANG_H
|
2022-12-09 19:03:06 -07:00
|
|
|
# include <stdint.h>
|
|
|
|
/* This has to be big enough to hold a char * without degradation.
|
|
|
|
* Adjust to architecture/system/environment/etc. */
|
|
|
|
typedef uint64_t hand_t;
|
|
|
|
|
|
|
|
/* Just has to be fairly big. (TODO specify) */
|
|
|
|
typedef uint64_t counter_t;
|
|
|
|
|
|
|
|
/* Holds *argv; will not change between environments. */
|
|
|
|
typedef char * chart_t;
|
|
|
|
|
2022-12-09 17:26:10 -07:00
|
|
|
struct State{
|
2022-12-09 19:03:06 -07:00
|
|
|
chart_t chart;
|
|
|
|
counter_t counter;
|
|
|
|
hand_t hand;
|
2022-12-09 17:46:32 -07:00
|
|
|
};
|
2022-12-09 17:26:10 -07:00
|
|
|
#endif
|