|
Karsten Hopp |
fd27d2 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
fd27d2 |
Subject: Patch 7.0.015
|
|
Karsten Hopp |
fd27d2 |
Fcc: outbox
|
|
Karsten Hopp |
fd27d2 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
fd27d2 |
Mime-Version: 1.0
|
|
Karsten Hopp |
fd27d2 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
fd27d2 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
fd27d2 |
------------
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
Patch 7.0.015
|
|
Karsten Hopp |
fd27d2 |
Problem: Athena: compilation problems with modern compiler.
|
|
Karsten Hopp |
fd27d2 |
Solution: Avoid type casts for lvalue. (Alexey Froloff)
|
|
Karsten Hopp |
fd27d2 |
Files: src/gui_at_fs.c
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
*** ../vim-7.0.014/src/gui_at_fs.c Wed May 10 15:22:49 2006
|
|
Karsten Hopp |
fd27d2 |
--- src/gui_at_fs.c Fri May 12 11:26:24 2006
|
|
Karsten Hopp |
fd27d2 |
***************
|
|
Karsten Hopp |
fd27d2 |
*** 1861,1887 ****
|
|
Karsten Hopp |
fd27d2 |
XtPointer pnew;
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
SFDir *dir;
|
|
Karsten Hopp |
fd27d2 |
! int nw;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
dir = &(SFdirs[SFdirPtr + (int)(long)n]);
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
#ifdef FEAT_GUI_NEXTAW
|
|
Karsten Hopp |
fd27d2 |
! if ((int)(long)pnew < 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if ((int)(long)pnew > -SFvScrollHeight)
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = -1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = -SFlistSize;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
! else if ((int)(long)pnew > 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if ((int)(long)pnew < SFvScrollHeight)
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = 1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = SFlistSize;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
#endif
|
|
Karsten Hopp |
fd27d2 |
! nw = dir->vOrigin + (int)(long)pnew;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
if (nw > dir->nEntries - SFlistSize)
|
|
Karsten Hopp |
fd27d2 |
nw = dir->nEntries - SFlistSize;
|
|
Karsten Hopp |
fd27d2 |
--- 1861,1887 ----
|
|
Karsten Hopp |
fd27d2 |
XtPointer pnew;
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
SFDir *dir;
|
|
Karsten Hopp |
fd27d2 |
! int nw = (int)(long)pnew;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
dir = &(SFdirs[SFdirPtr + (int)(long)n]);
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
#ifdef FEAT_GUI_NEXTAW
|
|
Karsten Hopp |
fd27d2 |
! if (nw < 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if (nw > -SFvScrollHeight)
|
|
Karsten Hopp |
fd27d2 |
! nw = -1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! nw = -SFlistSize;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
! else if (nw > 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if (nw < SFvScrollHeight)
|
|
Karsten Hopp |
fd27d2 |
! nw = 1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! nw = SFlistSize;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
#endif
|
|
Karsten Hopp |
fd27d2 |
! nw += dir->vOrigin;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
if (nw > dir->nEntries - SFlistSize)
|
|
Karsten Hopp |
fd27d2 |
nw = dir->nEntries - SFlistSize;
|
|
Karsten Hopp |
fd27d2 |
***************
|
|
Karsten Hopp |
fd27d2 |
*** 1941,1967 ****
|
|
Karsten Hopp |
fd27d2 |
XtPointer pnew;
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
SFDir *dir;
|
|
Karsten Hopp |
fd27d2 |
! int nw;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
dir = &(SFdirs[SFdirPtr + (int)(long)n]);
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
#ifdef FEAT_GUI_NEXTAW
|
|
Karsten Hopp |
fd27d2 |
! if ((int)(long)pnew < 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if ((int)(long)pnew > -SFhScrollWidth)
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = -1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = -SFcharsPerEntry;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
! else if ((int)(long)pnew > 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if ((int)(long)pnew < SFhScrollWidth)
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = 1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = SFcharsPerEntry;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
#endif
|
|
Karsten Hopp |
fd27d2 |
! nw = dir->hOrigin + (int)(long)pnew;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
if (nw > dir->nChars - SFcharsPerEntry)
|
|
Karsten Hopp |
fd27d2 |
nw = dir->nChars - SFcharsPerEntry;
|
|
Karsten Hopp |
fd27d2 |
--- 1941,1967 ----
|
|
Karsten Hopp |
fd27d2 |
XtPointer pnew;
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
SFDir *dir;
|
|
Karsten Hopp |
fd27d2 |
! int nw = (int)(long)pnew;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
dir = &(SFdirs[SFdirPtr + (int)(long)n]);
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
#ifdef FEAT_GUI_NEXTAW
|
|
Karsten Hopp |
fd27d2 |
! if (nw < 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if (nw > -SFhScrollWidth)
|
|
Karsten Hopp |
fd27d2 |
! nw = -1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! nw = -SFcharsPerEntry;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
! else if (nw > 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if (nw < SFhScrollWidth)
|
|
Karsten Hopp |
fd27d2 |
! nw = 1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! nw = SFcharsPerEntry;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
#endif
|
|
Karsten Hopp |
fd27d2 |
! nw += dir->hOrigin;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
if (nw > dir->nChars - SFcharsPerEntry)
|
|
Karsten Hopp |
fd27d2 |
nw = dir->nChars - SFcharsPerEntry;
|
|
Karsten Hopp |
fd27d2 |
***************
|
|
Karsten Hopp |
fd27d2 |
*** 2038,2063 ****
|
|
Karsten Hopp |
fd27d2 |
XtPointer client_data;
|
|
Karsten Hopp |
fd27d2 |
XtPointer pnew;
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! int nw;
|
|
Karsten Hopp |
fd27d2 |
float f;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
#ifdef FEAT_GUI_NEXTAW
|
|
Karsten Hopp |
fd27d2 |
! if ((int)(long)pnew < 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if ((int)(long)pnew > -SFpathScrollWidth)
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = -1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = -3;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
! else if ((int)(long)pnew > 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if ((int)(long)pnew < SFpathScrollWidth)
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = 1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! (int)(long)pnew = 3;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
#endif
|
|
Karsten Hopp |
fd27d2 |
! nw = SFdirPtr + (int)(long)pnew;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
if (nw > SFdirEnd - 3)
|
|
Karsten Hopp |
fd27d2 |
nw = SFdirEnd - 3;
|
|
Karsten Hopp |
fd27d2 |
--- 2038,2063 ----
|
|
Karsten Hopp |
fd27d2 |
XtPointer client_data;
|
|
Karsten Hopp |
fd27d2 |
XtPointer pnew;
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! int nw = (int)(long)pnew;
|
|
Karsten Hopp |
fd27d2 |
float f;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
#ifdef FEAT_GUI_NEXTAW
|
|
Karsten Hopp |
fd27d2 |
! if (nw < 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if (nw > -SFpathScrollWidth)
|
|
Karsten Hopp |
fd27d2 |
! nw = -1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! nw = -3;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
! else if (nw > 0)
|
|
Karsten Hopp |
fd27d2 |
{
|
|
Karsten Hopp |
fd27d2 |
! if (nw < SFpathScrollWidth)
|
|
Karsten Hopp |
fd27d2 |
! nw = 1;
|
|
Karsten Hopp |
fd27d2 |
else
|
|
Karsten Hopp |
fd27d2 |
! nw = 3;
|
|
Karsten Hopp |
fd27d2 |
}
|
|
Karsten Hopp |
fd27d2 |
#endif
|
|
Karsten Hopp |
fd27d2 |
! nw += SFdirPtr;
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
if (nw > SFdirEnd - 3)
|
|
Karsten Hopp |
fd27d2 |
nw = SFdirEnd - 3;
|
|
Karsten Hopp |
fd27d2 |
*** ../vim-7.0.014/src/version.c Fri May 12 19:24:33 2006
|
|
Karsten Hopp |
fd27d2 |
--- src/version.c Fri May 12 19:25:57 2006
|
|
Karsten Hopp |
fd27d2 |
***************
|
|
Karsten Hopp |
fd27d2 |
*** 668,669 ****
|
|
Karsten Hopp |
fd27d2 |
--- 668,671 ----
|
|
Karsten Hopp |
fd27d2 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
fd27d2 |
+ /**/
|
|
Karsten Hopp |
fd27d2 |
+ 15,
|
|
Karsten Hopp |
fd27d2 |
/**/
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
--
|
|
Karsten Hopp |
fd27d2 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
fd27d2 |
127. You bring your laptop and cellular phone to church.
|
|
Karsten Hopp |
fd27d2 |
|
|
Karsten Hopp |
fd27d2 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
fd27d2 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
fd27d2 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
fd27d2 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|