]> sigrok.org Git - libsigrok.git/commit - src/input/csv.c
input/csv: Concentrate text line encoding in a single spot
authorGerhard Sittig <redacted>
Mon, 5 Jun 2017 11:09:16 +0000 (13:09 +0200)
committerUwe Hermann <redacted>
Tue, 6 Jun 2017 17:00:14 +0000 (19:00 +0200)
commit492dfa90255e95b143b7a0ba9c78b6e022e7b115
tree894a64123a62716ab50881145de4b8eb2ddfb09e
parentdf0db9fdda408ef7623c10b8daa0019f8f206bdf
input/csv: Concentrate text line encoding in a single spot

Factor out a magic string literal which held a delimiter set yet could
be mistaken for an (assumed) fixed termination string. Concentrate the
determination of the end-of-line text encoding as well as the resulting
set of possible deliminters in one nearby location. The symbolic name
for the delimiter set eliminates the doubt on its purpose.
src/input/csv.c