[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compile error in current CVS, src/server.c:5500
From: |
Derek Robert Price |
Subject: |
Re: Compile error in current CVS, src/server.c:5500 |
Date: |
Mon, 21 Jul 2003 16:23:18 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 |
Mark D. Baushke wrote:
Actually, C89 DOES specify that two string-literal tokens that are
adjacent they become one string in the Semantics clause of the secion.
(Sorry, I was being a bit lazy in not including the descripton or the
semantics in my last message... I'll still be lazy and not include the
description from the C89 spec which I only have in hardcopy -- any typos
are mine :-).
Semantics
In translation phase 6, the multibyte character sequences specified
by any sequence of adjacent character string literal tokens, or
adjacent wide string literal tokens, are concatenated with a single
multibyte character sequence. If a character string literal token is
adjacent to a wide string literal token, the behavior is undefined.
Ah, good. That's what I wanted to know. What do you say to adopting
this style as a CVS standard:
function( "first line\n"
"second line\n"
"third line\n"
...
with the option of breaking lines when it feels appropriate. The syntax
I'm trying to avoid, again, is:
function( "first line\n\
second line\n\
third line"
I'll change HACKING if there is a consensus.
If we want to move to C89 support everywhere, then
char text[] = "Hello " "world!\n";
is equivalent to
char text[] = "Hello world!\n";
and will have a \0 byte after the \n in both cases.
I believe the consensus was to follow GNULIB to C89 support, and GNULIB
recently dropped K&R in favor of C89.
Incidentally, are there any other headers we check for in the call to
AC_CHECK_HEADERS in configure.in that we can assume in C89? stdbool.h,
stddef.h, limits.h, float.h, and stdarg.h were already mentioned in the
GNULIB forum.
Derek
--
*8^)
Email: derek@ximbiot.com
Get CVS support at <http://ximbiot.com>!
--
I have heard of your paintings too, well enough.
God has given you one face, and you make yourselves
another. You jig and amble, and you lisp. You nick-
name God's creatures and make your wantonness your
ignorance. Go to, I'll no more on't. It hath made me
mad. I say we will have no more marriage. Those that
are married already - all but one - shall live. The rest
shall keep as they are. To a nunnery, go.
- Hamlet, Act III, Scene 1, Lines 143-150
- Compile error in current CVS, src/server.c:5500, Pavel Roskin, 2003/07/20
- Re: Compile error in current CVS, src/server.c:5500, Mark D. Baushke, 2003/07/20
- Re: Compile error in current CVS, src/server.c:5500, Derek Robert Price, 2003/07/21
- Re: Compile error in current CVS, src/server.c:5500, Mark D. Baushke, 2003/07/21
- Re: Compile error in current CVS, src/server.c:5500, Derek Robert Price, 2003/07/21
- Re: Compile error in current CVS, src/server.c:5500, Mark D. Baushke, 2003/07/21
- Re: Compile error in current CVS, src/server.c:5500,
Derek Robert Price <=
- Re: Compile error in current CVS, src/server.c:5500, Mark D. Baushke, 2003/07/21
Re: Compile error in current CVS, src/server.c:5500, Brian Murphy, 2003/07/21
Re: Compile error in current CVS, src/server.c:5500, Brian Murphy, 2003/07/21
- Re: Compile error in current CVS, src/server.c:5500, Mark D. Baushke, 2003/07/21
- Re: Compile error in current CVS, src/server.c:5500, Derek Robert Price, 2003/07/21
- Re: Compile error in current CVS, src/server.c:5500, Brian Murphy, 2003/07/21
- Re: Compile error in current CVS, src/server.c:5500, Derek Robert Price, 2003/07/21