Use static linkage for various local names
This commit is contained in:
@@ -41,6 +41,7 @@ wxIMPLEMENT_DYNAMIC_CLASS(wxPCXHandler,wxImageHandler);
|
||||
// RLE encoding and decoding
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
static
|
||||
void RLEencode(unsigned char *p, unsigned int size, wxOutputStream& s)
|
||||
{
|
||||
unsigned int data, last, cont;
|
||||
@@ -84,6 +85,7 @@ void RLEencode(unsigned char *p, unsigned int size, wxOutputStream& s)
|
||||
s.PutC((char) last);
|
||||
}
|
||||
|
||||
static
|
||||
void RLEdecode(unsigned char *p, unsigned int size, wxInputStream& s)
|
||||
{
|
||||
// Read 'size' bytes. The PCX official specs say there will be
|
||||
@@ -156,6 +158,7 @@ enum {
|
||||
// Returns wxPCX_OK on success, or an error code otherwise
|
||||
// (see above for error codes)
|
||||
//
|
||||
static
|
||||
int ReadPCX(wxImage *image, wxInputStream& stream)
|
||||
{
|
||||
unsigned char hdr[128]; // PCX header
|
||||
@@ -303,6 +306,7 @@ int ReadPCX(wxImage *image, wxInputStream& stream)
|
||||
// PCX if possible, and then fall back to 24-bit if there
|
||||
// are more than 256 different colours.
|
||||
//
|
||||
static
|
||||
int SavePCX(wxImage *image, wxOutputStream& stream)
|
||||
{
|
||||
unsigned char hdr[128]; // PCX header
|
||||
|
||||
Reference in New Issue
Block a user