GNU bug report logs - #14830
[PATCH] * configure.ac (HAVE_W32): Avoid nested functions

Previous Next

Package: emacs;

Reported by: Peter Rosin <peda <at> lysator.liu.se>

Date: Mon, 8 Jul 2013 22:51:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 14830 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Peter Rosin <peda <at> lysator.liu.se>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 14830 <at> debbugs.gnu.org
Subject: Re: bug#14830: [PATCH] * configure.ac (HAVE_W32): Avoid nested
 functions
Date: Tue, 09 Jul 2013 08:56:13 +0200
Peter Rosin <peda <at> lysator.liu.se> writes:

> My fixed version with AC_LANG_SOURCE will not emit the main() function
> and thus avoids nested functions and instead generates this source (again
> with enhanced whitespace):
>
> #include <windows.h>
> #include <usp10.h>
>
> void
> test(PIMAGE_NT_HEADERS pHeader)
> {
>   PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);
> }

You should instead remove the function.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




This bug report was last modified 12 years and 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.