git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: parsecvs tool now creates git repositories

From
Keith Packard <keithp@keithp.com>
Date
Apr 3, 2006, 22:19 UTC
Message-ID
<1144102753.2303.121.camel@neko.keithp.com>
In-Reply-To
<1144083282.2303.102.camel@neko.keithp.com>
On Mon, 2006-04-03 at 09:54 -0700, Keith Packard wrote:
Show 7 quoted lines
> On Mon, 2006-04-03 at 09:25 +0200, Jan-Benedict Glaw wrote:
> 
> > -YFLAGS=-d
> > +YFLAGS=-d -l
> > +LFLAGS=-l
> 
> Works for me too; thanks for the fix.

Well, -l *kinda* works; it places a limit on the maximum token size. And, unlike 'lex', 'flex' places all input into the token buffer, even if handled outside the usual lexer loop. So, my external function that sucked up file contents was losing.

I switched it over to doing one-at-a-time reads from the input file, now the external data function can directly use stdio. This eliminates all calls to 'input' and 'unput' which should make it work for everyone now.

flex -- it's like lex, except less flexible.
-- 
keith.packard@intel.com
Previous: Keith PackardNext: Erik Mouw
Message 9 of 22 in “parsecvs tool now creates git repositories”
  1. Keith PackardApr 2, 2006
  2. Jan-Benedict GlawApr 2, 2006
  3. Jan-Benedict GlawApr 2, 2006
  4. Keith PackardApr 3, 2006
  5. Linus TorvaldsApr 3, 2006
  6. Jan-Benedict GlawApr 3, 2006
  7. Erik MouwApr 3, 2006
  8. Keith PackardApr 3, 2006
  9. Keith PackardApr 3, 2006
  10. Erik MouwApr 3, 2006
  11. Jakub NarebskiApr 3, 2006
  12. Keith PackardApr 3, 2006
  13. Keith PackardApr 3, 2006
  14. Jeff KingApr 3, 2006
  15. Anand KumriaApr 4, 2006
  16. Martin LanghoffApr 3, 2006
  17. Keith PackardApr 4, 2006
  18. Martin LanghoffApr 4, 2006
  19. Keith PackardApr 4, 2006
  20. Martin LanghoffApr 4, 2006
  21. Keith PackardApr 4, 2006
  22. Junio C HamanoApr 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.