From owner-p4-projects@FreeBSD.ORG Fri Jul 7 14:49:27 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0C54B16A5A0; Fri, 7 Jul 2006 14:49:27 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9A4016A58C for ; Fri, 7 Jul 2006 14:49:26 +0000 (UTC) (envelope-from swhitman@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E03443D6B for ; Fri, 7 Jul 2006 14:49:26 +0000 (GMT) (envelope-from swhitman@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k67EnQW5025928 for ; Fri, 7 Jul 2006 14:49:26 GMT (envelope-from swhitman@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k67EnQpY025923 for perforce@freebsd.org; Fri, 7 Jul 2006 14:49:26 GMT (envelope-from swhitman@FreeBSD.org) Date: Fri, 7 Jul 2006 14:49:26 GMT Message-Id: <200607071449.k67EnQpY025923@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to swhitman@FreeBSD.org using -f From: Spencer Whitman To: Perforce Change Reviews Cc: Subject: PERFORCE change 100887 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 14:49:27 -0000 http://perforce.freebsd.org/chv.cgi?CH=100887 Change 100887 by swhitman@swhitman_joethecat on 2006/07/07 14:49:14 Commenting Affected files ... .. //depot/projects/soc2006/swhitman-K_Kernel_Meta-Language/k/cpp.c#8 edit .. //depot/projects/soc2006/swhitman-K_Kernel_Meta-Language/k/file.c#6 edit .. //depot/projects/soc2006/swhitman-K_Kernel_Meta-Language/k/k.c#9 edit Differences ... ==== //depot/projects/soc2006/swhitman-K_Kernel_Meta-Language/k/cpp.c#8 (text+ko) ==== @@ -44,7 +44,12 @@ struct ref *r; }; +struct define { + TAILQ_ENTRY(defines) list; +}; + static TAILQ_HEAD(,iarg) iarg = TAILQ_HEAD_INITIALIZER(iarg); +static TAILQ_HEAD(,defines) defines = TAILQ_HEAD_INITIALIZER(defines); static void cppfile(struct h *h, struct ref *r); static void cpp_expand(struct cppfilestate *cfs, struct ref *r, @@ -148,7 +153,8 @@ /* -------------------------------------------------------------------*/ static void -cpp_expand(struct cppfilestate *cfs, struct ref *rr __unused, const char *s, const char *e) +cpp_expand(struct cppfilestate *cfs, struct ref *rr __unused, const char *s, + const char *e) { assert(s != NULL); @@ -249,6 +255,7 @@ cpp_func *func; } cpp_kw[] = { { "define", 0, cpp_define }, + { "ifdef", 0, NULL }, { "error", 0, cpp_error }, { "include", 0, cpp_include }, { "pragma", 0, cpp_pragma }, ==== //depot/projects/soc2006/swhitman-K_Kernel_Meta-Language/k/file.c#6 (text+ko) ==== ==== //depot/projects/soc2006/swhitman-K_Kernel_Meta-Language/k/k.c#9 (text+ko) ==== @@ -191,7 +191,7 @@ PopSymScope(hf); } } - + return (0); }