Introduced three macros to deal with the size of the buffers in the various functions. Introduced a static function read_line to read a complete line from a file and store as  much of it in the buffer as will fit. The line is stripped of carriage returns, newlines and trailing blanks, so that reading the palette files is more robust.
Introduced three macros to deal with the size of the buffers in the various functions.
Introduced a static function read_line to read a complete line from a file and store as 
much of it in the buffer as will fit. The line is stripped of carriage returns, newlines
and trailing blanks, so that reading the palette files is more robust.

svn path=/trunk/; revision=11758

FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot