projects
/
regis
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bf31f77
)
foo
master
author
John Tsiombikas
<nuclear@mutantstargoat.com>
Sun, 9 Apr 2017 23:58:15 +0000
(
02:58
+0300)
committer
John Tsiombikas
<nuclear@mutantstargoat.com>
Sun, 9 Apr 2017 23:58:15 +0000
(
02:58
+0300)
regis.c
patch
|
blob
|
history
diff --git
a/regis.c
b/regis.c
index
375137a
..
a60a60d
100644
(file)
--- a/
regis.c
+++ b/
regis.c
@@
-10,7
+10,7
@@
void regis_set_output(FILE *fp)
void regis_enter(void)
{
void regis_enter(void)
{
- fprintf(OUT, "\033P0p\n");
+ fprintf(OUT, "\033P0p");
}
void regis_leave(void)
}
void regis_leave(void)
@@
-21,17
+21,17
@@
void regis_leave(void)
void regis_draw_page(int x)
{
void regis_draw_page(int x)
{
- fprintf(OUT, "P(P%d)\n", x ? 1 : 0);
+ fprintf(OUT, "P(P%d)", x ? 1 : 0);
}
void regis_show_page(int x)
{
}
void regis_show_page(int x)
{
- fprintf(OUT, "S(P%d)\n", x ? 1 : 0);
+ fprintf(OUT, "S(P%d)", x ? 1 : 0);
}
void regis_clear(void)
{
}
void regis_clear(void)
{
- fprintf(OUT, "S(E)\n");
+ fprintf(OUT, "S(E)");
}
void regis_abspos(int x, int y)
}
void regis_abspos(int x, int y)
@@
-48,17
+48,17
@@
void regis_relpos(int x, int y)
void regis_absv(int x, int y)
{
void regis_absv(int x, int y)
{
- fprintf(OUT, "[%d,%d]\n", x, y);
+ fprintf(OUT, "[%d,%d]", x, y);
}
void regis_relv(int x, int y)
{
}
void regis_relv(int x, int y)
{
- fprintf(OUT, "[%+d,%+d]\n", x, y);
+ fprintf(OUT, "[%+d,%+d]", x, y);
}
void regis_nullv(void)
{
}
void regis_nullv(void)
{
- fprintf(OUT, "[]\n");
+ fprintf(OUT, "[]");
}
static unsigned int cur_mode;
}
static unsigned int cur_mode;
@@
-72,7
+72,6
@@
void regis_begin_vector(unsigned int mode)
if(mode & REGIS_BOUNDED) {
fprintf(OUT, "(B)");
}
if(mode & REGIS_BOUNDED) {
fprintf(OUT, "(B)");
}
- fputc('\n', OUT);
cur_mode = mode;
}
cur_mode = mode;
}
@@
-82,5
+81,4
@@
void regis_end_vector(void)
if(cur_mode & REGIS_FILL) {
fputc(')', OUT);
}
if(cur_mode & REGIS_FILL) {
fputc(')', OUT);
}
- fputc('\n', OUT);
}
}