I am studying the so2sdr source and am a bit puzzled about the use of
n_exch versus nExchange in the log::log constructor. Lines 33 to 36 of
log.cpp (so2sdr V 1.2.0) assign the value of n_exch to nExchange and
then compare it to a defined cpp constant of MAX_EXCH_FIELDS. All well
and good.
I'm puzzled as to why the code then creates the prefill array of bools
using n_exch rather than nExchange? It's probably harmless, but it
seems as though nExchange should be used here if for no other reason
than consistency.
Finally, since n_exch is not assigned to in the constructo, it seems
as though it could be declared a const. If nothing else, it could
probably be passed as a reference rather than by value.
What do you think?
73, de Nate >>
--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."
Ham radio, Linux, bikes, and more:
http://www.n0nb.us