From owner-cvs-CVSROOT Sun Sep 7 16:30:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA17520 for cvs-CVSROOT-outgoing; Sun, 7 Sep 1997 16:30:14 -0700 (PDT) Received: (from jmb@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA17328; Sun, 7 Sep 1997 16:27:59 -0700 (PDT) From: "Jonathan M. Bresler" Message-Id: <199709072327.QAA17328@hub.freebsd.org> Subject: Re: machine/up.h To: smp@csn.net (Steve Passe) Date: Sun, 7 Sep 1997 16:27:58 -0700 (PDT) Cc: smp@freebsd.org, cvs-committers@freebsd.org, cvs-all@freebsd.org, cvs-CVSROOT@freebsd.org In-Reply-To: <199709072037.OAA27121@Ilsa.StevesCafe.com> from "Steve Passe" at Sep 7, 97 02:37:40 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-cvs-cvsroot@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Steve Passe wrote: > > Hi, > > I propose that we create an alternate file to smp.h named up.h. > > code could then look like: > > #ifdef SMP > #include > #else > #include > #endif > > I could then move stuff like: > > #ifndef SMP > #define THIS_LOCK /* nop this out for UP */ > #define THAT_FEATURE /* nop this out for UP */ > #endif > > from individual files and gather them all up into up.h This should cause less > disturbance to the source tree than the current methods. > alternative: replace smp.h and up.h with xxx.h all files include xxx.h in place of smp.h or up.h in xxx.h have a single conditional #ifndef SMP #define "up stuff" #else #define "smp stuff" #endif SMP is defined or not by /usr/sbin/config this concentrates all the conditionals into a single place. the source files only have one include file to deal with. just my two cents. jmb ps replace xxx.h with something reasonable....