Separate out the configuration for linking against ncurses as has just be done
for extras/curs.
Update programming style.
extras/curses/Ncurses.options:
extras/curses/Mmakefile:
extras/curses/sample/Mmakefile:
Shift the flags for linking against ncurses to Ncurses.options.
Document how to use the ncursesN-config and pkg-config tools to find
the appropriate flags for a system.
extras/curses/mcurses.basics.m:
extras/curses/mcurses.user.m:
Update syntax and programming style.
Replace tabs with spaces and delete trailing whitespace.
extras/complex_numbers/*.m:
Rename files containing submodules so that we can (correctly) build
this library without first building a source file mapping.
extras/complex_numbers/samples/Mmakefile:
extras/complex_numbers/tests/Mmakefile:
Tell the C compiler where the header files for libcomplex_numbers
are.
extras/curs/samples/Mmakefile:
Pass the -I option to the C compiler via the CFLAGS variable, not
the MGNUCFLAGS variable; the latter just causes the mgnuc script
to halt option processing and construct an invalid command line
for the C compiler.
extras/curses/*.m:
Rename files containing submodules so that we can (correctly) build
this library without first building a source file mapping.
extras/curses/mcurses.m:
Style and formatting fixes.
extras/curses/sample/Mmakefile:
Pass the -I option to the C compiler via the CFLAGS variable.
This file-specific setting will override a default setting of expandtabs
in $HOME/.vimrc.
*/Makefile:
*/Mmakefile:
As above.
tests/hard_coded/.gitignore:
Don't ignore the purity subdir. This ignore must have been left over
from when purity.m was a test in hard_coded, not hard_coded/purity,
and it ignored an executable, not a directory.
Estimated hours taken: 0.25
Branches: main
Various minor fixes to the Mmakefiles in extras/curs*.
extras/curs/Mmakefile:
Include ../Mmake.params.
Add a comment.
extras/curses/Mmakefile:
Include -lncurses in MLLIBS.
Add a comment.
extras/curses/samples/Mmakefile:
Include -I$(MCURSES_DIR) in MGNUCFLAGS.
Estimated hours taken: 8 (including getting to know curses a bit)
Add a new directory to the extras, containing a (partial) binding to
curses.
README:
Add the brief description for the curses binding to the list of what
is contained in the extras package.
curses/Mmakefile:
curses/basics.m:
curses/mcurses.m:
curses/misc.m:
curses/user.m:
New files implementing the mercury binding to curses.
curses/sample/Mmakefile:
curses/sample/smalltest.m:
A sample program using the mercury binding to curses.