aboutsummaryrefslogtreecommitdiffstats
path: root/pc
diff options
context:
space:
mode:
Diffstat (limited to 'pc')
-rw-r--r--pc/ChangeLog8
-rw-r--r--pc/gawkmisc.pc14
2 files changed, 15 insertions, 7 deletions
diff --git a/pc/ChangeLog b/pc/ChangeLog
index af2d2e66..22870c9d 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,11 @@
+2021-01-08 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawkmisc.pc (quote): Make const char *.
+ (defpath): Make const char *.
+ (deflibpath): Make const char *.
+ (envsep): Make const char *.
+ (gawk_name): Now returns const char *.
+
2021-01-07 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.tst: Rebuilt.
diff --git a/pc/gawkmisc.pc b/pc/gawkmisc.pc
index 5f44280d..4e58b0a8 100644
--- a/pc/gawkmisc.pc
+++ b/pc/gawkmisc.pc
@@ -22,19 +22,19 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
-char quote = '\'';
-char envsep = ';';
+const char quote = '\'';
+const char envsep = ';';
# ifdef DEFPATH
-char *defpath = DEFPATH;
+const char *defpath = DEFPATH;
# else
-char *defpath = ".;c:\\lib\\awk;c:\\gnu\\lib\\awk";
+const char *defpath = ".;c:\\lib\\awk;c:\\gnu\\lib\\awk";
# endif
/* the Makefile should define DEFLIBPATH */
-char *deflibpath = DEFLIBPATH;
+const char *deflibpath = DEFLIBPATH;
#ifdef __EMX__
-#include<io.h>
+#include <io.h>
static int _os2_is_abs_path(const char *dirname);
static char* _os2_unixroot(const char *path);
@@ -61,7 +61,7 @@ static const char* _os2_unixroot_path(const char *path);
/* gawk_name --- pull out the "gawk" part from how the OS called us */
-char *
+const char *
gawk_name(filespec)
const char *filespec;
{