Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/mdocml/dist rename data() -> parse_data() to ap...
details: https://anonhg.NetBSD.org/src/rev/d1e97041f633
branches: trunk
changeset: 770665:d1e97041f633
user: christos <christos%NetBSD.org@localhost>
date: Fri Oct 28 14:00:20 2011 +0000
description:
rename data() -> parse_data() to appease the powerpc64 toolchain:
{standard input}: Assembler messages:
{standard input}:105: Error: symbol `.data' is already defined
diffstat:
external/bsd/mdocml/dist/tbl_data.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 4af0a81d5706 -r d1e97041f633 external/bsd/mdocml/dist/tbl_data.c
--- a/external/bsd/mdocml/dist/tbl_data.c Fri Oct 28 13:53:06 2011 +0000
+++ b/external/bsd/mdocml/dist/tbl_data.c Fri Oct 28 14:00:20 2011 +0000
@@ -29,13 +29,13 @@
#include "libmandoc.h"
#include "libroff.h"
-static int data(struct tbl_node *, struct tbl_span *,
+static int parse_data(struct tbl_node *, struct tbl_span *,
int, const char *, int *);
static struct tbl_span *newspan(struct tbl_node *, int,
struct tbl_row *);
static int
-data(struct tbl_node *tbl, struct tbl_span *dp,
+parse_data(struct tbl_node *tbl, struct tbl_span *dp,
int ln, const char *p, int *pos)
{
struct tbl_dat *dat;
@@ -154,7 +154,7 @@
if (p[pos] == tbl->opts.tab) {
tbl->part = TBL_PART_DATA;
pos++;
- return(data(tbl, tbl->last_span, ln, p, &pos));
+ return(parse_data(tbl, tbl->last_span, ln, p, &pos));
} else if ('\0' == p[pos]) {
tbl->part = TBL_PART_DATA;
return(1);
@@ -269,7 +269,7 @@
/* This returns 0 when TBL_PART_CDATA is entered. */
while ('\0' != p[pos])
- if ( ! data(tbl, dp, ln, p, &pos))
+ if ( ! parse_data(tbl, dp, ln, p, &pos))
return(0);
return(1);
Home |
Main Index |
Thread Index |
Old Index