[dev] [st] [PATCH] Refactor xsetcolorname()

From: FRIGN <dev_AT_frign.de>
Date: Sun, 25 May 2014 12:23:43 +0200

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

This archive was generated by hypermail 2.3.0 : Sun May 25 2014 - 12:24:06 CEST