diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-12 15:50:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-12 15:50:31 -0300 |
commit | bb7bb5944c9b3c868c6ab9cbe7d11b611251066b (patch) | |
tree | fe7f5e8def79d5a3c253a2f39c4557fc20d204e6 /lcode.c | |
parent | 94b503d95ef00f1e38b58b024ef45bf8973a8746 (diff) | |
download | lua-bb7bb5944c9b3c868c6ab9cbe7d11b611251066b.tar.gz lua-bb7bb5944c9b3c868c6ab9cbe7d11b611251066b.tar.bz2 lua-bb7bb5944c9b3c868c6ab9cbe7d11b611251066b.zip |
More disciplined use of 'errno'
Set errno to zero before calling any function where we may use its
errno, and check errno for zero before using it (as functions may not
set it even in error). The code assumes that no function will put
garbage on errno (although ISO C allows that): If any function during an
operation set errno, and the operation result in an error, assume that
errno has something to say.
Diffstat (limited to 'lcode.c')
0 files changed, 0 insertions, 0 deletions