about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* doc update stableDaniel Santos2022-03-181-0/+0
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* add/update MAkefileDaniel Santos2022-03-181-8/+25
| | | | | | | | | | | * removed c99 as the c compiler variable * add doc rule * add build library rules for .a and .so * mem2 rule now tests for 000 arg instead of 0 * clean rule update for libraries * add numericx.h dependency to rules Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* update gitignoreDaniel Santos2022-03-181-1/+2
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* README.md change c compiler textDaniel Santos2022-03-181-1/+1
| | | | | | * in README.md change 'c99' compiler to 'cc' compiler Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* bugfix: handle number void with any number of casesDaniel Santos2022-03-181-1/+34
| | | | | | | | | | | | | | | * add is_number_void() * numericx_translate() was only handling a void number with one digit as argument, for example a 0. When encontering a void number with more then one digit, the function was entering on a infinite cycle. Now, with the function is_number_void(), numericx_translate() can handle correctly void number with any number of cases. Either with a from numerical system that is infinite (0 == 00 == 000 ...) or if it is not (0 is void, 00 is concrete, 000 is concrete, ...) Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* doxygen refactorDaniel Santos2022-03-183-32/+1
| | | | | | | | | * removed doxygen comments from header file * change the title of README.md from better understanding in doxygen doc * removed all files from doc/ and rebuild the doc Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* bugfix for numericx_translate() number argumentDaniel Santos2022-03-171-3/+9
| | | | | | | | | * numericx_translate() was doing a reverse of the string argument, which it cannot. Now the reverse is using a malloced version of the string argument. * add free() to malloced number from number argument Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* add to Makefile libnumericx.aDaniel Santos2022-03-171-1/+7
| | | | | | * add libnumericx.a static library building and clearing Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* remove print_numeral()Daniel Santos2022-03-171-32/+0
| | | | | | * remove print_numeral() from numericx.c Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* doc updateDaniel Santos2022-03-171-0/+0
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* gitignore updateDaniel Santos2022-03-171-1/+2
| | | | | | * update .gitignore to ignore the *.o and the executable files Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* Makefile accomodate separation of concernsDaniel Santos2022-03-171-2/+5
| | | | | | | | * 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 into header, implementation and cliDaniel Santos2022-03-173-197/+258
| | | | | | | | | * 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>
* doc updateDaniel Santos2022-03-172-21/+22
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* invalid argument list of main() return E2BIGDaniel Santos2022-03-172-4/+8
| | | | | | | | * 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>
* doc updateDaniel Santos2022-03-171-0/+0
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* numericx_translate() not printing messageDaniel Santos2022-03-171-30/+45
| | | | | | | | | | | * 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>
* Makefile more memory rulesDaniel Santos2022-03-171-2/+11
| | | | | | * add to Makefile the rules: mem1, mem2 and mem3 Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* doc updateDaniel Santos2022-03-171-0/+0
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* update numericx.c commentsDaniel Santos2022-03-171-9/+27
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* doc updateDaniel Santos2022-03-171-0/+0
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* Makefile fixDaniel Santos2022-03-171-1/+1
| | | | | | * fix sun-to-earth rule, missing -o Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* make numericx_translate()Daniel Santos2022-03-171-35/+140
| | | | | | | | * 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 DEBUGDaniel Santos2022-03-171-27/+0
| | | | | | * remove debug message printing and the DEBUG variable Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* rename doxygen.conf to DoxyfileDaniel Santos2022-03-161-0/+0
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* doc updateDaniel Santos2022-03-161-0/+0
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* add html symlink for doxygen buildDaniel Santos2022-03-161-0/+1
| | | | | | | * 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>
* add Documentation section in README.mdDaniel Santos2022-03-161-0/+4
| | | | | | | * README.md has a Documentation section with a link to the online documentation website Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* add submodule doc/Daniel Santos2022-03-162-0/+4
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* remove html/ for submoduleDaniel Santos2022-03-16100-6333/+0
| | | | | | | | * 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>
* update README.mdDaniel Santos2022-03-162-2/+2
| | | | | | * text 'console program' to 'command-line interface' Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* add doxygenDaniel Santos2022-03-16102-40/+9130
| | | | | | | | * 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>
* test rule in MakefileDaniel Santos2022-03-152-0/+64
| | | | | | | * add tests/earth.sh * add to Makefile all the necessary rules for `make test` Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* better comments and legibilityDaniel Santos2022-03-141-6/+85
| | | | | | | * 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>
* rearrange MakefileDaniel Santos2022-03-141-29/+20
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* update README.mdDaniel Santos2022-03-131-10/+10
| | | | | | * correct mispellings and make the text more understandable Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* better invalid numeral error messageDaniel Santos2022-03-131-1/+2
| | | | | | * invalid numeral error message now indicates which numerals are valid Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* create README.mdDaniel Santos2022-03-131-0/+64
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* add to Makefile sun<->earth ruleDaniel Santos2022-03-121-1/+7
| | | | | | | | * 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<->binary Makefile ruleDaniel Santos2022-03-121-1/+7
| | | | | | * add decimal to binary and vice-versa Makefile rule Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* add .PHONY to MakefileDaniel Santos2022-03-121-0/+4
| | | | | | * add .PHONY to some rules in Makefile Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* minor optimization for main cycleDaniel Santos2022-03-121-1/+7
| | | | | | | * optimizes main counting cycle if TO_INFINITE_BASE is set, by adding to_second variable Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* static program name (macro)Daniel Santos2022-03-121-8/+6
| | | | | | | * make program name into the macro PROG_NAME * add program name into all error messages Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* free memoryDaniel Santos2022-03-122-1/+30
| | | | | | | | * add mem rule to Makefile * add free_numeral() * free all memory allocations Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* Check if number belongs to numerical systemDaniel Santos2022-03-121-0/+23
| | | | | | | * add is_valid_number() * check if number belongs to the 'from' numerical system Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* Makefile updateDaniel Santos2022-03-121-4/+54
| | | | | | | * put all the rules to make programs to test my past numerical systems programs Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* add MIT licenseDaniel Santos2022-03-111-0/+21
| | | | Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* DEBUG messages more compactDaniel Santos2022-03-111-9/+9
| | | | | | | * print_numeral() without '\n' * more compact DEBUG message Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* add TO_INFINITE_BASE flagDaniel Santos2022-03-111-6/+9
| | | | | | | * add to increment() one more argument (char* brand_new_digit) * add TO_INFINITE_BASE functionality Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* add FROM_INFINITE_BASE flagDaniel Santos2022-03-111-2/+32
| | | | | | | * defines both (TO and FROM)_INFINITE_BASE * add FROM_INFINITE_BASE functionality Signed-off-by: Daniel Santos <dacs.git@brilhante.top>