wxFrame(frame, -1, title, wxPoint(x, y), wxSize(w, h))
{}
-void MyFrame::OnQuit(wxCommandEvent& event)
+void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) )
{
Close(TRUE);
}
-void MyFrame::OnAbout(wxCommandEvent& event)
+void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
{
wxMessageDialog dialog(this, "This is a minimal sample\nA second line in the message box",
"About Minimal", wxYES_NO|wxCANCEL);
EVT_MENU(GRID_QUIT, MyFrame::Quit)
END_EVENT_TABLE()
-void MyFrame::ToggleEditable(wxCommandEvent& event)
+void MyFrame::ToggleEditable(wxCommandEvent& WXUNUSED(event))
{
grid->SetEditable(!grid->GetEditable());
grid->Refresh();
}
-void MyFrame::ToggleRowLabel(wxCommandEvent& event)
+void MyFrame::ToggleRowLabel(wxCommandEvent& WXUNUSED(event))
{
if (grid->GetLabelSize(wxVERTICAL) > 0)
grid->SetLabelSize(wxVERTICAL, 0);
grid->Refresh();
}
-void MyFrame::ToggleColLabel(wxCommandEvent& event)
+void MyFrame::ToggleColLabel(wxCommandEvent& WXUNUSED(event))
{
if (grid->GetLabelSize(wxHORIZONTAL) > 0)
grid->SetLabelSize(wxHORIZONTAL, 0);
grid->Refresh();
}
-void MyFrame::ToggleDividers(wxCommandEvent& event)
+void MyFrame::ToggleDividers(wxCommandEvent& WXUNUSED(event))
{
if (!grid->GetDividerPen())
grid->SetDividerPen(wxThePenList->FindOrCreatePen("LIGHT GREY", 1, wxSOLID));
grid->Refresh();
}
-void MyFrame::LeftCell(wxCommandEvent& event)
+void MyFrame::LeftCell(wxCommandEvent& WXUNUSED(event))
{
grid->SetCellAlignment(wxLEFT);
grid->Refresh();
}
-void MyFrame::CentreCell(wxCommandEvent& event)
+void MyFrame::CentreCell(wxCommandEvent& WXUNUSED(event))
{
grid->SetCellAlignment(wxCENTRE);
grid->Refresh();
}
-void MyFrame::RightCell(wxCommandEvent& event)
+void MyFrame::RightCell(wxCommandEvent& WXUNUSED(event))
{
grid->SetCellAlignment(wxRIGHT);
grid->Refresh();
}
-void MyFrame::ColourLabelBackground(wxCommandEvent& event)
+void MyFrame::ColourLabelBackground(wxCommandEvent& WXUNUSED(event))
{
wxColourData data;
data.SetChooseFull(TRUE);
}
}
-void MyFrame::ColourLabelText(wxCommandEvent& event)
+void MyFrame::ColourLabelText(wxCommandEvent& WXUNUSED(event))
{
wxColourData data;
data.SetChooseFull(TRUE);
}
}
-void MyFrame::NormalLabelColouring(wxCommandEvent& event)
+void MyFrame::NormalLabelColouring(wxCommandEvent& WXUNUSED(event))
{
grid->SetLabelBackgroundColour(*wxLIGHT_GREY);
grid->SetLabelTextColour(*wxBLACK);
grid->Refresh();
}
-void MyFrame::ColourCellBackground(wxCommandEvent& event)
+void MyFrame::ColourCellBackground(wxCommandEvent& WXUNUSED(event))
{
wxColourData data;
data.SetChooseFull(TRUE);
}
}
-void MyFrame::ColourCellText(wxCommandEvent& event)
+void MyFrame::ColourCellText(wxCommandEvent& WXUNUSED(event))
{
wxColourData data;
data.SetChooseFull(TRUE);
}
}
-void MyFrame::NormalCellColouring(wxCommandEvent& event)
+void MyFrame::NormalCellColouring(wxCommandEvent& WXUNUSED(event))
{
grid->SetCellBackgroundColour(*wxWHITE);
grid->SetCellTextColour(*wxBLACK);
grid->Refresh();
}
-void MyFrame::Quit(wxCommandEvent& event)
+void MyFrame::Quit(wxCommandEvent& WXUNUSED(event))
{
this->Close(TRUE);
}
{
}
-void MyFrame::OnQuit(wxCommandEvent& event)
+void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) )
{
Close(TRUE);
}
-void MyFrame::OnAbout(wxCommandEvent& event)
+void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
wxMessageDialog(this, _("I18n sample\n© Vadim Zeitlin & Julian Smart"),
_("About Internat"), wxOK | wxICON_INFORMATION).ShowModal();
}
-void MyFrame::OnPlay(wxCommandEvent& event)
+void MyFrame::OnPlay(wxCommandEvent& WXUNUSED(event))
{
wxString str = wxGetTextFromUser(_("Enter your number:"),
_("Try to guess my number!"),
EVT_SIZE(MyFrame::OnSize)
END_EVENT_TABLE()
-void MyFrame::LoadFile(wxCommandEvent& event)
+void MyFrame::LoadFile(wxCommandEvent& WXUNUSED(event) )
{
char *s = wxFileSelector("Load text file", NULL, NULL, NULL, "*.txt");
if (s)
}
}
-void MyFrame::Quit(wxCommandEvent& event)
+void MyFrame::Quit(wxCommandEvent& WXUNUSED(event) )
{
this->Close(TRUE);
}
-void MyFrame::TestSizers(wxCommandEvent& event)
+void MyFrame::TestSizers(wxCommandEvent& WXUNUSED(event) )
{
SizerFrame *newFrame = new SizerFrame(NULL, "Sizer Test Frame", 50, 50, 500, 500);
newFrame->Show(TRUE);
}
-void MyFrame::About(wxCommandEvent& event)
+void MyFrame::About(wxCommandEvent& WXUNUSED(event) )
{
(void)wxMessageBox("wxWindows GUI library layout demo\n",
"About Layout Demo", wxOK|wxCENTRE);
}
// Size the subwindows when the frame is resized
-void MyFrame::OnSize(wxSizeEvent& event)
+void MyFrame::OnSize(wxSizeEvent& WXUNUSED(event) )
{
Layout();
}
-void MyFrame::Draw(wxDC& dc, bool draw_bitmaps)
+void MyFrame::Draw(wxDC& dc, bool WXUNUSED(draw_bitmaps) )
{
dc.SetPen(wxGREEN_PEN);
- dc.DrawLine(0.0, 0.0, 200.0, 200.0);
- dc.DrawLine(200.0, 0.0, 0.0, 200.0);
+ dc.DrawLine(0, 0, 200, 200);
+ dc.DrawLine(200, 0, 0, 200);
dc.SetBrush(wxCYAN_BRUSH);
dc.SetPen(wxRED_PEN);
- dc.DrawRectangle(100.0, 100.0, 100.0, 50.0);
- dc.DrawRoundedRectangle(150.0, 150.0, 100.0, 50.0,20.0);
+ dc.DrawRectangle(100, 100, 100, 50);
+ dc.DrawRoundedRectangle(150, 150, 100, 50, 20);
- dc.DrawEllipse(250.0, 250.0, 100.0, 50.0);
- dc.DrawSpline(50.0, 200.0, 50.0, 100.0, 200.0, 10.0);
- dc.DrawLine(50.0, 230.0, 200.0, 230.0);
+ dc.DrawEllipse(250, 250, 100, 50);
+ dc.DrawSpline(50, 200, 50, 100, 200, 10);
+ dc.DrawLine(50, 230, 200, 230);
dc.SetPen(wxBLACK_PEN);
- dc.DrawArc(50.0, 300.0, 100.0, 250.0, 100.0, 300.0);
+ dc.DrawArc(50, 300, 100, 250, 100, 300 );
}
BEGIN_EVENT_TABLE(MyWindow, wxWindow)
}
// Define the repainting behaviour
-void MyWindow::OnPaint(wxPaintEvent& event)
+void MyWindow::OnPaint(wxPaintEvent& WXUNUSED(event) )
{
wxPaintDC dc(this);
frame->Draw(dc,TRUE);
// Show the frame
frame->Show(TRUE);
-// wxDebugContext::SetCheckpoint();
-// wxDebugContext::SetFile("debug.log");
+ wxDebugContext::SetCheckpoint();
+ wxDebugContext::SetFile("debug.log");
wxString *thing = new wxString; // WXDEBUG_NEW wxString;
wxDate* date = new wxDate;
const char *data = (const char*) thing ;
-// wxDebugContext::PrintClasses();
-// wxDebugContext::Dump();
-// wxDebugContext::PrintStatistics();
+ wxDebugContext::PrintClasses();
+ wxDebugContext::Dump();
+ wxDebugContext::PrintStatistics();
// Don't delete these two objects, to force wxApp to flag a memory leak.
// delete thing;
wxFrame(frame, -1, title, wxPoint(x, y), wxSize(w, h))
{}
-void MyFrame::OnQuit(wxCommandEvent& event)
+void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) )
{
Close(TRUE);
}
-void MyFrame::OnAbout(wxCommandEvent& event)
+void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
{
wxMessageDialog dialog(this, "This is a minimal sample\nA second line in the message box",
"About Minimal", wxYES_NO|wxCANCEL);
common/timercmn.cpp \
common/utilscmn.cpp \
common/stream.cpp \
+ common/datstrm.cpp \
common/fstream.cpp \
common/mstream.cpp \
common/zstream.cpp \
- common/datstrm.cpp \
common/objstrm.cpp \
\
gtk/app.cpp \
ErrorMsg ("Object already deleted");
else {
// Can't use the error routines as we have no recognisable object.
- // wxTrace("Can't verify memory struct - all bets are off!\n");
+#ifndef __WXGTK__
+ wxTrace("Can't verify memory struct - all bets are off!\n");
+#endif
}
return 0;
}
if (!HasStream())
return FALSE;
- TraverseList ((PmSFV)&wxMemStruct::PrintNode, (checkPoint ? checkPoint->m_next : NULL));
+ TraverseList ((PmSFV)&wxMemStruct::PrintNode, (checkPoint ? checkPoint->m_next : (wxMemStruct*)NULL));
return TRUE;
#else
{
appNameStr = wxTheApp->GetAppName();
appName = (char*) (const char*) appNameStr;
- wxTrace("Memory dump of %s at %s:\n", appName, wxNow());
+ wxTrace("Memory dump of %s at %s:\n", appName, WXSTRINGCAST wxNow() );
}
}
- TraverseList ((PmSFV)&wxMemStruct::Dump, (checkPoint ? checkPoint->m_next : NULL));
+ TraverseList ((PmSFV)&wxMemStruct::Dump, (checkPoint ? checkPoint->m_next : (wxMemStruct*)NULL));
return TRUE;
#else
wxDebugStatsStruct *list = NULL;
- wxMemStruct *from = (checkPoint ? checkPoint->m_next : NULL);
+ wxMemStruct *from = (checkPoint ? checkPoint->m_next : (wxMemStruct*)NULL );
if (!from)
from = wxDebugContext::GetHead ();
{
int nFailures = 0;
- wxMemStruct *from = (checkPoint ? checkPoint->m_next : NULL);
+ wxMemStruct *from = (checkPoint ? checkPoint->m_next : (wxMemStruct*)NULL );
if (!from || checkAll)
from = wxDebugContext::GetHead ();
#endif
// TODO: store whether this is a vector or not.
-void * wxDebugAlloc(size_t size, char * fileName, int lineNum, bool isObject, bool isVect)
+void * wxDebugAlloc(size_t size, char * fileName, int lineNum, bool isObject, bool WXUNUSED(isVect) )
{
// If not in debugging allocation mode, do the normal thing
// so we don't leave any trace of ourselves in the node list.
}
// TODO: check whether was allocated as a vector
-void wxDebugFree(void * buf, bool isVect)
+void wxDebugFree(void * buf, bool WXUNUSED(isVect) )
{
if (!buf)
return;
sig[WXOBJ_BEG_LEN] = 0;
if (wxString(sig) != WXOBJ_BEGIN)
return FALSE;
- info->object = wxCreateDynamicObject((char *)data_s.ReadString());
+ info->object = wxCreateDynamicObject( WXSTRINGCAST data_s.ReadString());
info->object_name = data_s.ReadString();
info->n_children = data_s.Read8();
info->children = wxList();
FILE *file;
unsigned char *data, *ptr;
int pc, c, i, j, k, ncolors, cpp, comment, transp, quote,
- context, len, token, done;
+ context, len, /*token,*/ done;
char line[65536], s[65536], tok[65536], col[65536];
XColor xcol;
struct _cmap
*cmap;
int lookup[128][128];
+ i = 0;
+ j = 0;
+
transp = 0;
done = 0;
+ cmap = NULL;
file = fopen(f, "r");
if (!file)
/* Color Table */
if (j < ncolors)
{
- int colptr = 0;
+ /* int colptr = 0; not used */
int slen;
tok[0] = 0;
{
if (cpp == 1)
for (i = 0; i < ncolors; i++)
- lookup[cmap[i].str[0]][cmap[i].str[1]] = i;
+ lookup[(int)cmap[i].str[0]][(int)cmap[i].str[1]] = i;
if (cpp == 2)
for (i = 0; i < ncolors; i++)
- lookup[cmap[i].str[0]][cmap[i].str[1]] = i;
+ lookup[(int)cmap[i].str[0]][(int)cmap[i].str[1]] = i;
context++;
}
}
for (i = 0; ((i < 65536) && (line[i])); i++)
{
col[0] = line[i];
- if (cmap[lookup[col[0]][0]].transp)
+ if (cmap[lookup[(int)col[0]][0]].transp)
{
*ptr++ = 255;
*ptr++ = 0;
}
else
{
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].r;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].g;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].b;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].r;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].g;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].b;
}
}
}
for (i = 0; ((i < 65536) && (line[i])); i++)
{
col[0] = line[i];
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].r;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].g;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].b;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].r;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].g;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].b;
}
}
}
{
col[0] = line[i++];
col[1] = line[i];
- if (cmap[lookup[col[0]][col[1]]].transp)
+ if (cmap[lookup[(int)col[0]][(int)col[1]]].transp)
{
*ptr++ = 255;
*ptr++ = 0;
}
else
{
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].r;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].g;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].b;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].r;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].g;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].b;
}
}
}
{
col[0] = line[i++];
col[1] = line[i];
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].r;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].g;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].b;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].r;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].g;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].b;
}
}
}
XWindowAttributes xwa;
XVisualInfo xvi, *xvir;
char *homedir;
- char file[4096];
+/* char file[4096]; */
char s[4096], *s1, *s2;
FILE *f;
int override = 0;
int num;
int i, max, maxn;
int clas;
- char *palfile;
+ char *palfile = NULL;
int loadpal;
int vis;
int newcm;
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex,*/ er, eg, eb;
unsigned char *ptr2;
unsigned short *img;
int jmp;
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, *ter, ex, er, eg, eb;
unsigned char *ptr2;
unsigned short *img;
int jmp;
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex,*/ er, eg, eb;
unsigned char *ptr2;
unsigned short *img;
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex,*/ er, eg, eb;
unsigned char *ptr2;
unsigned short *img;
int jmp;
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex, */ er, eg, eb;
unsigned char *ptr2;
unsigned short *img;
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex,*/ er, eg, eb;
unsigned char *ptr2;
unsigned char dither[4][4] =
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex, */ er, eg, eb;
unsigned char *ptr2;
unsigned char dither[4][4] =
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex, */ er, eg, eb;
unsigned char *ptr2;
unsigned char dither[4][4] =
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex,*/ er, eg, eb;
unsigned char *ptr2;
unsigned char dither[4][4] =
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex,*/ er, eg, eb;
unsigned char *ptr2;
unsigned short *img;
int jmp;
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex,*/ er, eg, eb;
unsigned char *ptr2;
unsigned short *img;
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex,*/ er, eg, eb;
unsigned char *ptr2;
unsigned short *img;
int jmp;
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex,*/ er, eg, eb;
unsigned char *ptr2;
unsigned short *img;
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex, */ er, eg, eb;
unsigned char *ptr2;
unsigned char dither[4][4] =
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex, */ er, eg, eb;
unsigned char *ptr2;
unsigned char dither[4][4] =
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex,*/ er, eg, eb;
unsigned char *ptr2;
unsigned char dither[4][4] =
XImage * sxim, int *er1, int *er2, int *xarray,
unsigned char **yarray)
{
- int x, y, val, r, g, b, *ter, ex, er, eg, eb;
+ int x, y, val, r, g, b, /* *ter, ex, */ er, eg, eb;
unsigned char *ptr2;
unsigned char dither[4][4] =
{
int bx, by, bxx, byy;
int w, h;
- int sx, sy;
+ int sx = 0, sy = 0;
int tx = 35, ty = 35;
int x, y;
unsigned char *ptr;
{
GdkImlibImage *im;
unsigned char *ptr;
- int pc, c, i, j, k, ncolors, cpp, comment, transp, quote,
+ int /* pc, */ c, i, j, k, ncolors, cpp, comment, transp, quote,
context, len, count, done;
int w, h;
char *line, s[65536], tok[65536], col[65536];
int r, g, b;
}
*cmap;
+
int lookup[128][128];
+ cmap = NULL;
+ j = 0;
if (!data)
return NULL;
im = malloc(sizeof(GdkImlibImage));
{
if (cpp == 1)
for (i = 0; i < ncolors; i++)
- lookup[cmap[i].str[0]][cmap[i].str[1]] = i;
+ lookup[(int)cmap[i].str[0]][(int)cmap[i].str[1]] = i;
if (cpp == 2)
for (i = 0; i < ncolors; i++)
- lookup[cmap[i].str[0]][cmap[i].str[1]] = i;
+ lookup[(int)cmap[i].str[0]][(int)cmap[i].str[1]] = i;
context++;
}
}
for (i = 0; ((i < 65536) && (line[i])); i++)
{
col[0] = line[i];
- if (cmap[lookup[col[0]][0]].transp)
+ if (cmap[lookup[(int)col[0]][0]].transp)
{
*ptr++ = 255;
*ptr++ = 0;
}
else
{
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].r;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].g;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].b;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].r;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].g;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].b;
}
}
}
for (i = 0; ((i < 65536) && (line[i])); i++)
{
col[0] = line[i];
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].r;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].g;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][0]].b;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].r;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].g;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][0]].b;
}
}
}
{
col[0] = line[i++];
col[1] = line[i];
- if (cmap[lookup[col[0]][col[1]]].transp)
+ if (cmap[lookup[(int)col[0]][(int)col[1]]].transp)
{
*ptr++ = 255;
*ptr++ = 0;
}
else
{
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].r;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].g;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].b;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].r;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].g;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].b;
}
}
}
{
col[0] = line[i++];
col[1] = line[i];
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].r;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].g;
- *ptr++ = (unsigned char)cmap[lookup[col[0]][col[1]]].b;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].r;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].g;
+ *ptr++ = (unsigned char)cmap[lookup[(int)col[0]][(int)col[1]]].b;
}
}
}
return TRUE;
};
-void wxTreeCtrl::SelectItem(wxGenericTreeItem *item)
+void wxTreeCtrl::SelectItem(wxGenericTreeItem *item, bool bDoEvents )
{
if (m_current != item)
{
m_current->SetHilight( TRUE );
RefreshLine( m_current );
- m_current->SendSelected( this );
+ if (bDoEvents) m_current->SendSelected( this );
}
}
#include <../iodbc/hstmt.h>
#include <../iodbc/itrace.h>
+#include <strings.h>
+#include <stdio.h>
extern char* _iodbcdm_getkeyvalbydsn();
extern char* _iodbcdm_getkeyvalinstr();
GENV_t FAR* genv;
HPROC hproc;
RETCODE retcode = SQL_SUCCESS;
- int sqlstat = en_00000;
+/* int sqlstat = en_00000; */
if( hdbc == SQL_NULL_HDBC )
{
SWORD FAR* pcbConnStrOut )
{
DBC_t FAR* pdbc = (DBC_t FAR*)hdbc;
- HDLL hdll;
+/* HDLL hdll; */
char FAR* drv;
char drvbuf[1024];
char FAR* dsn;
char dsnbuf[SQL_MAX_DSN_LENGTH + 1];
- UCHAR cnstr2drv[1024];
+/* UCHAR cnstr2drv[1024]; */
- HPROC hproc, dialproc;
+ HPROC hproc /*, dialproc*/ ;
- int sqlstat = en_00000;
+/* int sqlstat = en_00000; */
RETCODE retcode = SQL_SUCCESS;
RETCODE setopterr = SQL_SUCCESS;
{
DBC_t FAR* pdbc = (DBC_t FAR*)hdbc;
ENV_t FAR* penv;
- HDLL hdll;
+/* HDLL hdll; */
HPROC FAR* phproc;
if( idx <= 0 || idx > SQL_EXT_API_LAST )
#include <../iodbc/itrace.h>
#include "../iodbc/herr.ci"
+#include <strings.h>
+#include <stdio.h>
static HERR _iodbcdm_popsqlerr( HERR herr )
{
#include <../iodbc/itrace.h>
+#include <strings.h>
+#include <stdio.h>
+
RETCODE SQL_API SQLDataSources(
HENV henv,
UWORD fDir,
HPROC hproc;
RETCODE retcode = SQL_SUCCESS;
- DWORD dword;
+ DWORD dword = 0;
int size = 0, len = 0;
char buf[16] = { '\0' };
#include <../iodbc/isqlext.h>
#include <stdio.h>
+#include <strings.h>
static int
upper_strneq(
char* s2,
int n )
{
- int i;
- char c1, c2;
+ int i;
+ char c1 = 0, c2 = 0;
for(i=1;i<n;i++)
{
static char*
getinitfile(char* buf, int size)
{
- int i, j;
+ int /* i, */ j;
char* ptr;
j = STRLEN("/odbc.ini") + 1;