YANG optimization: move "when" and "mymodule" to external maps

This commit is contained in:
Olof hagsand 2024-08-10 17:38:12 +02:00
parent 275cefbae7
commit c08dac2e5d
13 changed files with 247 additions and 314 deletions

View file

@ -644,7 +644,7 @@ yang_find_module_by_namespace_revision(yang_stmt *yspec,
const char *ns,
const char *rev)
{
yang_stmt *ymod;
yang_stmt *ymod = NULL;
yang_stmt *yrev;
char *rev1;
int inext;
@ -682,7 +682,7 @@ yang_find_module_by_name_revision(yang_stmt *yspec,
const char *name,
const char *rev)
{
yang_stmt *ymod;
yang_stmt *ymod = NULL;
yang_stmt *yrev;
char *rev1;
int inext;