| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* update .gitignore to ignore the *.o and the executable files
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
|
| |
* the source code was, in the last commit, separated, in order to
create a library. Makes build the CLIs in the Makefile work.
* make clean cleans the *.o
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
|
|
| |
* separate numericx into: numericx.h, numericx.c, cli.c
* numericx.h is the numericx library header
* numericx.c is the numericx library implementation
* cli.c is the numericx command-line program
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
|
| |
* If invalid number of arguments supplied to main(), return errno E2BIG
* add Makefile rule to test memory leak of wrong number of arguments to
main()
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
|
|
|
|
| |
* numericx_translate() only returns status codes. Instead of returning
the resulting translated string.
* add result_string to numericx_translate() arguments, that is the
variable to where to store the resulting translated string.
* for the cli program, now the message is delegated to main. Also
changed the doxygen comments of main().
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
| |
* add to Makefile the rules: mem1, mem2 and mem3
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
| |
* fix sun-to-earth rule, missing -o
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
|
| |
* add numericx_free() and numericx_translate()
* functionality in main() to the minimum, to house the
numericx_translate() in it
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
| |
* remove debug message printing and the DEBUG variable
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* add html symbolic link pointing to doc/, so that when building the
doc with doxygen, all documentation goes to doc/
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* README.md has a Documentation section with a link to the online
documentation website
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
|
| |
* remove html/* for the creating on a submodule in this directory, so
that the documentation can be in a separate branch, for codeberg
pages
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
| |
* text 'console program' to 'command-line interface'
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
|
| |
* transformed comments into doxygen comments and set it's attributes
* add doxygen.conf file
* add doxygen html documentation
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* add tests/earth.sh
* add to Makefile all the necessary rules for `make test`
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* add better comments to the code structure
* on decrement_number_string(), renamed arguments for better legibility
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
| |
* correct mispellings and make the text more understandable
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
| |
* invalid numeral error message now indicates which numerals are valid
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
|
| |
* add sun to earth and vice-versa rule, without adding it to the all
rule
* also add earth<->sun to 'clean' Makefile rule
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
| |
* add decimal to binary and vice-versa Makefile rule
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
| |
* add .PHONY to some rules in Makefile
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* optimizes main counting cycle if TO_INFINITE_BASE is set,
by adding to_second variable
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* make program name into the macro PROG_NAME
* add program name into all error messages
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
|
| |
* add mem rule to Makefile
* add free_numeral()
* free all memory allocations
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* add is_valid_number()
* check if number belongs to the 'from' numerical system
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* put all the rules to make programs to test my past numerical systems
programs
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* print_numeral() without '\n'
* more compact DEBUG message
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* add to increment() one more argument (char* brand_new_digit)
* add TO_INFINITE_BASE functionality
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* defines both (TO and FROM)_INFINITE_BASE
* add FROM_INFINITE_BASE functionality
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
* add decrement_number_string()
* add (FROM and TO)_FIRST_NUMBER_VOID flags
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
| |
compilation flags are defined as true by default.
rearrange them.
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
|
|
| |
* add reverse_string()
* number variable instead of number_first/number_last
* add flags TO_UNITS_ON_THE_END and FROM_UNITS_ON_THE_END
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
|
|
| |
add usage message when invalid argument
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
|
|
|
| |
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|
| |
|
|
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
|