* mdocml: Don't shadow global identifiers.
@ 2011-04-07 1:08 joerg
0 siblings, 0 replies; only message in thread
From: joerg @ 2011-04-07 1:08 UTC (permalink / raw)
To: source
Log Message:
-----------
Don't shadow global identifiers.
Modified Files:
--------------
mdocml:
tbl_layout.c
mdoc_argv.c
Revision Data
-------------
Index: tbl_layout.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/tbl_layout.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -Ltbl_layout.c -Ltbl_layout.c -u -p -r1.18 -r1.19
--- tbl_layout.c
+++ tbl_layout.c
@@ -427,19 +427,19 @@ cell_alloc(struct tbl_node *tbl, struct
}
static void
-head_adjust(const struct tbl_cell *cell, struct tbl_head *head)
+head_adjust(const struct tbl_cell *cellp, struct tbl_head *head)
{
- if (TBL_CELL_VERT != cell->pos &&
- TBL_CELL_DVERT != cell->pos) {
+ if (TBL_CELL_VERT != cellp->pos &&
+ TBL_CELL_DVERT != cellp->pos) {
head->pos = TBL_HEAD_DATA;
return;
}
- if (TBL_CELL_VERT == cell->pos)
+ if (TBL_CELL_VERT == cellp->pos)
if (TBL_HEAD_DVERT != head->pos)
head->pos = TBL_HEAD_VERT;
- if (TBL_CELL_DVERT == cell->pos)
+ if (TBL_CELL_DVERT == cellp->pos)
head->pos = TBL_HEAD_DVERT;
}
Index: mdoc_argv.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_argv.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -Lmdoc_argv.c -Lmdoc_argv.c -u -p -r1.73 -r1.74
--- mdoc_argv.c
+++ mdoc_argv.c
@@ -652,40 +652,40 @@ args_checkpunct(struct mdoc *m, const ch
static enum mdocargt
argv_a2arg(enum mdoct tok, const char *p)
{
- const enum mdocargt *args;
+ const enum mdocargt *argsp;
- args = NULL;
+ argsp = NULL;
switch (tok) {
case (MDOC_An):
- args = args_An;
+ argsp = args_An;
break;
case (MDOC_Bd):
- args = args_Bd;
+ argsp = args_Bd;
break;
case (MDOC_Bf):
- args = args_Bf;
+ argsp = args_Bf;
break;
case (MDOC_Bk):
- args = args_Bk;
+ argsp = args_Bk;
break;
case (MDOC_Bl):
- args = args_Bl;
+ argsp = args_Bl;
break;
case (MDOC_Rv):
/* FALLTHROUGH */
case (MDOC_Ex):
- args = args_Ex;
+ argsp = args_Ex;
break;
default:
return(MDOC_ARG_MAX);
}
- assert(args);
+ assert(argsp);
- for ( ; MDOC_ARG_MAX != *args ; args++)
- if (0 == strcmp(p, mdoc_argnames[*args]))
- return(*args);
+ for ( ; MDOC_ARG_MAX != *argsp ; argsp++)
+ if (0 == strcmp(p, mdoc_argnames[*argsp]))
+ return(*argsp);
return(MDOC_ARG_MAX);
}
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-07 1:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-07 1:08 mdocml: Don't shadow global identifiers joerg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).