HomePhabricator

config: Get rid of the dynamic seen array

Authored by Jakuje on Dec 5 2018, 12:09 PM.

Description

config: Get rid of the dynamic seen array

  • This makes the array constant in the session structure, avoiding allocations and frees while parsing the file
  • It also drops passing the seen array to all the functions, because it is already part of the passed session
  • The test cases are adjusted to match these changes

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnDec 7 2018, 2:08 PM
Parents
rLIBSSH8f887e82c75a: config: Reformat local_parse_file
Branches
Unknown
Tags
Unknown