blob: 3374f8484e0d323c6762667d587f10e3951aa202 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 77b520a8ee193b6d9f12e049f505d8d98204c11c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 31 Aug 2022 17:13:32 -0700
4Subject: [PATCH] Define createIdentifierRef prototype in yang-complex-types.c
5
6Provide needed prototype to make compiler happy
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 lib/parser-yang.y | 3 ++-
12 lib/yang-complex-types.c | 3 ++-
13 2 files changed, 4 insertions(+), 2 deletions(-)
14
15--- a/lib/parser-yang.y
16+++ b/lib/parser-yang.y
17@@ -41,7 +41,8 @@
18 #include "yang-complex-types.h"
19 #include "util.h"
20 #include "error.h"
21-
22+#include "yang-check.h"
23+
24 #ifdef HAVE_DMALLOC_H
25 #include <dmalloc.h>
26 #endif
27@@ -61,7 +62,8 @@
28 #define debug
29 #endif
30
31-
32+extern void createIdentifierRef(struct _YangNode *node, char* prefix, char* ident);
33+extern void smiyyerror(char *msg, Parser *parserPtr);
34 /*
35 * NOTE: The argument lvalp ist not really a void pointer. Unfortunately,
36 * we don't know it better at this point. bison generated C code declares
37--- a/lib/yang-complex-types.c
38+++ b/lib/yang-complex-types.c
39@@ -35,12 +35,13 @@
40 #include "yang-data.h"
41 #include "yang-check.h"
42 #include "yang-complex-types.h"
43-
44 /*
45 * Current parser defined in parser-yang. Workaround - can't include data.h
46 */
47 extern Parser *currentParser;
48
49+extern void createIdentifierRef(struct _YangNode *node, char* prefix, char* ident);
50+
51 static const int parents_complex_type[] = {
52 YANG_DECL_MODULE, YANG_DECL_SUBMODULE, YANG_DECL_CONTAINER,
53 YANG_DECL_LIST, YANG_DECL_RPC, YANG_DECL_INPUT,