POV-Ray : Newsgroups : povray.unofficial.patches : MegaPov 0.4, macros trouble : Re: MegaPov 0.4, macros trouble Server Time
2 Sep 2024 18:16:49 EDT (-0400)
  Re: MegaPov 0.4, macros trouble  
From: david sharp
Date: 2 Feb 2000 10:42:32
Message: <38985068@news.povray.org>
In tokenize.c, if I replace Fopen_Ungetc() with the following code,
MegaPov works on MS-DOS style scene files.
This is an inelegant way to go about it, but arf.

/***********************/
#ifdef __GO32__
static void Fopen_Ungetc (DATA_FILE *File, int Ch)
{
  if(Ch=='\n')
          ungetc ('\r', (FILE *) File->Data);
  ungetc (Ch, (FILE *) File->Data);
}
#else
static void Fopen_Ungetc (DATA_FILE *File, int Ch)
{
  ungetc (Ch, (FILE *) File->Data);
}
#endif
/***********************/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.