diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmap.cxx | 19 | ||||
| -rw-r--r-- | src/fl_cmap.h | 10 |
2 files changed, 29 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; } diff --git a/src/fl_cmap.h b/src/fl_cmap.h index 3b05ee7cf..9bc910cd7 100644 --- a/src/fl_cmap.h +++ b/src/fl_cmap.h @@ -1,3 +1,10 @@ +// +// "$Id$" +// +// DO NOT EDIT THIS FILE ! +// +// This file must be created with "src/cmap.cxx". +// 0x00000000, 0xff000000, 0x00ff0000, @@ -254,3 +261,6 @@ 0xffb6ff00, 0xffdaff00, 0xffffff00 +// +// End of "$Id$". +// |
