version 1.14, 2010/04/07 11:25:38 |
version 1.16, 2010/06/19 20:46:28 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se> |
* Copyright (c) 2009 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 |
|
|
a2roffdeco(enum roffdeco *d, |
a2roffdeco(enum roffdeco *d, |
const char **word, size_t *sz) |
const char **word, size_t *sz) |
{ |
{ |
int j, offs, term, lim; |
int j, term, lim; |
char set; |
char set; |
const char *wp, *sp; |
const char *wp, *sp; |
|
|
*d = DECO_NONE; |
*d = DECO_NONE; |
wp = *word; |
wp = *word; |
offs = 0; |
|
|
|
switch ((set = *wp)) { |
switch ((set = *wp)) { |
case ('\0'): |
case ('\0'): |