Use static linkage for various local names

This commit is contained in:
Paul Cornett
2017-09-24 09:29:26 -07:00
parent 925a1c0734
commit cd1c3fab0c
18 changed files with 38 additions and 7 deletions

View File

@@ -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