libyang CHANGE extend input handler by line counter

So far, all the parsers were counting lines on their own, in the
parsers' specific variables. The patch unifies the place where the
line is counted and store it in the input handler.
diff --git a/src/parser_yin.c b/src/parser_yin.c
index 5012b2e..f117f43 100644
--- a/src/parser_yin.c
+++ b/src/parser_yin.c
@@ -189,7 +189,7 @@
 
     LY_CHECK_RET(ly_in_new_memory(name, &in), LY_STMT_NONE);
     start = in->current;
-    kw = lysp_match_kw(NULL, in);
+    kw = lysp_match_kw(in, NULL);
     name = in->current;
     ly_in_free(in, 0);
 
@@ -3818,9 +3818,6 @@
 
     /* skip possible trailing whitespaces at end of the input */
     while (isspace(in->current[0])) {
-        if (in->current[0] == '\n') {
-            (*yin_ctx)->xmlctx->line++;
-        }
         ly_in_skip(in, 1);
     }
     if (in->current[0]) {
@@ -3881,9 +3878,6 @@
 
     /* skip possible trailing whitespaces at end of the input */
     while (isspace(in->current[0])) {
-        if (in->current[0] == '\n') {
-            (*yin_ctx)->xmlctx->line++;
-        }
         ly_in_skip(in, 1);
     }
     if (in->current[0]) {