Skip to content

Examples: improve examples consistency#541

Open
chqrlie wants to merge 1 commit into
c2lang:masterfrom
chqrlie:examples
Open

Examples: improve examples consistency#541
chqrlie wants to merge 1 commit into
c2lang:masterfrom
chqrlie:examples

Conversation

@chqrlie

@chqrlie chqrlie commented Jul 16, 2026

Copy link
Copy Markdown
Contributor
  • upgrade StringBuffer and file Reader/Writer implementation
  • use safer string functions
  • use errno instead of non-standard *errno2()
  • output error messages to stderr
  • improve error checking and exit status consistency
  • add test script and Makefile target
  • improve comment_strip: handle chars, strings and multiline comments

@chqrlie
chqrlie force-pushed the examples branch 2 times, most recently from bf5ad89 to fe3adaa Compare July 16, 2026 14:49
* upgrade `StringBuffer` and file `Reader`/`Writer` implementations
* use safer string functions
* use `errno` instead of non-standard `*errno2()`
* output error messages to `stderr`
* improve error checking and exit status consistency
* add `test.sh` script and Makefile `test` target
* improve `comment_strip`: handle chars, strings and multiline comments
* renamed `comment_strip` as `cstrip` for consistency
* fix many warnings
* remove TABs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant