all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Karoly.Lorentey@cern.ch (Lőrentey Károly)
Cc: emacs-devel@gnu.org
Subject: Re: Double slashes in config.h
Date: Mon, 21 Mar 2005 18:12:52 +0100	[thread overview]
Message-ID: <lorentey.g.e.devel.87r7i86hyj.elte@walrus.fnord.hu> (raw)
In-Reply-To: <E1DD4jx-0006ZL-NU@fencepost.gnu.org> (Richard Stallman's message of "Sun, 20 Mar 2005 13:01:29 -0500")


[-- Attachment #1.1.1: Type: text/plain, Size: 208 bytes --]

Richard Stallman <rms@gnu.org> writes:
> --ansi may have other consequences, and I don't trust it.

-traditional also works, and is already used for a similar purpose in
configure.in.  How about this patch?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: Type: text/x-patch, Size: 545 bytes --]

--- orig/configure.in
+++ mod/configure.in
@@ -3126,6 +3126,14 @@
 	CPP_NEED_TRADITIONAL=no,
 	CPP_NEED_TRADITIONAL=yes)
 
+## New-fangled C preprocessors consider `//' to start a one-line comment.
+## The -ansi option forces GCC's cpp to ignore this syntax.
+
+AC_EGREP_CPP(yes//yes,
+	[yes//yes],
+	:,
+	CPP_NEED_TRADITIONAL=yes)
+
 AC_OUTPUT(Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
 	man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
 	lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile, [

[-- Attachment #1.1.3: Type: text/plain, Size: 16 bytes --]


-- 
Károly

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  parent reply	other threads:[~2005-03-21 17:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-20  5:43 Double slashes in config.h Lőrentey Károly
2005-03-20 18:01 ` Richard Stallman
2005-03-20 18:30   ` David Kastrup
2005-03-21 17:08     ` Lőrentey Károly
2005-03-21 17:30     ` Richard Stallman
2005-03-21 17:12   ` Lőrentey Károly [this message]
2005-03-22  3:34     ` Richard Stallman

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=lorentey.g.e.devel.87r7i86hyj.elte@walrus.fnord.hu \
    --to=karoly.lorentey@cern.ch \
    --cc=emacs-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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.