aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-06-28 22:32:20 -0300
committerLinus Torvalds <torvalds@linux-foundation.org>2010-06-28 19:22:17 -0700
commite5e0fbd7e76dd2e0804986302aaf39ff96c011b4 (patch)
treedb380a751673f3a2f05670c5a935410a46904fe4
parentda18fa4a2f9c79a417c4a7d7e506524767ff5090 (diff)
downloaduemacs-e5e0fbd7e76dd2e0804986302aaf39ff96c011b4.tar.gz
uemacs/ansi.c: Convert the old functions style declarations to the new one.
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--ansi.c60
1 files changed, 32 insertions, 28 deletions
diff --git a/ansi.c b/ansi.c
index 1d3eee0..80589c6 100644
--- a/ansi.c
+++ b/ansi.c
@@ -105,10 +105,10 @@ int color; /* color to set */
cfcolor = color;
}
-ansibcol(color)
- /* set the current background color */
-int color; /* color to set */
-
+/* Set the current background color.
+ * color: color to set.
+ */
+void ansibcol(int color)
{
if (color == cbcolor)
return;
@@ -130,14 +130,14 @@ ansimove(row, col)
ttputc('H');
}
-ansieeol()
+void ansieeol(void)
{
ttputc(ESC);
ttputc('[');
ttputc('K');
}
-ansieeop()
+void ansieeop(void)
{
#if COLOR
ansifcol(gfcolor);
@@ -148,10 +148,10 @@ ansieeop()
ttputc('J');
}
-ansirev(state)
- /* change reverse video state */
-int state; /* TRUE = reverse, FALSE = normal */
-
+/* Change reverse video state.
+ * state: TRUE = reverse, FALSE = normal
+ */
+void ansirev(int state)
{
#if COLOR
int ftmp, btmp; /* temporaries for colors */
@@ -173,24 +173,25 @@ int state; /* TRUE = reverse, FALSE = normal */
#endif
}
-ansicres()
-{ /* change screen resolution */
+/* Change screen resolution. */
+int ansicres()
+{
return (TRUE);
}
-spal(dummy)
-{ /* change pallette settings */
+/* Change pallette settings. */
+void spal(void)
+{
/* none for now */
}
-ansibeep()
+void ansibeep(void)
{
ttputc(BEL);
ttflush();
}
-ansiparm(n)
-int n;
+void ansiparm(int n)
{
int q, r;
@@ -205,7 +206,7 @@ int n;
ttputc((n % 10) + '0');
}
-ansiopen()
+void ansiopen(void)
{
#if V7 | USG | BSD
char *cp;
@@ -224,7 +225,7 @@ ansiopen()
ttopen();
}
-ansiclose()
+void ansiclose(void)
{
#if COLOR
ansifcol(7);
@@ -233,21 +234,24 @@ ansiclose()
ttclose();
}
-ansikopen()
-{ /* open the keyboard (a noop here) */
+/* Open the keyboard (a noop here). */
+void ansikopen(void)
+{
}
-ansikclose()
-{ /* close the keyboard (a noop here) */
+/* Close the keyboard (a noop here). */
+void ansikclose(void)
+{
}
#if FNLABEL
-fnclabel(f, n)
- /* label a function key */
-int f, n; /* default flag, numeric argument [unused] */
-
+/* Label a function key.
+ * f: default flag
+ * n: numeric argument [unused]
+ */
+int fnclabel(int f, int n)
{
- /* on machines with no function keys...don't bother */
+ /* On machines with no function keys...don't bother. */
return (TRUE);
}
#endif