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

Diff for /mandoc/eqn_parse.h between version 1.1 and 1.4

version 1.1, 2018/12/13 03:40:13 version 1.4, 2022/04/13 20:26:19
Line 1 
Line 1 
 /*      $Id$ */  /* $Id$ */
 /*  /*
    * Copyright (c) 2014, 2017, 2018, 2022 Ingo Schwarze <schwarze@openbsd.org>
  * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2014, 2017 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
Line 19 
Line 19 
  * For use in the roff(7) and eqn(7) parsers only.   * For use in the roff(7) and eqn(7) parsers only.
  */   */
   
 struct mparse;  
 struct roff_node;  struct roff_node;
 struct eqn_box;  struct eqn_box;
 struct eqn_def;  struct eqn_def;
   
 struct  eqn_node {  struct  eqn_node {
         struct mparse    *parse;   /* Main parser, for error reporting. */  
         struct roff_node *node;    /* Syntax tree of this equation. */          struct roff_node *node;    /* Syntax tree of this equation. */
         struct eqn_def   *defs;    /* Array of definitions. */          struct eqn_def   *defs;    /* Array of definitions. */
         char             *data;    /* Source code of this equation. */          char             *data;    /* Source code of this equation. */
Line 34  struct eqn_node {
Line 32  struct eqn_node {
         size_t            defsz;   /* Number of definitions. */          size_t            defsz;   /* Number of definitions. */
         size_t            sz;      /* Length of the source code. */          size_t            sz;      /* Length of the source code. */
         size_t            toksz;   /* Length of the current token. */          size_t            toksz;   /* Length of the current token. */
           int               sublen;  /* End of rightmost substitution, so far. */
           int               subcnt;  /* Number of recursive substitutions. */
         int               gsize;   /* Default point size. */          int               gsize;   /* Default point size. */
         int               delim;   /* In-line delimiters enabled. */          int               delim;   /* In-line delimiters enabled. */
         char              odelim;  /* In-line opening delimiter. */          char              odelim;  /* In-line opening delimiter. */
Line 41  struct eqn_node {
Line 41  struct eqn_node {
 };  };
   
   
 struct eqn_node *eqn_alloc(struct mparse *);  struct eqn_node *eqn_alloc(void);
   struct eqn_box  *eqn_box_new(void);
 void             eqn_box_free(struct eqn_box *);  void             eqn_box_free(struct eqn_box *);
 void             eqn_free(struct eqn_node *);  void             eqn_free(struct eqn_node *);
 void             eqn_parse(struct eqn_node *);  void             eqn_parse(struct eqn_node *);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

CVSweb