[BACK]Return to mandoc.h CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mandoc.h between version 1.265 and 1.270

version 1.265, 2020/01/19 16:44:50 version 1.270, 2021/06/02 18:28:19
Line 1 
Line 1 
 /*      $Id$ */  /* $Id$ */
 /*  /*
  * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>  
  * Copyright (c) 2012-2020 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2012-2020 Ingo Schwarze <schwarze@openbsd.org>
    * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
  *   *
  * 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
Line 16 
Line 16 
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  *   *
  * Error handling, escape sequence, and character utilities.   * Error handling, escape sequence, and character utilities.
    * Can be used by all code in the mandoc package.
  */   */
   
 #define ASCII_NBRSP      31  /* non-breaking space */  #define ASCII_NBRSP      31  /* non-breaking space */
Line 53  enum mandocerr {
Line 54  enum mandocerr {
         MANDOCERR_ARCH_BAD,  /* unknown architecture: Dt ... arch */          MANDOCERR_ARCH_BAD,  /* unknown architecture: Dt ... arch */
         MANDOCERR_OS_ARG,  /* operating system explicitly specified: Os ... */          MANDOCERR_OS_ARG,  /* operating system explicitly specified: Os ... */
         MANDOCERR_RCS_MISSING, /* RCS id missing */          MANDOCERR_RCS_MISSING, /* RCS id missing */
         MANDOCERR_XR_BAD,  /* referenced manual not found: Xr name sec */  
   
         MANDOCERR_STYLE, /* ===== start of style suggestions ===== */          MANDOCERR_STYLE, /* ===== start of style suggestions ===== */
   
Line 67  enum mandocerr {
Line 67  enum mandocerr {
         MANDOCERR_BX, /* consider using OS macro: macro */          MANDOCERR_BX, /* consider using OS macro: macro */
         MANDOCERR_ER_ORDER, /* errnos out of order: Er ... */          MANDOCERR_ER_ORDER, /* errnos out of order: Er ... */
         MANDOCERR_ER_REP, /* duplicate errno: Er ... */          MANDOCERR_ER_REP, /* duplicate errno: Er ... */
           MANDOCERR_XR_BAD,  /* referenced manual not found: Xr name sec */
         MANDOCERR_DELIM, /* trailing delimiter: macro ... */          MANDOCERR_DELIM, /* trailing delimiter: macro ... */
         MANDOCERR_DELIM_NB, /* no blank before trailing delimiter: macro ... */          MANDOCERR_DELIM_NB, /* no blank before trailing delimiter: macro ... */
         MANDOCERR_FI_SKIP, /* fill mode already enabled, skipping: fi */          MANDOCERR_FI_SKIP, /* fill mode already enabled, skipping: fi */
Line 83  enum mandocerr {
Line 84  enum mandocerr {
         MANDOCERR_TH_NOTITLE, /* missing manual title, using "": [macro] */          MANDOCERR_TH_NOTITLE, /* missing manual title, using "": [macro] */
         MANDOCERR_MSEC_MISSING, /* missing manual section, using "": macro */          MANDOCERR_MSEC_MISSING, /* missing manual section, using "": macro */
         MANDOCERR_MSEC_BAD, /* unknown manual section: Dt ... section */          MANDOCERR_MSEC_BAD, /* unknown manual section: Dt ... section */
           MANDOCERR_MSEC_FILE, /* filename/section mismatch: ... */
         MANDOCERR_DATE_MISSING, /* missing date, using "": [macro] */          MANDOCERR_DATE_MISSING, /* missing date, using "": [macro] */
         MANDOCERR_DATE_BAD, /* cannot parse date, using it verbatim: date */          MANDOCERR_DATE_BAD, /* cannot parse date, using it verbatim: date */
         MANDOCERR_DATE_FUTURE, /* date in the future, using it anyway: date */          MANDOCERR_DATE_FUTURE, /* date in the future, using it anyway: date */
Line 187  enum mandocerr {
Line 189  enum mandocerr {
         MANDOCERR_TBLLAYOUT_NONE, /* empty tbl layout */          MANDOCERR_TBLLAYOUT_NONE, /* empty tbl layout */
         MANDOCERR_TBLLAYOUT_CHAR, /* invalid character in tbl layout: char */          MANDOCERR_TBLLAYOUT_CHAR, /* invalid character in tbl layout: char */
         MANDOCERR_TBLLAYOUT_PAR, /* unmatched parenthesis in tbl layout */          MANDOCERR_TBLLAYOUT_PAR, /* unmatched parenthesis in tbl layout */
           MANDOCERR_TBLLAYOUT_SPC, /* ignoring excessive spacing in tbl layout */
         MANDOCERR_TBLDATA_NONE, /* tbl without any data cells */          MANDOCERR_TBLDATA_NONE, /* tbl without any data cells */
         MANDOCERR_TBLDATA_SPAN, /* ignoring data in spanned tbl cell: data */          MANDOCERR_TBLDATA_SPAN, /* ignoring data in spanned tbl cell: data */
         MANDOCERR_TBLDATA_EXTRA, /* ignoring extra tbl data cells: data */          MANDOCERR_TBLDATA_EXTRA, /* ignoring extra tbl data cells: data */
Line 223  enum mandocerr {
Line 226  enum mandocerr {
         MANDOCERR_SHIFT, /* excessive shift: ..., but max is ... */          MANDOCERR_SHIFT, /* excessive shift: ..., but max is ... */
         MANDOCERR_SO_PATH, /* NOT IMPLEMENTED: .so with absolute path or ".." */          MANDOCERR_SO_PATH, /* NOT IMPLEMENTED: .so with absolute path or ".." */
         MANDOCERR_SO_FAIL, /* .so request failed */          MANDOCERR_SO_FAIL, /* .so request failed */
           MANDOCERR_TG_SPC, /* skipping tag containing whitespace: tag */
         MANDOCERR_ARG_SKIP, /* skipping all arguments: macro args */          MANDOCERR_ARG_SKIP, /* skipping all arguments: macro args */
         MANDOCERR_ARG_EXCESS, /* skipping excess arguments: macro ... args */          MANDOCERR_ARG_EXCESS, /* skipping excess arguments: macro ... args */
         MANDOCERR_DIVZERO, /* divide by zero */          MANDOCERR_DIVZERO, /* divide by zero */
Line 298  enum mandoc_esc {
Line 302  enum mandoc_esc {
 };  };
   
   
 enum mandoc_esc   mandoc_font(const char *, int sz);  enum mandoc_esc   mandoc_font(const char *, int);
 enum mandoc_esc   mandoc_escape(const char **, const char **, int *);  enum mandoc_esc   mandoc_escape(const char **, const char **, int *);
 void              mandoc_msg_setoutfile(FILE *);  void              mandoc_msg_setoutfile(FILE *);
 const char       *mandoc_msg_getinfilename(void);  const char       *mandoc_msg_getinfilename(void);

Legend:
Removed from v.1.265  
changed lines
  Added in v.1.270

CVSweb