Fix C style.
The Tock support headers (at least the C side) follow the KRoC C standards, which are essentially K&R with spaces before function arg lists.
This commit is contained in:
parent
ce622da2cb
commit
f445ccbdc9
|
@ -363,8 +363,8 @@ static inline double occam_DSQRT (double v, const char *pos) {
|
||||||
static bool tock_uses_tty;
|
static bool tock_uses_tty;
|
||||||
static struct termios tock_saved_termios;
|
static struct termios tock_saved_termios;
|
||||||
|
|
||||||
static void tock_restore_terminal() occam_unused;
|
static void tock_restore_terminal () occam_unused;
|
||||||
static void tock_restore_terminal()
|
static void tock_restore_terminal ()
|
||||||
{
|
{
|
||||||
//{{{ restore terminal
|
//{{{ restore terminal
|
||||||
if (tock_uses_tty) {
|
if (tock_uses_tty) {
|
||||||
|
@ -378,8 +378,8 @@ static void tock_restore_terminal()
|
||||||
//}}}
|
//}}}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tock_configure_terminal(bool) occam_unused;
|
static void tock_configure_terminal (bool) occam_unused;
|
||||||
static void tock_configure_terminal(bool uses_stdin)
|
static void tock_configure_terminal (bool uses_stdin)
|
||||||
{
|
{
|
||||||
//{{{ configure terminal
|
//{{{ configure terminal
|
||||||
tock_uses_tty = uses_stdin && isatty (0);
|
tock_uses_tty = uses_stdin && isatty (0);
|
||||||
|
|
|
@ -123,7 +123,7 @@ static void tock_tlp_output_kill (Workspace wptr, Channel *kill) {
|
||||||
//{{{ CCSP startup and terminal handling
|
//{{{ CCSP startup and terminal handling
|
||||||
static void tock_exit_handler (int status, word core) occam_unused;
|
static void tock_exit_handler (int status, word core) occam_unused;
|
||||||
static void tock_exit_handler (int status, word core) {
|
static void tock_exit_handler (int status, word core) {
|
||||||
tock_restore_terminal();
|
tock_restore_terminal ();
|
||||||
ccsp_default_exit_handler (status, core);
|
ccsp_default_exit_handler (status, core);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ static void tock_init_ccsp (bool uses_stdin) occam_unused;
|
||||||
static void tock_init_ccsp (bool uses_stdin) {
|
static void tock_init_ccsp (bool uses_stdin) {
|
||||||
ccsp_set_branding ("Tock");
|
ccsp_set_branding ("Tock");
|
||||||
|
|
||||||
tock_configure_terminal(uses_stdin);
|
tock_configure_terminal (uses_stdin);
|
||||||
|
|
||||||
if (!ccsp_init ())
|
if (!ccsp_init ())
|
||||||
exit (1);
|
exit (1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user