ColrC  0.4.0
An easy to use C library for linux terminal colors/escape-codes.
Tools

ColrC Tools

There are several scripts/tools in the ./tools directory that aid in development. Some of them were created specifically for make targets, and some are used for inspecting the state of ColrC. All of them can be used as standalone commands, and all of them support the -h/--help options.

  • examples/run_examples.sh
    • Run examples, and run memcheck on the examples.
  • test/run_tests.sh
    • Run tests, memcheck examples and the colrc tool.
  • clean.sh
    • Implements the clean make targets.
  • cppcheck_errors.py
    • Lists all possible cppcheck errors/warnings, with filtering options.
  • cppcheck_run.py
    • Run cppcheck, generate HTML reports for ColrC.
  • find_python.sh
    • Locate and report a specific python executable by version.
  • gen_coverage_html.sh
    • Uses lcov to generate an HTML coverage report for ColrC.
  • gen_latex_pdf.sh
    • Generates the PDF manual from Doxygen's LaTeX output.
  • get_version.sh
    • Report the current ColrC version (based on the source files).
  • install.sh
    • Installs and uninstalls the colrc executable.
  • is_build.sh
    • Determines the current build type for colrc and test_colrc (debug, release, sanitize).
  • make_dist.sh
    • Creates a small downloadable package for users of ColrC.
  • make_help_fmter.py
    • Colorizes and formats output for the make help target.
  • refactor.sh
    • Basic refactoring tool, with preview of changes to be made.
  • replacestr.py
    • Replaces strings in files, with options to preview the changes. refactor.sh is implemented with this.
  • snippet.py
    • Compile and run arbitrary C code, ColrC source examples, ColrC snippets (snippets of C that use ColrC features), with options for running code through memcheck, gdb/kdbg, or user-specified tools.
  • undoxy_markdown.py
    • Generates a GitHub-friendly README from index.md for ColrC.
  • unused.py
    • Display unused and untested functions/macros in the ColrC source.
  • valgrind_run.sh
    • Runs colrc or the tests through cachegrind, callgrind, or memcheck.

If you would like to see the acceptable options or usage strings for these commands, run <command> -h.