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

Diff for /mandoc/Attic/regs.h between version 1.2 and 1.5

version 1.2, 2010/06/26 15:36:37 version 1.5, 2010/07/04 22:04:04
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
    * Copyright (c) 2010 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 24  enum regs {
Line 25  enum regs {
         REG__MAX          REG__MAX
 };  };
   
 struct  regset {  struct  reg {
           int              set; /* whether set or not */
         union {          union {
                 int      i; /* integer value */                  unsigned u; /* unsigned integer */
         } regs[REG__MAX];          } v;
 };  };
   
   /*
    * Registers are non-scoped state.  These can be manipulated directly in
    * libroff or indirectly in libman or libmdoc by macros.  These should
    * be implemented sparingly (we are NOT roffdoc!) and documented fully
    * in roff.7.
    */
   struct  regset {
           struct reg       regs[REG__MAX];
   };
   
   char             *roff_setstr(const char *, const char *);
   char             *roff_getstr(const char *);
   char             *roff_getstrn(const char *, size_t);
   void              roff_freestr(void);
   
 __END_DECLS  __END_DECLS
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.5

CVSweb