version 1.12, 2020/06/14 23:40:31 |
version 1.13, 2022/04/14 16:43:44 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2017 Michael Stapelberg <stapelberg@debian.org> |
* Copyright (c) 2017 Michael Stapelberg <stapelberg@debian.org> |
* Copyright (c) 2017, 2019 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2017, 2019, 2021 Ingo Schwarze <schwarze@openbsd.org> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
|
|
#include <unistd.h> |
#include <unistd.h> |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
|
#if DEBUG_MEMORY |
|
#define DEBUG_NODEF 1 |
|
#include "mandoc_dbg.h" |
|
#endif |
#include "roff.h" |
#include "roff.h" |
#include "mdoc.h" |
#include "mdoc.h" |
#include "man.h" |
#include "man.h" |
Line 129 main(int argc, char *argv[]) |
|
Line 133 main(int argc, char *argv[]) |
|
int state, opt; |
int state, opt; |
enum outt outtype; |
enum outt outtype; |
|
|
|
#if DEBUG_MEMORY |
|
mandoc_dbg_init(argc, argv); |
|
#endif |
|
|
defos = NULL; |
defos = NULL; |
outtype = OUTT_ASCII; |
outtype = OUTT_ASCII; |
while ((opt = getopt(argc, argv, "I:T:")) != -1) { |
while ((opt = getopt(argc, argv, "I:T:")) != -1) { |
Line 240 main(int argc, char *argv[]) |
|
Line 248 main(int argc, char *argv[]) |
|
} |
} |
mparse_free(parser); |
mparse_free(parser); |
mchars_free(); |
mchars_free(); |
|
#if DEBUG_MEMORY |
|
mandoc_dbg_finish(); |
|
#endif |
return state == -1 ? 1 : 0; |
return state == -1 ? 1 : 0; |
} |
} |
|
|