summaryrefslogtreecommitdiff
path: root/src/cmap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmap.cxx')
-rw-r--r--src/cmap.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cmap.cxx b/src/cmap.cxx
index cc644dcb5..0494f0e22 100644
--- a/src/cmap.cxx
+++ b/src/cmap.cxx
@@ -159,11 +159,30 @@ int main() {
i++;
}
+ // write comment into 'cmap.h' so the reader knows what it is good for
+
+ printf("//\n");
+ printf("// \"$%s$\"\n","Id"); // avoid expansion of Id
+ printf("//\n");
+ printf("// DO NOT EDIT THIS FILE !\n");
+ printf("//\n");
+ printf("// This file must be created with \"src/cmap.cxx\".\n");
+ printf("//\n");
+
+ // write color map values
+
for (i=0; i<256; i++) {
printf("\t0x%02x%02x%02x00",cmap[i][0],cmap[i][1],cmap[i][2]);
if (i < 255) printf(",\n");
}
printf("\n");
+
+ // write final comment
+
+ printf("//\n");
+ printf("// End of \"$%s$\".\n","Id"); // avoid expansion of Id
+ printf("//\n");
+
return 0;
}