[gs-cvs] rev 8434 - trunk/gs/imdi
marcos at ghostscript.com
marcos at ghostscript.com
Tue Dec 11 08:54:05 PST 2007
Author: marcos
Date: 2007-12-11 08:54:05 -0800 (Tue, 11 Dec 2007)
New Revision: 8434
Modified:
trunk/gs/imdi/cctiff.c
trunk/gs/imdi/imdi.c
trunk/gs/imdi/imdi_gen.c
trunk/gs/imdi/imdi_tab.c
Log:
Replaced C++ comments with C comments (// -> /* */).
Modified: trunk/gs/imdi/cctiff.c
===================================================================
--- trunk/gs/imdi/cctiff.c 2007-12-11 08:29:58 UTC (rev 8433)
+++ trunk/gs/imdi/cctiff.c 2007-12-11 16:54:05 UTC (rev 8434)
@@ -205,7 +205,7 @@
) {
switch(cspace) {
case icSigCmyData:
- return 0xffff; // ~~9999
+ return 0xffff; /* ~~9999 */
if (inknames != NULL) {
*inknames = "cyan\000magenta\000yellow\000\000";
*len = zzstrlen(*inknames);
Modified: trunk/gs/imdi/imdi.c
===================================================================
--- trunk/gs/imdi/imdi.c 2007-12-11 08:29:58 UTC (rev 8433)
+++ trunk/gs/imdi/imdi.c 2007-12-11 16:54:05 UTC (rev 8434)
@@ -105,7 +105,7 @@
} else {
/* compute the needed stres (Assumint not sort) */
stres = ((1 << gs.prec)-1 + res-2)/(res-1);
-// stres = ((1024)-1 + res-2)/(res-1);
+/* stres = ((1024)-1 + res-2)/(res-1); */
#ifdef VERBOSE
printf("gres = %d, sres = %d\n",res,stres);
Modified: trunk/gs/imdi/imdi_gen.c
===================================================================
--- trunk/gs/imdi/imdi_gen.c 2007-12-11 08:29:58 UTC (rev 8433)
+++ trunk/gs/imdi/imdi_gen.c 2007-12-11 16:54:05 UTC (rev 8434)
@@ -614,7 +614,7 @@
ar->shfm = 0; /* Use shifts to mask values */
ar->oscale = 8; /* Has scaled indexing up to * 8 */
ar->smmul = 0; /* Doesn't have fast small multiply for index scaling */
-// ~~99
+/* ~~99 */
ar->nords = 3; /* Number of ord types */
ar->natord = 2; /* Most natural type (assume unsigned int) */
ar->nints = 3; /* Number of int types */
Modified: trunk/gs/imdi/imdi_tab.c
===================================================================
--- trunk/gs/imdi/imdi_tab.c 2007-12-11 08:29:58 UTC (rev 8433)
+++ trunk/gs/imdi/imdi_tab.c 2007-12-11 16:54:05 UTC (rev 8434)
@@ -103,7 +103,7 @@
#endif
) {
fprintf(stderr,"imdi_tabl: internal failure - unexpected write size!\n");
-*((char *)NULL) = 0; // ~~999
+*((char *)NULL) = 0; /* ~~999 */
exit(-1);
}
@@ -477,17 +477,19 @@
}
}
}
-
-//printf("~~Verticies = ");
-//for (i = 0; i <= gs->id; i++)
-// printf("%d ",vcmb[i]);
-//printf("\n");
-//printf("~~Parm -> Abs = ");
-//for (e = 0; e < gs->id; e++)
-// printf("%d ",comb[nsplx][e]);
-//printf("\n");
+/*
+printf("~~Verticies = ");
+for (i = 0; i <= gs->id; i++)
+ printf("%d ",vcmb[i]);
+printf("\n");
+printf("~~Parm -> Abs = ");
+for (e = 0; e < gs->id; e++)
+ printf("%d ",comb[nsplx][e]);
+printf("\n");
+*/
+
/* Increment the counter value */
XCB_INC(vcmb);
nsplx++;
@@ -511,11 +513,13 @@
double wvscale = (1 << gs->prec); /* Weighting value scale */
int sx; /* Simplex */
-//printf("Param coord =");
-//for (e = gs->id-1; e >= 0; e--) {
-// printf(" %d",ps[e]);
-//}
-//printf("\n");
+/*
+printf("Param coord =");
+for (e = gs->id-1; e >= 0; e--) {
+ printf(" %d",ps[e]);
+}
+printf("\n");
+*/
for (e = 0; e < gs->id; e++) {
/* (Should try wvscale + 0.49999999, or something ?) */
double tt = (wvscale * (double)ps[e])/((double)gs->stres);
@@ -539,11 +543,13 @@
}
#endif
-//printf("Baricentric coord =");
-//for (e = gs->id; e >= 0; e--) {
-// printf(" %d",we[e]);
-//}
-//printf("\n");
+/*
+printf("Baricentric coord =");
+for (e = gs->id; e >= 0; e--) {
+ printf(" %d",we[e]);
+}
+printf("\n");
+*/
/* For each simplex, compute the interp. and */
/* and entry offsets, and write the entry. */
More information about the gs-cvs
mailing list