-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how individual programs shall be programmed #34
Comments
Suggestion: implement logging (HEIRLOOM_NG_NO_LOGGING => no logging, functions do nothing; HEIRLOOM_NG_STDERR => print everything to stderr, HEIRLOOM_NG_USE_SYSTEM_LOG => try to work with journald or something, HEIRLOOM_NG_LOG_TO_TMP => create a tmp file called |
Other suggestion: implement command-line options parsing there too |
For now, trying to note how most of the programs do each one of those things may help decide how it will be implement |
|
Well, about |
I think it already does, it has a implementation of |
|
It is --- actually it's just
It's on this file: https://github.com/Projeto-Pindorama/heirloom-ng/blob/master/libcommon/getopt.c Apparently, according to the "Hacking the Heirloom Toolchest", it's a conservative implementation of |
Usually, this was done by implementing what was written in the manual pages, but that sure created troubles regarding to different interpretations of the same text and/or ambiguity --- by way of illustration, we can see this with procps-ng's Nowadays, with most of (former) commercial UNIX code being open, we can take a look at what code actually was meant to do, functions etc. When implementing a new program, we can add it to a to-do list and, from there, start to list what the said program will do and what needs to be implemented. |
Maybe #33 could be a good start --- although this would demand creating an entry on the |
Why not having a big manual file for |
Well, first of all, the libcommon is something internal of Heirloom. |
Wrote an article in Portuguese on Heirloom's build system: https://takusuman.github.io/blog/2024/04/22/tentando-entender-a-montagem-do-heirloom.html Hope this is useful for #49 |
Document:
curses.h
should be used directly or iflibcommon.h
will implement its own wrapper functions (either ofcurses.h
or direct escape codes, since most programs don't need 90% of curses)The text was updated successfully, but these errors were encountered: