]> sigrok.org Git - libsigrok.git/commitdiff
scpi: readability nits in vector getters, style nit in malloc call
authorGerhard Sittig <redacted>
Sun, 16 May 2021 17:51:52 +0000 (19:51 +0200)
committerGerhard Sittig <redacted>
Sat, 22 May 2021 06:06:58 +0000 (08:06 +0200)
Improve readability of SCPI uint8 and float vector get routines. Move
assignment and use of variables closer together to simplify review.
Allocate the glib array based on the text split result's length. Move
data processing to the "straight" path and handle failed conversion as
an exceptional condition in an error path.

Eliminate a redundant data type reference in a malloc call.


No differences found