commit | 41882de14e49130bf07bca01105e35df6697c416 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 02 16:34:58 2015 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 02 16:34:58 2015 +0200 |
tree | 446ef6021c99440763ef5303806eae71e6e584ae | |
parent | 0d70c378efbede493cd932b125b587a73686e066 [diff] |
yin parser BUGFIX keep elements with 0..n cardinality after first run When we are parsing sub-elements with 0..n cardinality, we need 2 runs. After the first run, we know the real cardinality and for the second run we need to keep elements. At some places, the elements were removed.
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
$ cmake . $ make # make install
There are two build modes:
The Debug
mode is currently used as the default one. to switch to the Release
mode, enter at the command line:
$ cmake -D CMAKE_BUILD_TYPE:String="Release" .
Set CC variable:
$ CC=/usr/bin/clang cmake .
Note that, with CMake, if you want to change the compiler or its options after you already ran CMake, you need to clear its cache first. For your convenience, this action is available as cclean
target of the Makefile:
$ make cclean $ CC=gcc CFLAGS='-fstack-protector-strong -Wa,--noexecstack' cmake .