Re: DVI forward search on Windows

2011-05-26 Thread Vincent van Ravesteijn
On Thu, May 26, 2011 at 2:45 PM, Richard Heck wrote: > On 05/25/2011 09:21 AM, Enrico Forestieri wrote: > > On Wed, May 25, 2011 at 03:04:01PM +0200, Enrico Forestieri wrote: > >> Then, as time_t is not required to be an integral type, it is better > >> not to play with casts. I am going to comm

Re: DVI forward search on Windows

2011-05-26 Thread Richard Heck
On 05/25/2011 09:21 AM, Enrico Forestieri wrote: > On Wed, May 25, 2011 at 03:04:01PM +0200, Enrico Forestieri wrote: >> Then, as time_t is not required to be an integral type, it is better >> not to play with casts. I am going to commit a simple and safe fix. > I committed the fix at r38835. Pleas

Re: DVI forward search on Windows

2011-05-25 Thread Enrico Forestieri
On Wed, May 25, 2011 at 04:03:17PM +0200, Vincent van Ravesteijn wrote: > > > I could have used "return (unsigned int)-1;" which automatically gets > > converted to either 0x or 0x according to the > > size of an int, but I thought that not everybody would have understood >

Re: DVI forward search on Windows

2011-05-25 Thread Vincent van Ravesteijn
> I could have used "return (unsigned int)-1;" which automatically gets > converted to either 0x or 0x according to the > size of an int, but I thought that not everybody would have understood > it, and so preferred to the long way with a warning (which next time > I should

Re: DVI forward search on Windows

2011-05-25 Thread Enrico Forestieri
On Wed, May 25, 2011 at 03:29:46PM +0200, Kornel wrote: > Am Mittwoch, 25. Mai 2011 schrieb Enrico Forestieri: > > On Wed, May 25, 2011 at 03:08:16PM +0200, Kornel wrote: > > > Am Mittwoch, 25. Mai 2011 schrieb Enrico Forestieri: > > > > int main() > > > > { > > > > > > > > printf("result: %d\

Re: DVI forward search on Windows

2011-05-25 Thread Kornel
Am Mittwoch, 25. Mai 2011 schrieb Enrico Forestieri: > On Wed, May 25, 2011 at 03:08:16PM +0200, Kornel wrote: > > Am Mittwoch, 25. Mai 2011 schrieb Enrico Forestieri: > > > int main() > > > { > > > > > > printf("result: %d\n", afunc()); > > > return 0; > > > > > > } > > > > You explicit

Re: DVI forward search on Windows

2011-05-25 Thread Enrico Forestieri
On Wed, May 25, 2011 at 03:04:01PM +0200, Enrico Forestieri wrote: > > Then, as time_t is not required to be an integral type, it is better > not to play with casts. I am going to commit a simple and safe fix. I committed the fix at r38835. Please, can you check that dvi forward search now works

Re: DVI forward search on Windows

2011-05-25 Thread Enrico Forestieri
On Wed, May 25, 2011 at 03:08:16PM +0200, Kornel wrote: > Am Mittwoch, 25. Mai 2011 schrieb Enrico Forestieri: > > int main() > > { > > printf("result: %d\n", afunc()); > > return 0; > > } > > You explicitly tell here printf() to get singned int. Ok, but it does not change things. Try the

Re: DVI forward search on Windows

2011-05-25 Thread Kornel
Am Mittwoch, 25. Mai 2011 schrieb Enrico Forestieri: > int main() > { > printf("result: %d\n", afunc()); > return 0; > } You explicitly tell here printf() to get singned int. Kornel signature.asc Description: This is a digitally signed message part.

Re: DVI forward search on Windows

2011-05-25 Thread Enrico Forestieri
On Wed, May 25, 2011 at 02:40:03PM +0200, Vincent van Ravesteijn wrote: > > > This is puzzling, because, apart from the unix world where time_t is signed > > for sure (see > > http://en.wikipedia.org/wiki/Unix_time#Representing_the_number) > > I found indirect evidence that it should be signed on

Re: DVI forward search on Windows

2011-05-25 Thread Vincent van Ravesteijn
> This is puzzling, because, apart from the unix world where time_t is signed > for sure (see http://en.wikipedia.org/wiki/Unix_time#Representing_the_number) > I found indirect evidence that it should be signed on Windows, too: > http://support.microsoft.com/kb/149471/en-us > time_t FileName::la

Re: DVI forward search on Windows

2011-05-25 Thread Enrico Forestieri
On Wed, May 25, 2011 at 01:31:16PM +0200, Vincent van Ravesteijn wrote: > On 25-5-2011 12:42, Enrico Forestieri wrote: > > Please, can someone on Windows compiling LyX with MSVC check whether > > forward search works for the dvi format? > > > > For details, see this thread: > > http://thread.gmane

Re: DVI forward search on Windows

2011-05-25 Thread Vincent van Ravesteijn
> lyxerr << (pdfname.lastModified() > dviname.lastModified()); > lyxerr << (int(pdfname.lastModified()) > int(dviname.lastModified())); > and from the Qt documentation: uint QDateTime::toTime_t () const If the date is outside the range 1970-01-01T00:00:00 to 2106-02-07T06:28:14, this func

Re: DVI forward search on Windows

2011-05-25 Thread Vincent van Ravesteijn
On 25-5-2011 12:42, Enrico Forestieri wrote: > Please, can someone on Windows compiling LyX with MSVC check whether > forward search works for the dvi format? > > For details, see this thread: > http://thread.gmane.org/gmane.editors.lyx.general/69958 > Hi Enrico, I added this: lyxerr << "pdf:

DVI forward search on Windows

2011-05-25 Thread Enrico Forestieri
Please, can someone on Windows compiling LyX with MSVC check whether forward search works for the dvi format? For details, see this thread: http://thread.gmane.org/gmane.editors.lyx.general/69958 -- Enrico