ref: 683c46181fcd524b56ad3ab41fe799566428209d
parent: 1541c24142df485d4a2b3d458267109ee7ab4e74
author: Ali Gholami Rudi <ali@rudi.ir>
date: Thu Nov 13 13:05:45 EST 2014
wb: rename c_isdash() to c_dash()
--- a/fmt.c
+++ b/fmt.c
@@ -288,7 +288,7 @@
hyins[n] = 1;
hyidx[n++] = s - word;
}
- if (!c && (!strcmp(c_bp, d) || c_isdash(d))) {
+ if (!c && (!strcmp(c_bp, d) || c_dash(d))) {
hyins[n] = 0;
hyidx[n++] = s - word;
}
--- a/roff.h
+++ b/roff.h
@@ -276,7 +276,7 @@
void wb_fnszget(struct wb *wb, int *fn, int *sz, int *m);
void wb_fnszset(struct wb *wb, int fn, int sz, int m);
int wb_dashwid(struct wb *wb);
-int c_isdash(char *c);
+int c_dash(char *c);
/* character translation (.tr) */
void cmap_add(char *c1, char *c2);
--- a/wb.c
+++ b/wb.c
@@ -159,7 +159,7 @@
}
}
-int c_isdash(char *c)
+int c_dash(char *c)
{
return !strcmp("-", c) || !strcmp("em", c) || !strcmp("hy", c);
}
@@ -177,7 +177,7 @@
for (i = 0; i < src_n; i++) {
s = src[i];
smap[i] = d - word;
- if (c_isdash(s) || !strcmp(c_hc, s))
+ if (c_dash(s) || !strcmp(c_hc, s))
return 1;
if (!strcmp(c_bp, s))
continue;