ref: 1b9907247d101dd82db6f84f0ba367a643aff2fa
parent: ab48d1d575b06c3996847357dc26aec1cd688c53
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sat Aug 30 14:48:28 EDT 2014
reg: \n(.H and \n(.V
--- a/reg.c
+++ b/reg.c
@@ -225,10 +225,10 @@
{
time_t t = time(NULL);
struct tm *tm = localtime(&t);
- nregs[map("dw")] = tm->tm_wday + 1;
- nregs[map("dy")] = tm->tm_mday;
- nregs[map("mo")] = tm->tm_mon + 1;
- nregs[map("yr")] = tm->tm_year % 100;
+ num_set(map("dw"), tm->tm_wday + 1);
+ num_set(map("dy"), tm->tm_mday);
+ num_set(map("mo"), tm->tm_mon + 1);
+ num_set(map("yr"), tm->tm_year % 100);
}
static void init_globals(void)
@@ -237,6 +237,8 @@
n_p = SC_IN * 11;
n_lg = 1;
n_kn = 0;
+ num_set(map(".H"), 1);
+ num_set(map(".V"), 1);
}
void env_init(void)