From d984dbc9696e1460ebe4a8bc257fcfd3b1050ca5 Mon Sep 17 00:00:00 2001 From: crc Date: Fri, 16 Oct 2020 16:36:18 +0000 Subject: [PATCH] toolchain: update header comments FossilOrigin-Name: 8ccbb53b221ee1d79359b4d23b158303f609afbf4ba9bac96728101cb02f122d --- tools/retro-embedimage.c | 17 +++++++++++------ tools/retro-muri.c | 15 +++++++-------- tools/retro-unu.c | 19 +++++++++---------- 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/tools/retro-embedimage.c b/tools/retro-embedimage.c index c676d41..14d223d 100644 --- a/tools/retro-embedimage.c +++ b/tools/retro-embedimage.c @@ -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 - 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 #include @@ -44,7 +46,10 @@ CELL ngaLoadImage(char *imageFile) { } void output_header(int size) { - printf("#include \n#ifndef CELL\n#define CELL int32_t\n#endif\n"); + printf("#include \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[] = { "); } diff --git a/tools/retro-muri.c b/tools/retro-muri.c index a336193..aed4ce5 100644 --- a/tools/retro-muri.c +++ b/tools/retro-muri.c @@ -1,12 +1,11 @@ -/* retro-muri.c - - Copyright (c) 2017-2020 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). -*/ +/* 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 #include diff --git a/tools/retro-unu.c b/tools/retro-unu.c index b3bbadf..e4120d0 100644 --- a/tools/retro-unu.c +++ b/tools/retro-unu.c @@ -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. - - 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 -*/ + 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. + ---------------------------------------------------------- */ #include #include