Annotation of src/usr.bin/make/parsevar.h, Revision 1.5
1.1 espie 1: #ifndef PARSEVAR_H
2: #define PARSEVAR_H
1.5 ! espie 3: /* $OpenBSD: parsevar.h,v 1.4 2010/07/19 19:30:37 espie Exp $ */
1.1 espie 4: /*
5: * Copyright (c) 2001 Marc Espie.
6: *
7: * Redistribution and use in source and binary forms, with or without
8: * modification, are permitted provided that the following conditions
9: * are met:
10: * 1. Redistributions of source code must retain the above copyright
11: * notice, this list of conditions and the following disclaimer.
12: * 2. Redistributions in binary form must reproduce the above copyright
13: * notice, this list of conditions and the following disclaimer in the
14: * documentation and/or other materials provided with the distribution.
15: *
16: * THIS SOFTWARE IS PROVIDED BY THE OPENBSD PROJECT AND CONTRIBUTORS
17: * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19: * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENBSD
20: * PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27: */
28:
29: /* parsevar
30: * Functions to parse variable assignments
31: */
32:
1.3 espie 33: /* wasvar = Parse_As_Var_Assignment(str);
1.2 espie 34: * Parses variable assignment str.
1.1 espie 35: * Returns false if this is something else. */
1.3 espie 36: extern bool Parse_As_Var_Assignment(const char *);
1.2 espie 37: /* wasvar = Parse_CmdlineVar(str, ctxt);
38: * Parses variable assignment str, given on the command line.
39: * Returns false if this is something else. */
40: extern bool Parse_CmdlineVar(const char *);
1.1 espie 41:
42: #endif