un peu de clarifications

This commit is contained in:
tTh
2018-11-25 11:44:42 +01:00
parent 86515d49d5
commit d0a520ea56
3 changed files with 16 additions and 9 deletions

View File

@@ -112,14 +112,14 @@ return ( &where->bbs[idx] );
}
/* --------------------------------------------------------------------- */
int print_bublist_desc(BBList *bbl, int flags)
int print_bublist_desc(BBList *bbl, int opts)
{
printf("------- bblist at %p\n", bbl);
printf("\tname \t'%s'\n", bbl->name);
printf("\tsize\t%6d\n\tfidx\t%6d\n", bbl->size, bbl->fidx);
if (flags & 0x01) {
if (opts & 0x01) {
printf("\txyz\t%f %f %f\n",
bbl->position.x, bbl->position.y, bbl->position.z);
}
@@ -207,7 +207,7 @@ return 0;
* 0x0001 print diameter
* 0x0002 print graylevel
*/
int fprint_bubulles(FILE *fp, char *title, BBList *bbl, int flags)
int fprint_bubulles(FILE *fp, char *title, BBList *bbl, int opts)
{
int idx;
Bubulle *ar;
@@ -230,8 +230,8 @@ for (idx=0; idx<bbl->fidx; idx++) {
fprintf(fp, "%12.6f %12.6f %12.6f",
ar[idx].p.x, ar[idx].p.y, ar[idx].p.z);
if (flags & 0x01) fprintf(fp, " %12.6f", ar[idx].d);
if (flags & 0x02) fprintf(fp, " %6d", ar[idx].gray);
if (opts & 0x01) fprintf(fp, " %12.6f", ar[idx].d);
if (opts & 0x02) fprintf(fp, " %6d", ar[idx].gray);
fputs("\n", fp);
}