diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-02-24 17:10:12 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-02-24 17:11:40 -0800 |
commit | 23cca8268d21f5d58ed0209002d5673d0518c426 (patch) | |
tree | 40b5d96c6e0888b64ebd465c961ded832292fb7b /config | |
parent | 35c57519b5a3b2c9aadc212ff0d4078363db7aff (diff) | |
download | gnulib-23cca8268d21f5d58ed0209002d5673d0518c426.tar.gz |
userspec: warn about '.' separator
Problem reported by Dan Jacobson (Bug#44770).
* lib/userspec.c: Don’t include stdbool.h since it’s now in our API.
(parse_user_spec_warn): New function, broken out of parse_user_spec
and with a new PWARN arg.
(parse_user_spec): Use it.
* lib/userspec.h: Include stdbool.h and declare new function.
* tests/test-userspec.c (struct test.in): Now a char array
so that it can be modified.
(T): Make the placeholder a valid test, as that simplifies
the code. Omit NULL placeholder at the end, likewise.
(main): Set up T in the new way, and test that the "." separator
acts like the ":" separator except with a warning if it works.
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions