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 XXX: rename data() to getdata(). Th...



details:   https://anonhg.NetBSD.org/src/rev/d67c47005ad4
branches:  trunk
changeset: 782878:d67c47005ad4
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 24 22:29:09 2012 +0000

description:
XXX: rename data() to getdata(). This is to avoid an assembler botch on the
ppc64 toolchain where function names are prefixed with a period, so "data"
becomes ".data" and ".data" is confused by the assembler with the segment
directive with the same name. Clearly this is a toolchain issue; we should
be able to call functions "text" and "data" but it is simpler to fix the
code rather than the toolchain.

diffstat:

 external/bsd/mdocml/dist/tbl_data.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r aa948b808982 -r d67c47005ad4 external/bsd/mdocml/dist/tbl_data.c
--- a/external/bsd/mdocml/dist/tbl_data.c       Sat Nov 24 21:40:02 2012 +0000
+++ b/external/bsd/mdocml/dist/tbl_data.c       Sat Nov 24 22:29:09 2012 +0000
@@ -29,13 +29,13 @@
 #include "libmandoc.h"
 #include "libroff.h"
 
-static int              data(struct tbl_node *, struct tbl_span *, 
+static int              getdata(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, 
+getdata(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(getdata(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 ( ! getdata(tbl, dp, ln, p, &pos))
                        return(0);
 
        return(1);



Home | Main Index | Thread Index | Old Index