summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-02-20 16:24:11 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-02-20 16:24:11 +0000
commit45026bbd8f71e9cd7662c5904170950c37116eb6 (patch)
tree6ee610844e6dec74f6ac0b6c8fe0dedbe0b0244d /src
parent07ad8383ed0e958ef5f0533cf2867ec26caa24f0 (diff)
Document creation of src/fl_cmap.h with src/cmap.cxx.
This is only for developer info. Note: cmap.cxx is not included in the library. It is only used to generate fl_cmap.h. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/cmap.cxx19
-rw-r--r--src/fl_cmap.h10
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$".
+//