xref: /openbsd-src/usr.bin/make/location.h (revision f4f0b16ad70c51f05e7dcfb1130e50e3ee2651b7)
1*f4f0b16aSespie /*	$OpenBSD: location.h,v 1.1 2012/03/22 13:47:12 espie Exp $ */
2*f4f0b16aSespie 
3*f4f0b16aSespie /*
4*f4f0b16aSespie  * Copyright (c) 2012 Marc Espie.
5*f4f0b16aSespie  *
6*f4f0b16aSespie  * Redistribution and use in source and binary forms, with or without
7*f4f0b16aSespie  * modification, are permitted provided that the following conditions
8*f4f0b16aSespie  * are met:
9*f4f0b16aSespie  * 1. Redistributions of source code must retain the above copyright
10*f4f0b16aSespie  *    notice, this list of conditions and the following disclaimer.
11*f4f0b16aSespie  * 2. Redistributions in binary form must reproduce the above copyright
12*f4f0b16aSespie  *    notice, this list of conditions and the following disclaimer in the
13*f4f0b16aSespie  *    documentation and/or other materials provided with the distribution.
14*f4f0b16aSespie  *
15*f4f0b16aSespie  * THIS SOFTWARE IS PROVIDED BY THE OPENBSD PROJECT AND CONTRIBUTORS
16*f4f0b16aSespie  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17*f4f0b16aSespie  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18*f4f0b16aSespie  * A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OPENBSD
19*f4f0b16aSespie  * PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20*f4f0b16aSespie  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21*f4f0b16aSespie  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22*f4f0b16aSespie  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23*f4f0b16aSespie  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24*f4f0b16aSespie  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25*f4f0b16aSespie  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*f4f0b16aSespie  */
27*f4f0b16aSespie 
28*f4f0b16aSespie struct Location_ {
29*f4f0b16aSespie 	const char *fname; 	/* Name of file */
30*f4f0b16aSespie 	unsigned long lineno; 	/* Line number */
31*f4f0b16aSespie };
32*f4f0b16aSespie 
33*f4f0b16aSespie #define LOCATION_TYPE
34