aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/htmlroff/t1.c
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
commit02d7aa8915f9c3a3288dab01f321eb94ba219e3b (patch)
treef053238978479e408a2b83571443e132f30586ab /src/cmd/htmlroff/t1.c
parentc0c9d8f883dfd3a7f5a74499d91bb95884b15873 (diff)
parent3d1382b98a502d0c34d5ba2c462396acc515016e (diff)
downloadplan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.gz
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.bz2
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/cmd/htmlroff/t1.c')
-rw-r--r--src/cmd/htmlroff/t1.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cmd/htmlroff/t1.c b/src/cmd/htmlroff/t1.c
index 8236694d..c68ada77 100644
--- a/src/cmd/htmlroff/t1.c
+++ b/src/cmd/htmlroff/t1.c
@@ -1,5 +1,5 @@
#include "a.h"
-
+
/*
* Section 1 - General Explanation.
*/
@@ -10,7 +10,7 @@ int
scale2units(char c)
{
int x;
-
+
switch(c){
case 'i': /* inch */
return UPI;
@@ -49,7 +49,7 @@ long
runestrtol(Rune *a, Rune **p)
{
long n;
-
+
n = 0;
while('0' <= *a && *a <= '9'){
n = n*10 + *a-'0';
@@ -111,7 +111,7 @@ eval0(Rune **pline, int scale, int recur)
*pline = p;
return x;
}
-
+
while(*p){
switch(*p++) {
case '+':
@@ -176,11 +176,10 @@ void
t1init(void)
{
Tm tm;
-
+
tm = *localtime(time(0));
nr(L("dw"), tm.wday+1);
nr(L("dy"), tm.mday);
nr(L("mo"), tm.mon);
nr(L("yr"), tm.year%100);
}
-