On Tue, 20 Mar 2001, Shankar Agarwal wrote:
# Date: Tue, 20 Mar 2001 10:54:35 -0800
# From: Shankar Agarwal <[EMAIL PROTECTED]>
# To: [EMAIL PROTECTED]
# Cc: bsd hackers <[EMAIL PROTECTED]>
# Subject: Question regarding the array of size 0.
#
# Hi All,
# I am getting the following array while trying to compile uipc_syscalls.c
# file.
# /vobs/atm/netbsd/sys/sys/syscallargs.h", line 30: zero or negative
# subscript
# This is because the code in syscallargs.h is defining an array of size
# 0.
# The code that is creating problem is
# #define syscallarg(x) \
# union { \
# register_t pad; \
# struct { x datum; } le; \
# struct { \
# int8_t pad[ (sizeof (register_t) < sizeof (x)) \
# ? 0 \
# : sizeof (register_t) - sizeof (x)]; \
# x datum; \
# } be; \
# }
#
# struct sys_exit_args {
# syscallarg(int) rval;
# };
I thought ?: were evaluated at run-time, not compile-time?
--*greywolf;
--
*BSD: The power to Connect
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
- Re: Question regarding the ar... Benny Prijono
- Re: Question regarding the ar... John Gregor
- Re: Question regarding the ar... Greg A. Woods
- Re: Question regarding the ar... Drew Eckhardt
- Re: Question regarding the ar... Frederick Bruckman
- Re: Question regarding the ar... Peter Seebach
- Re: Question regarding the array ... Peter Seebach
- Re: Question regarding the array of size 0. Johan Danielsson
- Question regarding ifconfig. Shankar Agarwal
- Re: Question regarding ifconfig. Bill Studenmund
- Re: Question regarding the array of size 0. Greywolf
- Re: Question regarding the array of size 0. Farooq Mela
- Re: Question regarding the array of size 0. Andrew Brown
- Re: Question regarding the array of size 0. der Mouse
- Re: Question regarding the array of size 0. Richard Earnshaw
- Re: Question regarding the array of size 0. Peter Seebach
- Re: Question regarding the array of size 0... Richard Earnshaw
- Re: Question regarding the array of size 0. Chuck McManis

