version 1.20, 2011/05/17 13:11:40 |
version 1.22, 2011/09/18 14:14:15 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2009, 2010, 2011 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 |
|
|
goto mod; |
goto mod; |
case ('f'): |
case ('f'): |
break; |
break; |
|
case ('r'): |
|
/* FALLTHROUGH */ |
case ('b'): |
case ('b'): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case ('i'): |
case ('i'): |
|
|
} |
} |
|
|
switch (tolower((unsigned char)p[(*pos)++])) { |
switch (tolower((unsigned char)p[(*pos)++])) { |
|
case ('3'): |
|
/* FALLTHROUGH */ |
case ('b'): |
case ('b'): |
cp->flags |= TBL_CELL_BOLD; |
cp->flags |= TBL_CELL_BOLD; |
goto mod; |
goto mod; |
|
case ('2'): |
|
/* FALLTHROUGH */ |
case ('i'): |
case ('i'): |
cp->flags |= TBL_CELL_ITALIC; |
cp->flags |= TBL_CELL_ITALIC; |
|
goto mod; |
|
case ('1'): |
|
/* FALLTHROUGH */ |
|
case ('r'): |
goto mod; |
goto mod; |
default: |
default: |
break; |
break; |