]> thyrsus.com Git - intercal.git/commitdiff
Make ick_clc_cset_* const char* instead of char*.
authorArvid Norlander <anmaster@tele2.se>
Tue, 18 Nov 2008 19:16:41 +0000 (14:16 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 26 Aug 2010 00:35:21 +0000 (20:35 -0400)
src/bin2c.c
src/clc-cset.c

index e866cd70a293c1e396ff863a596a653c4b048ec5..63006979873bca11c7dd609126f9218dbacc74fe 100644 (file)
@@ -34,7 +34,7 @@ int main(int argc, char** argv)
   }
   (void) puts("/* This file is automatically generated; to modify it,");
   (void) puts("   modify the source file, not this file. */");
-  printf("char* %s=\"\\\n",argv[1]);
+  printf("const char* %s=\"\\\n",argv[1]);
   colno=0;
   while((c=getchar())!=EOF)
   {
index 5807438fc8361d567b6a2865009da121859b8632..551cc37a1913acd802d6bcad4076a89d37b67e1d 100644 (file)
@@ -56,12 +56,12 @@ LICENSE TERMS
  * rather than reading them from disk; in this case, these extern
  * variables will be set non-null by object files invented
  * specifically for the purpose. */
-extern /*@null@*/ char* ick_clc_cset_atari;
-extern /*@null@*/ char* ick_clc_cset_baudot;
-extern /*@null@*/ char* ick_clc_cset_ebcdic;
-extern /*@null@*/ char* ick_clc_cset_latin1;
+extern /*@null@*/ const char* ick_clc_cset_atari;
+extern /*@null@*/ const char* ick_clc_cset_baudot;
+extern /*@null@*/ const char* ick_clc_cset_ebcdic;
+extern /*@null@*/ const char* ick_clc_cset_latin1;
 
-static /*@null@*/ char* ick_clc_cset_ptr=0;
+static /*@null@*/ const char* ick_clc_cset_ptr=0;
 
 /* Fake that we're reading hardcoded characters from a file. This
  * method of doing it is obviously not thread-safe. */