]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/MKunctrl.awk
ncurses 5.3
[ncurses.git] / ncurses / base / MKunctrl.awk
index 3d5b25637d75f41c1ae397b08d9b4ba8a5c3bfb3..d8a6587e2c69f248bd264294f1f3428537f5e092 100644 (file)
@@ -1,6 +1,6 @@
-# $Id: MKunctrl.awk,v 1.7 2000/04/01 19:49:26 tom Exp $
+# $Id: MKunctrl.awk,v 1.9 2001/06/02 23:59:20 skimo Exp $
 ##############################################################################
-# Copyright (c) 1998 Free Software Foundation, Inc.                          #
+# Copyright (c) 1998,2000,2001 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"), #
@@ -39,7 +39,7 @@ BEGIN {
                print ""
        }
 END    {
-               print "NCURSES_CONST char *unctrl(register chtype ch)"
+               print "NCURSES_EXPORT(NCURSES_CONST char *) unctrl (register chtype ch)"
                print "{"
                printf "static const char* const table[] = {"
                for ( ch = 0; ch < 256; ch++ ) {
@@ -64,6 +64,6 @@ END   {
                }
                print "};"
                print ""
-               print "\treturn (NCURSES_CONST char *)table[TextOf(ch)];"
+               print "\treturn (NCURSES_CONST char *)table[ChCharOf(ch)];"
                print "}"
        }