summaryrefslogtreecommitdiff
path: root/libc/kernel/tools/cpp.py
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-12-06 16:41:35 -0800
committerElliott Hughes <enh@google.com>2017-12-07 14:13:57 -0800
commit0d3ba1f04701e8ba0f8bd0cd6a0f4c8bb9d558b5 (patch)
treebf2dd2d19ddfe12813314323b8b28141f5b0a3eb /libc/kernel/tools/cpp.py
parentc1f6219c32543cb1d6701b13eb53b82abe1e0a12 (diff)
Add sscanf %[ tests and fix the bug that fell out.
Strictly, POSIX says "If a '-' is in the scanlist and is not the first wide character, nor the second where the first wide character is a '^', nor the last wide character, the behavior is implementation-defined", but it seems unreasonable for swscanf to interpret `a-c` differently from sscanf. Make ours behave the same as each other by making swscanf work the same as sscanf. Bug: http://b/68672236 Test: ran tests Change-Id: Ia84805897628d7128e901b468e02504373730e61
Diffstat (limited to 'libc/kernel/tools/cpp.py')
0 files changed, 0 insertions, 0 deletions