ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/arch2rad.c
(Generate patch)

Comparing ray/src/cv/arch2rad.c (file contents):
Revision 1.6 by greg, Mon Mar 11 13:10:26 1991 UTC vs.
Revision 1.7 by greg, Mon Oct 14 09:51:16 1991 UTC

# Line 426 | Line 426 | FILE   *fp;
426                                          /* check for repeats */
427          rept = 0; nrepts = 0;
428          for (i = 0; i < nm; i++) {
429 <                if (ml[i] == sm) {
429 >                if (ml[i] == sm || !strcmp(ml[i], VOIDID)) {
430                          rept |= 1<<i;
431                          nrepts++;
432 +                        continue;
433                  }
434                  for (j = 0; j < i; j++)
435 <                        if (ml[j] == ml[i]) {
435 >                        if (!(rept & 1<<j) && ml[j] == ml[i]) {
436                                  rept |= 1<<j;
437                                  nrepts++;
438                          }
439          }
440                                          /* print antimatter and modlist */
441 <        fprintf(fp, "\nvoid antimatter %s\n", openmod);
441 >        fprintf(fp, "\n%s antimatter %s\n", VOIDID, openmod);
442          fprintf(fp, "%d %s", 1+nm-nrepts, sm);
443          for (i = 0; i < nm; i++)
444                  if (!(rept & 1<<i))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines