Imported Upstream version 0.5.10.2 upstream/0.5.10.2
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 13 Oct 2021 01:49:51 +0000 (10:49 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 13 Oct 2021 01:49:51 +0000 (10:49 +0900)
configure
configure.ac
src/parser.c

index d3cfda1..cfff0f9 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for dash 0.5.10.1.
+# Generated by GNU Autoconf 2.69 for dash 0.5.10.2.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -577,8 +577,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='dash'
 PACKAGE_TARNAME='dash'
-PACKAGE_VERSION='0.5.10.1'
-PACKAGE_STRING='dash 0.5.10.1'
+PACKAGE_VERSION='0.5.10.2'
+PACKAGE_STRING='dash 0.5.10.2'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1269,7 +1269,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures dash 0.5.10.1 to adapt to many kinds of systems.
+\`configure' configures dash 0.5.10.2 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1335,7 +1335,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of dash 0.5.10.1:";;
+     short | recursive ) echo "Configuration of dash 0.5.10.2:";;
    esac
   cat <<\_ACEOF
 
@@ -1440,7 +1440,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-dash configure 0.5.10.1
+dash configure 0.5.10.2
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2034,7 +2034,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by dash $as_me 0.5.10.1, which was
+It was created by dash $as_me 0.5.10.2, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2849,7 +2849,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE='dash'
- VERSION='0.5.10.1'
+ VERSION='0.5.10.2'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -5342,7 +5342,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by dash $as_me 0.5.10.1, which was
+This file was extended by dash $as_me 0.5.10.2, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -5408,7 +5408,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-dash config.status 0.5.10.1
+dash config.status 0.5.10.2
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
index f700443..4829288 100644 (file)
@@ -1,4 +1,4 @@
-AC_INIT(dash, 0.5.10.1)
+AC_INIT(dash, 0.5.10.2)
 AM_INIT_AUTOMAKE([foreign subdir-objects])
 AC_CONFIG_SRCDIR([src/main.c])
 
index 8e40781..8bd3db4 100644 (file)
@@ -853,6 +853,11 @@ static int pgetc_eatbnl(void)
        return c;
 }
 
+static int pgetc_top(struct synstack *stack)
+{
+       return stack->syntax == SQSYNTAX ? pgetc() : pgetc_eatbnl();
+}
+
 static void synstack_push(struct synstack **stack, struct synstack *next,
                          const char *syntax)
 {
@@ -915,7 +920,7 @@ readtoken1(int firstc, char const *syntax, char *eofmark, int striptabs)
                        attyline();
                        if (synstack->syntax == BASESYNTAX)
                                return readtoken();
-                       c = syntax == SQSYNTAX ? pgetc() : pgetc_eatbnl();
+                       c = pgetc_top(synstack);
                        goto loop;
                }
 #endif
@@ -929,7 +934,7 @@ readtoken1(int firstc, char const *syntax, char *eofmark, int striptabs)
                                        goto endword;   /* exit outer loop */
                                USTPUTC(c, out);
                                nlprompt();
-                               c = syntax == SQSYNTAX ? pgetc() : pgetc_eatbnl();
+                               c = pgetc_top(synstack);
                                goto loop;              /* continue outer loop */
                        case CWORD:
                                USTPUTC(c, out);
@@ -1056,7 +1061,7 @@ toggledq:
                                        USTPUTC(c, out);
                                }
                        }
-                       c = syntax == SQSYNTAX ? pgetc() : pgetc_eatbnl();
+                       c = pgetc_top(synstack);
                }
        }
 endword: