sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 9a788d5e9f31c541af8d580161f3033c6b4d41c1
parent b234e805d75c0245f2bcaf1b19e0a2ecf1904190
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 13 Jan 2024 12:36:08 +0100

Revert "rocks: add blog-gen"

This reverts commit b234e805d75c0245f2bcaf1b19e0a2ecf1904190.

Remove from rocks for now.
Reason: code quality (at the moment).

Some feedback:

* Make sure to fclose() file descriptors/streams in main.c tag().
* Check for errors, for example when fopen() fails and write a clear error
  message to the user (using perror() or strerror(errno) or whatever).
  * Check for NULL pointers: to fix: strchr(text,'\n')[0] = '\0'; \
  * Change this for opendir() too.
  * Check for path truncations (snprintf()).
  * Separate checking file stream for errors or EOF  (ferror()) and feof()).
* Do not allocate everything on the stack (stack space is not infinite).
* In main() do not return -1 but return a code between 0 and 255.
* Use PATH_MAX (not 16384) or query filesystem limits.

With best intentions,

Diffstat:
Msuckless.org/rocks/index.md | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/suckless.org/rocks/index.md b/suckless.org/rocks/index.md @@ -233,7 +233,6 @@ This covers most console-based programs and programs from * [md4c](https://github.com/mity/md4c) - markdown to html converter. Fast, [CommonMark](https://commonmark.org/) compliant, offers extensions which can be switched on/off via cli args. -* [blog-gen](https://git.dravenmonti.dev/blog-gen/about/) - output HTML logs from a directory, supports tagging ### Utilities / miscellaneous