Mail Archives: geda-user/2011/10/25/10:40:44
On Tue, Oct 25, 2011 at 02:48:46PM +0200, Gabriel Paubert wrote:
> On Tue, Oct 25, 2011 at 08:24:46AM -0400, DJ Delorie wrote:
> >
> > Might be related to the new "snap to line intersections" feature.
>
> Oops, I was wrong on the date. I had pulled early September but not
> compiled on my laptop, so make it May 19th (and I don't know how
> to obtain the git commit id).
>
> By the way, when loading on my laptop a file recently created file on my
> desktop, I get a syntax error on line 8. Which reads:
>
> Grid[0.1mm 0.0000 0.0000 1]
>
> I believed backward compatibilty went further back in time...
Hmm, now I see that the parser was modified by Andrew around June 4th
to allow units. Don't ask me to understand bison/flex, I've always
had a gigantic impedance mismatch with that stuff. However git commit
750a1c57d85dbb82d704f9443055a783b5dca8eb includes the comment
Bumped PCB_FILE_VERSION up to 20110703.
(slight typo: it should be 20110603).
I see that Andrew modified file.h to update this value, unfortunately
it is no more used in file.c; the following patch fixes it for now.
Gabriel
diff --git a/src/file.c b/src/file.c
index 99ba274..c4620c9 100644
--- a/src/file.c
+++ b/src/file.c
@@ -157,22 +157,10 @@ static char *pcb_basename (char *p);
*/
-/* Hole[] in Polygon. */
-#define PCB_FILE_VERSION_HOLES 20100606
-/* First version ever saved. */
-#define PCB_FILE_VERSION_BASELINE 20091103
-
int
PCBFileVersionNeeded (void)
{
- ALLPOLYGON_LOOP (PCB->Data);
- {
- if (polygon->HoleIndexN > 0)
- return PCB_FILE_VERSION_HOLES;
- }
- ENDALL_LOOP;
-
- return PCB_FILE_VERSION_BASELINE;
+ return PCB_FILE_VERSION;
}
/* --------------------------------------------------------------------------- */
- Raw text -