From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Bison error handling
Date: Wed, 02 Nov 2005 20:22:28 +0100 [thread overview]
Message-ID: <873bmehn2j.fsf@student.han.nl> (raw)
In-Reply-To: <87acgmhpp1.fsf@student.han.nl> (Marco Gerards's message of "Wed, 02 Nov 2005 19:25:46 +0100")
Marco Gerards <metgerards@student.han.nl> writes:
> The main problem is in case of a syntax error. In that case all of
> the state should be released (free all memory structures). But I have
> no idea how to do that; yyparse just returns an error. I need a way
> to make bison return a valid structure so I can check if parsing
> failed and release all of the memory.
Because the bash people were not able to solve this problem (bash
leaks memory when a syntax error occurs!), I think I should assume I
can't either. So I just use my other solution for now. :-)
--
Marco
prev parent reply other threads:[~2005-11-02 19:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-02 18:25 Bison error handling Marco Gerards
2005-11-02 19:22 ` Marco Gerards [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873bmehn2j.fsf@student.han.nl \
--to=metgerards@student.han.nl \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox