Add C11 static_assert macro to assert.h

2020-03-21 Thread Martin Wanvik
Taken from FreeBSD. I removed a comment to the effect that C's _Static_assert, if implemented as a macro, would not work well with C++ due to the possibility of unshielded commas appearing in template parameter lists, explaining why *all* C++ standards are excluded rather than just C++11 and later

mg: fix line numbering bug

2017-09-08 Thread Martin Wanvik
When inserting a newline, only increment dotline for windows that are displaying the same buffer as the current one. Index: usr.bin/mg/line.c === RCS file: /cvs/src/usr.bin/mg/line.c,v retrieving revision 1.58 diff -u -p -u -r1.58 l