c-md/includes/internal/transpile_internal.h.md
lohhiiccc 80f7a1b9b6 feat(build): add build instructions in README and convert sources to .c.md format
- Add detailed build and bootstrap instructions to README.md.
 - Convert all source and header files from .c/.h to .c.md/.h.md.
 - Add bootstrap.sh script for automated building across version history.
 - Update Makefile and sources.mk to reflect new markdown-based source organization.
2026-01-12 14:54:49 +01:00

39 lines
634 B
Markdown

```c
#ifndef TRANSPILE_INTERNAL_H
# define TRANSPILE_INTERNAL_H
# include <stdio.h>
# include <stdint.h>
# include "map.h"
typedef struct s_state
{
FILE *in;
FILE *out;
const char *ext;
t_map *map;
uint32_t src_line;
uint32_t dst_line;
uint32_t block_src_start;
uint32_t block_dst_start;
uint8_t in_block;
uint8_t first_block;
} t_state;
void
state_init(t_state *s, FILE *in, FILE *out, const char *ext, t_map *map);
int8_t
process_line(t_state *s, char *line);
int8_t
handle_fence_open(t_state *s, char *line);
int8_t
handle_fence_close(t_state *s);
int8_t
handle_code_line(t_state *s, char *line);
#endif
```