version 1.29, 2014/04/20 16:46:05 |
version 1.32, 2015/01/21 00:47:04 |
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
*/ |
#ifdef HAVE_CONFIG_H |
|
#include "config.h" |
#include "config.h" |
#endif |
|
|
|
|
#include <sys/types.h> |
|
|
#include <assert.h> |
#include <assert.h> |
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
Line 55 tbl_read(struct tbl_node *tbl, int ln, const char *p, |
|
Line 55 tbl_read(struct tbl_node *tbl, int ln, const char *p, |
|
|
|
switch (tbl->part) { |
switch (tbl->part) { |
case TBL_PART_OPTS: |
case TBL_PART_OPTS: |
return(tbl_option(tbl, ln, p) ? ROFF_IGN : ROFF_ERR); |
tbl_option(tbl, ln, p); |
|
return(ROFF_IGN); |
case TBL_PART_LAYOUT: |
case TBL_PART_LAYOUT: |
return(tbl_layout(tbl, ln, p) ? ROFF_IGN : ROFF_ERR); |
tbl_layout(tbl, ln, p); |
|
return(ROFF_IGN); |
case TBL_PART_CDATA: |
case TBL_PART_CDATA: |
return(tbl_cdata(tbl, ln, p) ? ROFF_TBL : ROFF_IGN); |
return(tbl_cdata(tbl, ln, p) ? ROFF_TBL : ROFF_IGN); |
default: |
default: |
break; |
break; |
} |
} |
|
|
/* |
tbl_data(tbl, ln, p); |
* This only returns zero if the line is empty, so we ignore it |
return(ROFF_TBL); |
* and continue on. |
|
*/ |
|
return(tbl_data(tbl, ln, p) ? ROFF_TBL : ROFF_IGN); |
|
} |
} |
|
|
struct tbl_node * |
struct tbl_node * |