toolchain: update header comments

FossilOrigin-Name: 8ccbb53b221ee1d79359b4d23b158303f609afbf4ba9bac96728101cb02f122d
This commit is contained in:
crc 2020-10-16 16:36:18 +00:00
parent ae35d569fc
commit d984dbc969
3 changed files with 27 additions and 24 deletions

View file

@ -1,9 +1,11 @@
/* This loads an image file and generates a C formatted
output. It's used to create the `image.c` that gets
linked into `rre`.
/* RETRO ------------------------------------------------------
A personal, minimalistic forth
Copyright (c) 2016 - 2019 Charles Childers
*/
This loads an image file and generates a C formatted output
suitable for being linked into the virtual machine. It's
used to create the `image.c` that gets linked into `retro`.
---------------------------------------------------------- */
#include <stdio.h>
#include <stdlib.h>
@ -44,7 +46,10 @@ CELL ngaLoadImage(char *imageFile) {
}
void output_header(int size) {
printf("#include <stdint.h>\n#ifndef CELL\n#define CELL int32_t\n#endif\n");
printf("#include <stdint.h>\n");
printf("#ifndef CELL\n");
printf("#define CELL int32_t\n");
printf("#endif\n");
printf("CELL ngaImageCells = %lld;\n", (long long)size);
printf("CELL ngaImage[] = { ");
}

View file

@ -1,12 +1,11 @@
/* retro-muri.c
Copyright (c) 2017-2020 Charles Childers
/* RETRO ------------------------------------------------------
A personal, minimalistic forth
Copyright (c) 2017 - 2019 Charles Childers
Copyright (c) 2019 Luke Parrish
This is the standard assembler for Nga. It's primarily used
to build the RETRO kernel (rx.muri).
*/
---------------------------------------------------------- */
#include <stdio.h>
#include <stdlib.h>

View file

@ -1,15 +1,14 @@
/* retro-unu.c
/* RETRO ------------------------------------------------------
A personal, minimalistic forth
Copyright (c) 2017 - 2020 Charles Childers
This is a tool to extract code blocks from a RETRO-flavored
Markdown source file.
This is retro-unu, a tool to extract code blocks from a
RETRO-flavored Markdown source file.
Code blocks start and end with ~~~ and test blocks start
and end with ```, though this does support setting them
from the command line.
Copyright (c) 2017-2020 Charles Childers
*/
---------------------------------------------------------- */
#include <stdio.h>
#include <stdlib.h>