]> mj.ucw.cz Git - libucw.git/commit
implemented parser of a single line and top-level sections unified
authorRobert Spalek <robert@ucw.cz>
Thu, 20 Apr 2006 22:56:54 +0000 (00:56 +0200)
committerRobert Spalek <robert@ucw.cz>
Thu, 20 Apr 2006 22:56:54 +0000 (00:56 +0200)
commite1b0cf62838f853e2eb8694ce1e8979be142c7df
treea586aa1b54b3329c60805a6aaa8bd5ba08794d72
parent112b5f79028ca870126fe4e3f7a5a4de7f698570
implemented parser of a single line and top-level sections unified

- we store registered sections in the same format as subsections so that we
  can search/process them in a uniform way
- implemented find_item() that can parse both absolute and relative paths
- all parsers of basic types simplified to take care of only 1 value;
  arrays are handled by the caller
- implemented a part of the interpretter: it gets parsed line (attribute
  name, desired operations, and parameters) and loads the values into
  memory.  since declarations can be nested and they can span over multiple
  lines, the interpretter operates on a stack
lib/conf2.c
lib/conf2.h