]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/MKunctrl.awk
ncurses 6.1 - patch 20180210
[ncurses.git] / ncurses / base / MKunctrl.awk
index 2140900e8c3be185b4df4f959f2bc71005c36fe4..0b505d0ce9123b526ba157e6392920652c990fd9 100644 (file)
@@ -1,6 +1,6 @@
-# $Id: MKunctrl.awk,v 1.26 2009/07/04 22:05:15 Clemens.Ladisch Exp $
+# $Id: MKunctrl.awk,v 1.28 2017/02/11 17:30:48 tom Exp $
 ##############################################################################
 ##############################################################################
-# Copyright (c) 1998-2008,2009 Free Software Foundation, Inc.                #
+# Copyright (c) 1998-2012,2017 Free Software Foundation, Inc.                #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
 # copy of this software and associated documentation files (the "Software"), #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
 # copy of this software and associated documentation files (the "Software"), #
@@ -140,9 +140,10 @@ END        {
                } else {
                        stringname = "unctrl"
                }
                } else {
                        stringname = "unctrl"
                }
-               print  "\tint check = ChCharOf(ch);"
+               print  "\tint check = (int) ChCharOf(ch);"
                print  "\tconst char *result;"
                print  ""
                print  "\tconst char *result;"
                print  ""
+               print  "(void) sp;"
                print  "\tif (check >= 0 && check < (int)SIZEOF(unctrl_table)) {"
                print  "#if NCURSES_EXT_FUNCS"
                print  "\t\tif ((sp != 0)"
                print  "\tif (check >= 0 && check < (int)SIZEOF(unctrl_table)) {"
                print  "#if NCURSES_EXT_FUNCS"
                print  "\t\tif ((sp != 0)"