=================================================================== RCS file: /cvs/mandoc/tag.h,v retrieving revision 1.4 retrieving revision 1.10 diff -u -p -r1.4 -r1.10 --- mandoc/tag.h 2015/07/25 14:28:59 1.4 +++ mandoc/tag.h 2020/01/20 10:37:15 1.10 @@ -1,6 +1,6 @@ -/* $Id: tag.h,v 1.4 2015/07/25 14:28:59 schwarze Exp $ */ +/* $Id: tag.h,v 1.10 2020/01/20 10:37:15 schwarze Exp $ */ /* - * Copyright (c) 2015 Ingo Schwarze + * Copyright (c) 2015, 2018, 2019, 2020 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -15,11 +15,29 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -__BEGIN_DECLS +/* + * Tagging priorities. + * Lower numbers indicate higher importance. + */ +#define TAG_MANUAL 1 /* Set with a .Tg macro. */ +#define TAG_STRONG 2 /* Good automatic tagging. */ +#define TAG_WEAK (INT_MAX - 2) /* Dubious automatic tagging. */ +#define TAG_FALLBACK (INT_MAX - 1) /* Tag only used if unique. */ +#define TAG_DELETE (INT_MAX) /* Tag not used at all. */ -char *tag_init(void); + +struct tag_files { + char ofn[20]; + char tfn[20]; + char *tagname; + int ofd; + int tfd; + pid_t tcpgid; + pid_t pager_pid; +}; + + +struct tag_files *tag_init(char *); void tag_put(const char *, int, size_t); void tag_write(void); void tag_unlink(void); - -__END_DECLS