inkpot.3.pdf: inkpot.3
- $(GROFF) -Tps -man inkpot.3 | $(PS2PDF) - - > inkpot.3.pdf
-CLEANFILES = tk.lib svg.lib x11.lib brewer.lib \
- inkpot_define.h inkpot_value_table.h inkpot_scheme_table.h
+CLEANFILES = tk.lib svg.lib x11.lib brewer.lib
-EXTRA_DIST = $(man_MANS) $(pdf_DATA) Makefile.old scripts/* data/*
+EXTRA_DIST = $(man_MANS) $(pdf_DATA) Makefile.old scripts/* data/* \
+ inkpot_define.h inkpot_value_table.h inkpot_scheme_table.h
-DISTCLEANFILES = $(pdf_DATA)
+DISTCLEANFILES = $(pdf_DATA) \
+ inkpot_define.h inkpot_value_table.h inkpot_scheme_table.h
{
if (scheme == NULL)
return NULL;
+ /* FIXME - split scheme/subscheme/n */
return (inkpot_scheme_name_t *) bsearch(
(void*)scheme, (void*)TAB_SCHEMES,
SZT_SCHEMES, sizeof(inkpot_scheme_name_t),
static inkpot_status_t inkpot_put_index ( inkpot_t *inkpot, int index )
{
IDX_SCHEMES_INDEX j;
- IDX_IXVALUES first, last;
+ IDX_INDEXES first, last;
IDX_VALUES value_idx;
if (!inkpot->active_schemes)
j = inkpot->scheme_list[0];
first = TAB_SCHEMES_INDEX[j].first_value_idx;
if (++j >= SZT_SCHEMES_INDEX)
- last = SZT_IXVALUES;
+ last = SZT_INDEXES;
else
last = TAB_SCHEMES_INDEX[j].first_value_idx;
last = last-1-first;
index = (index > last) ? last : index;
index += first;
- assert(index < SZT_IXVALUES);
- value_idx = TAB_IXVALUES[index];
+ assert(index < SZT_INDEXES);
+ value_idx = TAB_INDEXES[index];
if (value_idx >= SZT_VALUES)
assert(value_idx < SZT_VALUES + SZT_NONAME_VALUES);
{
inkpot_status_t rc = INKPOT_COLOR_UNKNOWN;
IDX_SCHEMES_INDEX j;
- IDX_IXVALUES first, last;
+ IDX_INDEXES first, last;
IDX_VALUES value_idx;
char *q, *s;
const char *p;
/* FIXME - deal with subschemes */
first = TAB_SCHEMES_INDEX[j].first_value_idx;
if (++j >= SZT_SCHEMES_INDEX)
- last = SZT_IXVALUES;
+ last = SZT_INDEXES;
else
last = TAB_SCHEMES_INDEX[j].first_value_idx;
last = last-1-first;
index = (index > last) ? last : index;
index += first;
- assert(index < SZT_IXVALUES);
- value_idx = TAB_IXVALUES[index];
+ assert(index < SZT_INDEXES);
+ value_idx = TAB_INDEXES[index];
if (value_idx >= SZT_VALUES)
assert(value_idx < SZT_VALUES + SZT_NONAME_VALUES);
IDX_NAMES i;
#if 0
IDX_SCHEMES_INDEX j;
- IDX_IXVALUES k, first, last;
+ IDX_INDEXES k, first, last;
IDX_VALUES v;
char buf[20];
#endif
first = scheme_index->first_value_idx;
j = scheme_index - TAB_SCHEMES_INDEX;
if (++j >= SZT_SCHEMES_INDEX)
- last = SZT_IXVALUES;
+ last = SZT_INDEXES;
else
last = TAB_SCHEMES_INDEX[j].first_value_idx;
for (k = first; k < last; k++) {
- v = TAB_IXVALUES[k];
+ v = TAB_INDEXES[k];
sprintf(buf, "%d(", k - first);
inkpot_puts(inkpot, buf);
inkpot_puts(inkpot, &TAB_STRINGS[scheme_index->string_idx]);
IDX_STRINGS
subscheme_string_idx; /* The subscheme name in TAB_STRINGS. e.g "blues7" */
- IDX_IXVALUES
+ IDX_INDEXES
first_value_idx; /* The first index to the color values in
- * TAB_IXVALUES. Terminated by the
+ * TAB_INDEXES. Terminated by the
* first_value_idx of the next
* inkpot_scheme_index_t in TAB_SCHEMES_INDEX
* or by SZT_SCHEMES_INDEX */
scheme_bits, /* One bit per inkpot_scheme_name_t */
out_scheme_bit; /* One scheme only for output. */
- IDX_IXVALUES
+ IDX_INDEXES
index, /* The index for the current value in active_schemes_index */
out_index; /* The index for the current value in active_out_schemes_index */