9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] PCC - #if
@ 2007-05-04 20:23 lucio
  2007-05-04 21:17 ` Russ Cox
  0 siblings, 1 reply; 6+ messages in thread
From: lucio @ 2007-05-04 20:23 UTC (permalink / raw)
  To: 9fans

I have the following diff:

	term% diff ../../../openldap-2.3.32/include/ac/time.h ../../include/ac
	20c20
	< #if defined(TIME_WITH_SYS_TIME)
	---
	> #if TIME_WITH_SYS_TIME
	23c23
	< #elif defined(HAVE_SYS_TIME_H)
	---
	> #elif HAVE_SYS_TIME_H

and I'm curious whether it's a slip in the OpenLDAP source or in PCC
that the one works and the other doesn't.  I do not have an ANSI
standard to check against, but my gut feel is that OpenLDAP is
stretching a limit.  If not, then PCC ought to be corrected, it
reports (the "elsif" is certainly mistaken):

	cpp: ../../include/ac/time.h:20 csn.c:47 Syntax error in #if/#elsif

++L



^ permalink raw reply	[flat|nested] 6+ messages in thread
* [9fans] PCC - #if
@ 2007-05-04 20:32 lucio
  0 siblings, 0 replies; 6+ messages in thread
From: lucio @ 2007-05-04 20:32 UTC (permalink / raw)
  To: 9fans

I have the following diff:

	term% diff ../../../openldap-2.3.32/include/ac/time.h ../../include/ac
	20c20
	< #if defined(TIME_WITH_SYS_TIME)
	---
	> #if TIME_WITH_SYS_TIME
	23c23
	< #elif defined(HAVE_SYS_TIME_H)
	---
	> #elif HAVE_SYS_TIME_H

and I'm curious whether it's a slip in the OpenLDAP source or in PCC
that the one works and the other doesn't.  I do not have an ANSI
standard to check against, but my gut feel is that OpenLDAP is
stretching a limit.  If not, then PCC ought to be corrected, it
reports (the "elsif" is certainly mistaken):

	cpp: ../../include/ac/time.h:20 csn.c:47 Syntax error in #if/#elsif

++L



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-04 21:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-04 20:23 [9fans] PCC - #if lucio
2007-05-04 21:17 ` Russ Cox
2007-05-04 21:35   ` lucio
2007-05-04 21:56     ` geoff
2007-05-04 21:57     ` Russ Cox
2007-05-04 20:32 lucio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).