Hello,
attached is a small patch to refactor xsetcolorname().
Note the high similarity to xloadcols(). I wonder how necessary it is
to realloc if name==NULL, given dc.col[] is only read except in
xloadcols(), where exactly the same stuff is done to each array-item as
repeated in xsetcolorname().
If I'm wrong, let me know. If not, we could skip the entire if(!
name)-part.
Cheers
FRIGN
--
FRIGN <dev_AT_frign.de>
Received on Sun May 25 2014 - 12:23:43 CEST