From: ellson Date: Tue, 2 Sep 2008 18:06:40 +0000 (+0000) Subject: const'ify ps_txt X-Git-Tag: LAST_LIBGRAPH~32^2~3490 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a632af969a36f707c6e26a3f05e89c66d49b97d;p=graphviz const'ify ps_txt move ps.txt and generated ps.h into core plugin, and initially copy to lasi plugin --- diff --git a/awk/stringize.awk b/awk/stringize.awk index 9c4263f52..6b4a2cf49 100755 --- a/awk/stringize.awk +++ b/awk/stringize.awk @@ -12,7 +12,7 @@ # * AT&T Research, Florham Park NJ * # **********************************************************/ -BEGIN { s = ARGV[1]; gsub (".*/", "", s); gsub("\\.","_",s); printf("char *%s[] = {\n",s); } +BEGIN { s = ARGV[1]; gsub (".*/", "", s); gsub("\\.","_",s); printf("const char *%s[] = {\n",s); } /^#/ { print $0; next; } { gsub("\\\\","\\\\",$0); printf("\"%s\",\n",$0); } END { printf("(char*)0 };\n"); }