• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Off Topic --- Problems With Modern lex/yacc and Old Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Off Topic --- Problems With Modern lex/yacc and Old Code


  • Subject: Off Topic --- Problems With Modern lex/yacc and Old Code
  • From: Henry McGilton <email@hidden>
  • Date: Tue, 3 Feb 2004 15:03:45 -0800

Please Excuse me for posting this to the Cocoa dev list. I
have waded through various archives including Google groups
and can not find a definitive answer. This might jog somebody's memory.

I have some quite old lex/yacc code that used to be built in
the bad old days using the original UNIX lex and yacc programs.

These days, lex has been replaced by flex, and yacc likely
has been replaced either by Berkeley yacc or by bison.

The old lex code has this line in it:

if (yybgin - yysvec - 1 == 0) { /* witchcraft */

and when this is being compiled, the compiler complains that
yybgin and yysvec are undefined.

I have this funny feeling that I figured out a fix to this
several years ago, but can not remember what the fix was.

So, what should I replace this line with?

Any ideas would gratefully acknowledged.

Best Wishes,
........ Henry

===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
|
===============================+============================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Newbie and NSLayoutManager
  • Next by Date: Re: key value validation problem
  • Previous by thread: Re: Newbie and NSLayoutManager
  • Next by thread: Panther: Regression in NSOpenPanel?
  • Index(es):
    • Date
    • Thread