From 32d5cfe8f4f4bd9647d36fc0f609479f02311103 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Thu, 3 May 2001 13:41:28 +0000 Subject: Synch with my current work. Numerous changes: - generate can build several tables - style cleanup - statistics code - use variable names throughout (struct Name) - recursive variables everywhere - faster parser (pass buffer along instead of allocating multiple copies) - correct parser. Handles comments everywhere, and ; correctly - more string intervals - simplified dir.c, less recursion. - extended for loops - sinclude() - finished removing extra junk from Lst_* - handles ${@D} and friends in a simpler way - cleaned up and modular VarModifiers handling. - recognizes some gnu Makefile usages and errors out about them. Additionally, some extra functionality is defined by FEATURES. The set of functionalities is currently hardcoded to OpenBSD defaults, but this may include support for some NetBSD extensions, like ODE modifiers. Backed by miod@ and millert@, who finally got sick of my endless patches... --- usr.bin/make/varmodifiers.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'usr.bin/make/varmodifiers.h') diff --git a/usr.bin/make/varmodifiers.h b/usr.bin/make/varmodifiers.h index 3b34269707a..227459ca6e8 100644 --- a/usr.bin/make/varmodifiers.h +++ b/usr.bin/make/varmodifiers.h @@ -1,4 +1,5 @@ -/* $OpenBSD: varmodifiers.h,v 1.1 2000/07/17 23:09:06 espie Exp $ */ +/* $OpenPackages$ */ +/* $OpenBSD: varmodifiers.h,v 1.2 2001/05/03 13:41:15 espie Exp $ */ /* * Copyright (c) 1999 Marc Espie. @@ -28,8 +29,9 @@ */ #ifndef VARMODIFIERS_H #define VARMODIFIERS_H -extern char *VarModifiers_Apply __P((char *, SymTable *, Boolean, - Boolean *, char *, char, size_t *)); -extern char *Var_GetTail __P((char *)); -extern char *Var_GetHead __P((char *)); +extern char *VarModifiers_Apply(char *, const struct Name *, SymTable *, + Boolean, Boolean *, const char *, int, size_t *); +extern char *Var_GetTail(char *); +extern char *Var_GetHead(char *); +extern void VarModifiers_Init(void); #endif -- cgit v1.2.3