=================================================================== RCS file: /cvs/mandoc/Attic/regs.h,v retrieving revision 1.3 retrieving revision 1.6 diff -u -p -r1.3 -r1.6 --- mandoc/Attic/regs.h 2010/06/27 16:36:22 1.3 +++ mandoc/Attic/regs.h 2010/07/05 20:10:22 1.6 @@ -1,6 +1,7 @@ -/* $Id: regs.h,v 1.3 2010/06/27 16:36:22 kristaps Exp $ */ +/* $Id: regs.h,v 1.6 2010/07/05 20:10:22 kristaps Exp $ */ /* * Copyright (c) 2010 Kristaps Dzonsons + * Copyright (c) 2010 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 @@ -19,27 +20,10 @@ __BEGIN_DECLS -enum regs { - REG_nS = 0, /* nS */ - REG__MAX -}; - -struct reg { - int set; /* whether set or not */ - union { - unsigned u; /* unsigned integer */ - } 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