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)
19 static void compile(void)
27 void errmsg(char *fmt
, ...)
31 vfprintf(stderr
, fmt
, ap
);
35 int main(int argc
, char **argv
)
39 dev_open(TROFFROOT
"/font/devutf");
43 for (i
= 1; i
< argc
; i
++) {
44 if (argv
[i
][0] != '-' || !argv
[i
][0])
46 if (argv
[i
][1] == 'm') {
47 sprintf(path
, TROFFROOT
"/tmac/tmac.%s", argv
[i
] + 2);
52 in_queue(NULL
); /* reading from standard input */
54 in_queue(!strcmp("-", argv
[i
]) ? NULL
: argv
[i
]);
55 str_set(REG('.', 'P'), TROFFROOT
);