From owner-freebsd-hackers Fri Feb 27 08:16:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA11479 for freebsd-hackers-outgoing; Fri, 27 Feb 1998 08:16:32 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from att.com (cagw1.att.com [192.128.52.89]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id IAA11434 for ; Fri, 27 Feb 1998 08:16:16 -0800 (PST) (envelope-from sbabkin@dcn.att.com) From: sbabkin@dcn.att.com Received: by cagw1.att.com; Fri Feb 27 11:09 EST 1998 Received: from dcn71.dcn.att.com (dcn71.dcn.att.com [135.44.192.112]) by caig1.att.att.com (AT&T/GW-1.0) with ESMTP id LAA13627 for ; Fri, 27 Feb 1998 11:16:04 -0500 (EST) Received: by dcn71.dcn.att.com with Internet Mail Service (5.0.1458.49) id ; Fri, 27 Feb 1998 11:18:19 -0500 Message-ID: To: ambrisko@whistle.com, gurney_j@resnet.uoregon.edu Cc: hackers@FreeBSD.ORG Subject: RE: a chicken-egg problem with bootp and nfs_mountroot Date: Fri, 27 Feb 1998 11:18:16 -0500 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1458.49) Content-Type: text/plain Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > ---------- > From: John-Mark Gurney[SMTP:gurney_j@efn.org] > > Doug Ambrisko scribbled this message on Feb 26: > > > > Don't think so for example: > > options "BOOTP_WIRED_TO=fxp0" > > Then in a c-snippet: > > strcmp(string,BOOTP_WIRED_TO) > > Will change into > > strcmp(string,fxp0) > > which will fail to compile want > > strcmp(string,"fxp0") > > so for now I stick in a > > #define BOOTP_WIRED_TO "fxp0" > > in the code. > > > > I need the quotes passed through or made to happen someway. > > hmm... try: > options "BOOTP_WIRED_TO=#fxp0" > > this is gcc specific as far as preprocessors go IIRC... > I guess, it will not help because gcc must allow use of # only in macro definitions. A working method (working with any ANSI C preprocessor) will be like this: options "BOOTP_WIRED_TO=fxp0" #define qw(x) #x strcmp(string,qw(BOOTP_WIRED_TO)); -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message