dhist.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. struct stat_node
  2. {
  3. long int cat; /* cell-file category value */
  4. long int stat; /* statistic: number of cells with that cat */
  5. struct stat_node *next; /* pointer to next stat_node in list */
  6. };
  7. struct stat_list
  8. {
  9. struct stat_node *ptr; /* pointer to first stat_node in list */
  10. long int count, /* number of stat_nodes in list
  11. (not counting null cells) */
  12. null_stat, /* stats for null cell */
  13. maxstat, /* max. statistic in list */
  14. minstat, /* min. statistic in list */
  15. sumstat, /* sum of all statistics in list */
  16. maxcat, /* max. cell-file category value in list */
  17. mincat; /* min. cell-file category value in list */
  18. };
  19. /* structures for determining tic-mark numbering scheme */
  20. struct units
  21. {
  22. char *name; /* name of unit (text) */
  23. long int unit; /* tic-mark interval */
  24. long int every; /* tic_mark number interval */
  25. };
  26. extern struct Categories cats;
  27. extern struct FPRange fp_range;
  28. /* bar.c */
  29. int bar(struct stat_list *, struct Colors *);
  30. float rem(long int, long int);
  31. /* draw_slice.c */
  32. int draw_slice_unfilled(struct Colors *, int, double, double, double, double,
  33. double);
  34. int draw_slice_filled(struct Colors *, DCELL, int, double, double, double,
  35. double, double);
  36. int draw_slice(struct Colors *, int, DCELL, DCELL, int, double, double,
  37. double, double, double);
  38. /* get_stats.c */
  39. int get_stats(const char *, struct stat_list *);
  40. /* pie.c */
  41. int pie(struct stat_list *, struct Colors *);