Commit Graph
28 Commits
Author SHA1 Message Date
jessica parsons 5e2f73aec4 update my name to the current one 2024-03-29 23:41:29 -07:00
david parsons 033f07110d replace an include of strings.h w string.h 2023-12-22 09:36:54 -08:00
david parsons 9939a3fa20 make tools/rep.c fancier by expanding backslash escapes; add a crash test for a #header line with a bucketload of trailing spaces 2023-12-14 17:25:52 -08:00
david parsons 95ca643137 fix a bug in tab expansion where I was lazy, assumed that T() strings would always be null-terminated, but didn't null terminate the resulting string after a tab expansion 2023-12-14 02:21:47 -08:00
David Seifert 7afa5c6242 Make C99 clean
* Clang 16 (and likely GCC 14) will enforce strict C99 semantics
  and break old K&R C declarations and require correct C89
  function prototypes.

Bug: https://bugs.gentoo.org/870952
Clang: https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213/9
2022-10-27 11:08:49 -07:00
david parsons 1321a22ecd first pass at collapsing fenced code blocks into regular paragraphs 2022-04-07 22:36:36 -07:00
david parsons b0c4415947 don't use diff -c (Busybox diff doesn't support it) but just dump the diff output to /dev/null 2022-03-22 17:30:37 -07:00
david parsons 5b0d7fd8e8 oops, forgot to add space2nl to sccs 2022-03-22 09:10:52 -07:00
david parsons 38b2ce4b5c work around a bug with some implementations of tr that don't map \n to a newline 2022-03-21 13:56:44 -07:00
david parsons c766bc5569 changed the main branch name to 'main', so the what's my branch name? tool needs to know about that 2020-06-14 12:33:20 -07:00
david parsons e677e83165 update the header verification program so it works with the new flag format; cosmetically tweak mkdio.h.in & markdown.h to make it easier to automatically diff the two enums 2019-12-10 09:24:46 -08:00
david parsons cf74d6d218 make all instances of 'main()' be integer functions (sigh) 2018-09-16 14:41:42 -07:00
david parsons c4c753da12 add in a handful of test to verify that empty pandoc headers are not auto-populated with % 2018-09-07 15:41:40 -07:00
david parsons 0e587c4afb make a test program to examine pandoc header elements 2018-09-06 21:46:36 -07:00
david parsons 5abb66abb7 check for git & have branch be a no-op if it doesn't exist on this system 2018-02-27 09:26:57 -08:00
david parsons eb15c58616 point stderr at /dev/null so that errors (which we don't care about) won't be visible 2017-03-25 05:49:00 -07:00
david parsons 2a1c5b52fa If we could open the pipe, pclose it even if it doesn't give us any output 2017-03-24 18:22:12 -07:00
david parsons d709662d5a Rework branch so it calls the appropriate git function all by itself
(git describe is broken; use git branch and awk for the starred branch instead)
and then bump the b-version# up to accomodate it.
2017-03-24 15:59:54 -07:00
david parsons 82f9bf3b3a Add a README for the utilities in the tools subdirectory 2017-02-03 13:03:36 -08:00
david parsons b26c88593b Make defining BRANCH depend on the branch; if I'm on the master branch I don't
care about the branch name at all, otherwise I do.  So make a little utility
program that I can feed the output from `git describe --all` into and which
returns either nothing (master branch) or "({name})" (with the quotes) if I'm
on branch {name}
2017-02-03 01:08:57 -08:00
david parsons c0eeb54192 include stdlib.h to make gcc stfu about exit() 2011-02-18 23:05:56 -08:00
david parsons b6e6700b38 Don't forget to exit(0) after echoing our arguments! 2010-10-28 18:30:03 -07:00
david parsons dec1515923 checkbits.sh: don't exec the diff, because that means that the workfiles remain after the program finishes. 2010-10-22 14:09:05 -07:00
david parsons 456f4b873d Add a verify stanza to the Makefile to compare the option bits in markdown.h and mkdio.h 2010-10-22 13:43:01 -07:00
David Parsons 237a6d9c5f Clean up the utf-8 support in cols so it actually works;
trigger on c & 0xC0, then loop on utf-8 stanzas until we hit
something else, but keep track of width and stop printing if
we run out of space in the middle of a string of > U+007F
characters.
2009-06-17 21:16:39 -07:00
David Parsons 46f934d147 Revise a whole bunch of test cases to use my try function.
Find and fix a bug where a url with an embedded double quote
 is printed out with that doublequote in plaintext.
2009-06-17 11:39:55 -07:00
David Parsons 8f2ce06098 Add utf-8 support to cols.c 2009-06-17 10:22:50 -07:00
David Parsons fd212c1c30 1. When testing, use my own tool cols instead of cut (cut doesn't
exist on plan9) and `grep` (with appropriate backslashing) instead
   of `fgrep` (`fgrep` doesn't exist on plan9) or `grep -F` (`-F` option
   doesn't exist on plan9?)
2. move the source for `echo` and `cols` into the new `tools` directory.
2009-06-14 10:23:28 -07:00