dba_read.c (6d38604fc532a3fc060788e3ce40464b46047eaf) dba_read.c (c1c95add8c80843ba15d784f95c361d795b1f593)
1/* $Id: dba_read.c,v 1.5 2020/06/22 19:20:40 schwarze Exp $ */
1/* $Id: dba_read.c,v 1.6 2023/04/28 19:11:03 schwarze Exp $ */
2/*
3 * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
17 * Function to read the mandoc database from disk into RAM,
18 * such that data can be added or removed.
19 * The interface is defined in "dba.h".
2/*
3 * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
17 * Function to read the mandoc database from disk into RAM,
18 * such that data can be added or removed.
19 * The interface is defined in "dba.h".
20 * This file is seperate from dba.c because this also uses "dbm.h".
20 * This file is separate from dba.c because this also uses "dbm.h".
21 */
22#include "config.h"
23
24#include <regex.h>
25#include <stdint.h>
26#include <stdlib.h>
27#include <stdio.h>
28#include <string.h>

--- 46 unchanged lines hidden ---
21 */
22#include "config.h"
23
24#include <regex.h>
25#include <stdint.h>
26#include <stdlib.h>
27#include <stdio.h>
28#include <string.h>

--- 46 unchanged lines hidden ---