ncurses 5.3
[ncurses.git] / ncurses / tinfo / MKnames.awk
index b97eccc15e389e83ef2dace6d3875f4732c6e415..455efc01dea3465acf6979b2ac092700f062e3cf 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: MKnames.awk,v 1.10 1999/01/16 23:36:34 tom Exp $
+# $Id: MKnames.awk,v 1.11 2000/12/09 23:46:13 tom Exp $
 BEGIN          {
                        print  "/* This file was generated by MKnames.awk */" > "namehdr"
                        print  ""                               > "namehdr"
@@ -10,7 +10,7 @@ BEGIN         {
                        print  "#include <term.h>"              > "namehdr"
                        print  "#define DCL(it) static IT data##it[]" > "namehdr"
                        print  "#else"                          > "namehdr"
-                       print  "#define DCL(it) IT it[]"        > "namehdr"
+                       print  "#define DCL(it) NCURSES_EXPORT_VAR(IT) it[]"    > "namehdr"
                        print  "#endif"                         > "namehdr"
                        print  ""                               > "namehdr"
                        print  "/*"                             > "boolnames"
@@ -80,7 +80,7 @@ END           {
                        print  "};"                             > "strcodes"
                        print  ""                               > "strcodes"
                        print  "#if BROKEN_LINKER"              > "nameftr"
-                       print  "#define FIX(it) IT *_nc_##it(void) { return data##it; }" > "nameftr"
+                       print  "#define FIX(it) NCURSES_IMPEXP IT * NCURSES_API _nc_##it(void) { return data##it; }" > "nameftr"
                        print  "FIX(boolnames)"                 > "nameftr"
                        print  "FIX(boolfnames)"                > "nameftr"
                        print  "FIX(numnames)"                  > "nameftr"
@@ -90,7 +90,7 @@ END           {
                        print  "#endif /* BROKEN_LINKER */"     > "nameftr"
                        print  ""                               > "codeftr"
                        print  "#if BROKEN_LINKER"              > "codeftr"
-                       print  "#define FIX(it) IT *_nc_##it(void) { return data##it; }" > "codeftr"
+                       print  "#define FIX(it) NCURSES_IMPEXP IT * NCURSES_API _nc_##it(void) { return data##it; }" > "codeftr"
                        print  "FIX(boolcodes)"                 > "codeftr"
                        print  "FIX(numcodes)"                  > "codeftr"
                        print  "FIX(strcodes)"                  > "codeftr"