4 * Copyright (C) 2012-2013 Ali Gholami Rudi <ali at rudi dot ir>
6 * This program is released under the modified BSD license.
13 static void g_init(void)
20 static void compile(void)
28 void errmsg(char *fmt
, ...)
32 vfprintf(stderr
, fmt
, ap
);
36 int main(int argc
, char **argv
)
40 dev_open(TROFFROOT
"/font/devutf");
44 for (i
= 1; i
< argc
; i
++) {
45 if (argv
[i
][0] != '-' || !argv
[i
][0])
47 if (argv
[i
][1] == 'm') {
48 sprintf(path
, TROFFROOT
"/tmac/tmac.%s", argv
[i
] + 2);
53 in_queue(NULL
); /* reading from standard input */
55 in_queue(!strcmp("-", argv
[i
]) ? NULL
: argv
[i
]);
56 str_set(REG('.', 'P'), TROFFROOT
);