Remove double-blank lines (Al)

This commit is contained in:
Ben Gras
2005-08-22 15:17:42 +00:00
parent 3aca81a22a
commit e2e90b1fdc
40 changed files with 7 additions and 361 deletions

View File

@@ -131,7 +131,6 @@ FORWARD _PROTOTYPE( void cons_org0, (void) );
FORWARD _PROTOTYPE( int ga_program, (struct sequence *seq) );
FORWARD _PROTOTYPE( int cons_ioctl, (tty_t *tp, int) );
/*===========================================================================*
* cons_write *
*===========================================================================*/
@@ -201,7 +200,6 @@ int try;
}
}
/*===========================================================================*
* cons_echo *
*===========================================================================*/
@@ -216,7 +214,6 @@ int c; /* character to be echoed */
flush(cons);
}
/*===========================================================================*
* out_char *
*===========================================================================*/
@@ -303,7 +300,6 @@ int c; /* character to be output */
}
}
/*===========================================================================*
* scroll_screen *
*===========================================================================*/
@@ -358,7 +354,6 @@ int dir; /* SCROLL_UP or SCROLL_DOWN */
flush(cons);
}
/*===========================================================================*
* flush *
*===========================================================================*/
@@ -393,7 +388,6 @@ register console_t *cons; /* pointer to console struct */
}
}
/*===========================================================================*
* parse_escape *
*===========================================================================*/
@@ -453,7 +447,6 @@ char c; /* next character in escape sequence */
}
}
/*===========================================================================*
* do_escape *
*===========================================================================*/
@@ -696,7 +689,6 @@ char c; /* next character in escape sequence */
cons->c_esc_state = 0;
}
/*===========================================================================*
* set_6845 *
*===========================================================================*/
@@ -732,7 +724,6 @@ unsigned *val; /* 16-bit value to set it to */
*val = (v1 << 8) | v2;
}
/*===========================================================================*
* beep *
*===========================================================================*/
@@ -770,7 +761,6 @@ PRIVATE void beep()
}
}
/*===========================================================================*
* stop_beep *
*===========================================================================*/
@@ -784,7 +774,6 @@ timer_t *tmrp;
beeping = FALSE;
}
/*===========================================================================*
* scr_init *
*===========================================================================*/
@@ -890,7 +879,6 @@ int c;
putk(c);
}
/*==========================================================================*
* do_new_kmess *
*==========================================================================*/
@@ -967,7 +955,6 @@ message *m_ptr; /* pointer to request message */
send(m_ptr->m_source, m_ptr);
}
/*===========================================================================*
* putk *
*===========================================================================*/
@@ -987,7 +974,6 @@ int c; /* character to print */
}
}
/*===========================================================================*
* toggle_scroll *
*===========================================================================*/
@@ -1000,7 +986,6 @@ PUBLIC void toggle_scroll()
printf("%sware scrolling enabled.\n", softscroll ? "Soft" : "Hard");
}
/*===========================================================================*
* cons_stop *
*===========================================================================*/
@@ -1013,7 +998,6 @@ PUBLIC void cons_stop()
cons_table[0].c_attr = cons_table[0].c_blank = BLANK_COLOR;
}
/*===========================================================================*
* cons_org0 *
*===========================================================================*/
@@ -1038,7 +1022,6 @@ PRIVATE void cons_org0()
select_console(ccurrent);
}
/*===========================================================================*
* select_console *
*===========================================================================*/
@@ -1053,7 +1036,6 @@ PUBLIC void select_console(int cons_line)
set_6845(CURSOR, curcons->c_cur);
}
/*===========================================================================*
* con_loadfont *
*===========================================================================*/
@@ -1094,7 +1076,6 @@ message *m;
return(result);
}
/*===========================================================================*
* ga_program *
*===========================================================================*/
@@ -1111,7 +1092,6 @@ struct sequence *seq;
return sys_voutb(char_out, 14);
}
/*===========================================================================*
* cons_ioctl *
*===========================================================================*/

View File

@@ -91,7 +91,6 @@ FORWARD _PROTOTYPE( void show_key_mappings, (void) );
FORWARD _PROTOTYPE( int kb_read, (struct tty *tp, int try) );
FORWARD _PROTOTYPE( unsigned map_key, (int scode) );
/*===========================================================================*
* map_key0 *
*===========================================================================*/
@@ -99,7 +98,6 @@ FORWARD _PROTOTYPE( unsigned map_key, (int scode) );
#define map_key0(scode) \
((unsigned) keymap[(scode) * MAP_COLS])
/*===========================================================================*
* map_key *
*===========================================================================*/
@@ -157,7 +155,6 @@ message *m_ptr;
}
}
/*==========================================================================*
* kb_read *
*==========================================================================*/
@@ -230,7 +227,6 @@ int try;
return 1;
}
/*===========================================================================*
* make_break *
*===========================================================================*/
@@ -308,7 +304,6 @@ int scode; /* scan code of key just struck or released */
return(-1);
}
/*===========================================================================*
* set_leds *
*===========================================================================*/
@@ -331,7 +326,6 @@ PRIVATE void set_leds()
kb_ack(); /* wait for ack response */
}
/*==========================================================================*
* kb_wait *
*==========================================================================*/
@@ -354,7 +348,6 @@ PRIVATE int kb_wait()
return(retries); /* zero on timeout, positive if ready */
}
/*==========================================================================*
* kb_ack *
*==========================================================================*/
@@ -410,7 +403,6 @@ tty_t *tp;
}
}
/*===========================================================================*
* kbd_loadmap *
*===========================================================================*/
@@ -425,7 +417,6 @@ message *m;
return(result);
}
/*===========================================================================*
* do_fkey_ctl *
*===========================================================================*/
@@ -565,7 +556,6 @@ int scode; /* scan code for a function key */
return(TRUE);
}
/*==========================================================================*
* show_key_mappings *
*==========================================================================*/
@@ -603,7 +593,6 @@ PRIVATE void show_key_mappings()
printf("\n");
}
/*==========================================================================*
* scan_keyboard *
*==========================================================================*/
@@ -623,7 +612,6 @@ PRIVATE int scan_keyboard()
return(byte_in[0].value); /* return scan code */
}
/*==========================================================================*
* do_panic_dumps *
*==========================================================================*/
@@ -665,4 +653,3 @@ message *m; /* request message to TTY */
}
}

View File

@@ -65,7 +65,6 @@ typedef struct pty {
PRIVATE pty_t pty_table[NR_PTYS]; /* PTY bookkeeping */
FORWARD _PROTOTYPE( int pty_write, (tty_t *tp, int try) );
FORWARD _PROTOTYPE( void pty_echo, (tty_t *tp, int c) );
FORWARD _PROTOTYPE( void pty_start, (pty_t *pp) );
@@ -76,7 +75,6 @@ FORWARD _PROTOTYPE( int pty_icancel, (tty_t *tp, int try) );
FORWARD _PROTOTYPE( int pty_ocancel, (tty_t *tp, int try) );
FORWARD _PROTOTYPE( int pty_select, (tty_t *tp, message *m) );
/*==========================================================================*
* do_pty *
*==========================================================================*/
@@ -211,7 +209,6 @@ message *m_ptr;
tty_reply(TASK_REPLY, m_ptr->m_source, m_ptr->PROC_NR, r);
}
/*==========================================================================*
* pty_write *
*==========================================================================*/
@@ -226,7 +223,6 @@ int try;
int count, ocount, s;
phys_bytes user_phys;
/* PTY closed down? */
if (pp->state & PTY_CLOSED) {
if(try) return 1;
@@ -305,7 +301,6 @@ int c;
pty_start(pp);
}
/*==========================================================================*
* pty_start *
*==========================================================================*/
@@ -339,7 +334,6 @@ pty_t *pp;
}
}
/*==========================================================================*
* pty_finish *
*==========================================================================*/
@@ -360,7 +354,6 @@ pty_t *pp;
}
/*==========================================================================*
* pty_read *
*==========================================================================*/
@@ -374,7 +367,6 @@ int try;
pty_t *pp = tp->tty_priv;
char c;
if (pp->state & PTY_CLOSED) {
if(try) return 1;
if (tp->tty_inleft > 0) {
@@ -419,7 +411,6 @@ int try;
}
}
/*==========================================================================*
* pty_close *
*==========================================================================*/
@@ -445,7 +436,6 @@ int try;
if (pp->state & PTY_CLOSED) pp->state = 0; else pp->state |= TTY_CLOSED;
}
/*==========================================================================*
* pty_icancel *
*==========================================================================*/
@@ -464,7 +454,6 @@ int try;
}
}
/*==========================================================================*
* pty_ocancel *
*==========================================================================*/
@@ -479,7 +468,6 @@ int try;
pp->otail = pp->ohead;
}
/*==========================================================================*
* pty_init *
*==========================================================================*/
@@ -508,7 +496,6 @@ tty_t *tp;
tp->tty_select_ops = 0;
}
/*==========================================================================*
* pty_status *
*==========================================================================*/

View File

@@ -1,4 +1,3 @@
#include <minix/config.h>
/*==========================================================================*
* rs232.c - serial driver for 8250 and 16450 UARTs *
@@ -356,7 +355,6 @@ int try;
return 1;
}
/*==========================================================================*
* rs_echo *
*==========================================================================*/
@@ -384,7 +382,6 @@ int c; /* character to echo */
if ((rs->ohead += ocount) >= bufend(rs->obuf)) rs->ohead -= buflen(rs->obuf);
}
/*==========================================================================*
* rs_ioctl *
*==========================================================================*/
@@ -399,7 +396,6 @@ int dummy;
return 0; /* dummy */
}
/*==========================================================================*
* rs_config *
*==========================================================================*/
@@ -508,7 +504,6 @@ rs232_t *rs; /* which line */
#endif /* MACHINE == ATARI */
}
/*==========================================================================*
* rs_init *
*==========================================================================*/
@@ -627,7 +622,6 @@ tty_t *tp; /* which TTY */
}
/*==========================================================================*
* rs_interrupt *
*==========================================================================*/
@@ -646,7 +640,6 @@ message *m; /* which TTY */
}
}
/*==========================================================================*
* rs_icancel *
*==========================================================================*/
@@ -666,7 +659,6 @@ int dummy;
return 0; /* dummy */
}
/*==========================================================================*
* rs_ocancel *
*==========================================================================*/
@@ -686,7 +678,6 @@ int dummy;
return 0; /* dummy */
}
/*==========================================================================*
* rs_read *
*==========================================================================*/
@@ -734,7 +725,6 @@ int try;
}
}
/*==========================================================================*
* rs_ostart *
*==========================================================================*/
@@ -747,7 +737,6 @@ rs232_t *rs; /* which rs line */
if (txready(rs)) out_int(rs);
}
/*==========================================================================*
* rs_break *
*==========================================================================*/
@@ -768,7 +757,6 @@ int dummy;
return 0; /* dummy */
}
/*==========================================================================*
* rs_close *
*==========================================================================*/
@@ -786,7 +774,6 @@ int dummy;
return 0; /* dummy */
}
/* Low level (interrupt) routines. */
#if (MACHINE == IBM_PC)
@@ -868,7 +855,6 @@ int type; /* interrupt type */
}
#endif /* MACHINE == ATARI */
/*==========================================================================*
* in_int *
*==========================================================================*/
@@ -911,7 +897,6 @@ register rs232_t *rs; /* line with input interrupt */
}
}
/*==========================================================================*
* line_int *
*==========================================================================*/
@@ -933,7 +918,6 @@ register rs232_t *rs; /* line with line status interrupt */
if (rs->lstatus & LS_BREAK_INTERRUPT) ++rs->break_interrupts;
}
/*==========================================================================*
* modem_int *
*==========================================================================*/
@@ -964,7 +948,6 @@ register rs232_t *rs; /* line with modem interrupt */
}
}
/*==========================================================================*
* out_int *
*==========================================================================*/

View File

@@ -151,7 +151,6 @@ PUBLIC timer_t *tty_timers; /* queue of TTY timers */
PUBLIC clock_t tty_next_timeout; /* time that the next alarm is due */
PUBLIC struct machine machine; /* kernel environment variables */
/*===========================================================================*
* tty_task *
*===========================================================================*/
@@ -289,7 +288,6 @@ PUBLIC void main(void)
}
}
/*===========================================================================*
* do_status *
*===========================================================================*/
@@ -359,7 +357,6 @@ message *m_ptr;
}
}
/*===========================================================================*
* do_read *
*===========================================================================*/
@@ -436,7 +433,6 @@ register message *m_ptr; /* pointer to message sent to the task */
select_retry(tp);
}
/*===========================================================================*
* do_write *
*===========================================================================*/
@@ -487,7 +483,6 @@ register message *m_ptr; /* pointer to message sent to the task */
tty_reply(TASK_REPLY, m_ptr->m_source, m_ptr->PROC_NR, r);
}
/*===========================================================================*
* do_ioctl *
*===========================================================================*/
@@ -703,7 +698,6 @@ message *m_ptr; /* pointer to message sent to task */
tty_reply(TASK_REPLY, m_ptr->m_source, m_ptr->PROC_NR, r);
}
/*===========================================================================*
* do_open *
*===========================================================================*/
@@ -730,7 +724,6 @@ message *m_ptr; /* pointer to message sent to task */
tty_reply(TASK_REPLY, m_ptr->m_source, m_ptr->PROC_NR, r);
}
/*===========================================================================*
* do_close *
*===========================================================================*/
@@ -752,7 +745,6 @@ message *m_ptr; /* pointer to message sent to task */
tty_reply(TASK_REPLY, m_ptr->m_source, m_ptr->PROC_NR, OK);
}
/*===========================================================================*
* do_cancel *
*===========================================================================*/
@@ -886,7 +878,6 @@ tty_t *tp; /* TTY to check for events. */
select_retry_pty(tp);
}
/*===========================================================================*
* in_transfer *
*===========================================================================*/
@@ -957,7 +948,6 @@ register tty_t *tp; /* pointer to terminal to read from */
}
}
/*===========================================================================*
* in_process *
*===========================================================================*/
@@ -1119,7 +1109,6 @@ int count; /* number of input characters */
return ct;
}
/*===========================================================================*
* echo *
*===========================================================================*/
@@ -1181,7 +1170,6 @@ register int ch; /* pointer to character to echo */
return(ch | (len << IN_LSHIFT));
}
/*==========================================================================*
* rawecho *
*==========================================================================*/
@@ -1195,7 +1183,6 @@ int ch;
tp->tty_reprint = rp;
}
/*==========================================================================*
* back_over *
*==========================================================================*/
@@ -1225,7 +1212,6 @@ register tty_t *tp;
return(1); /* one character erased */
}
/*==========================================================================*
* reprint *
*==========================================================================*/
@@ -1265,7 +1251,6 @@ register tty_t *tp; /* pointer to tty struct */
} while (count < tp->tty_incount);
}
/*==========================================================================*
* out_process *
*==========================================================================*/
@@ -1351,7 +1336,6 @@ out_done:
*ocount -= oct; /* *[io]count are the number of chars that are used */
}
/*===========================================================================*
* dev_ioctl *
*===========================================================================*/
@@ -1377,7 +1361,6 @@ tty_t *tp;
tty_reply(REVIVE, tp->tty_iocaller, tp->tty_ioproc, result);
}
/*===========================================================================*
* setattr *
*===========================================================================*/
@@ -1431,7 +1414,6 @@ tty_t *tp;
(*tp->tty_ioctl)(tp, 0);
}
/*===========================================================================*
* tty_reply *
*===========================================================================*/
@@ -1453,7 +1435,6 @@ int status; /* reply code */
}
}
/*===========================================================================*
* sigchar *
*===========================================================================*/
@@ -1481,7 +1462,6 @@ int sig; /* SIGINT, SIGQUIT, SIGKILL or SIGHUP */
}
}
/*==========================================================================*
* tty_icancel *
*==========================================================================*/
@@ -1495,7 +1475,6 @@ register tty_t *tp;
(*tp->tty_icancel)(tp, 0);
}
/*==========================================================================*
* tty_init *
*==========================================================================*/
@@ -1617,7 +1596,6 @@ int enable; /* set timer if true, otherwise unset */
}
}
/*==========================================================================*
* tty_devnop *
*==========================================================================*/
@@ -1705,7 +1683,6 @@ struct sgttyb *sg;
return(OK);
}
/*===========================================================================*
* compat_getc *
*===========================================================================*/
@@ -1724,7 +1701,6 @@ struct tchars *tc;
return(OK);
}
/*===========================================================================*
* compat_setp *
*===========================================================================*/
@@ -1836,7 +1812,6 @@ struct sgttyb *sg;
return(OK);
}
/*===========================================================================*
* compat_setc *
*===========================================================================*/
@@ -1861,7 +1836,6 @@ struct tchars *tc;
return(OK);
}
/* Table of termios line speed to sgtty line speed translations. All termios
* speeds are present even if sgtty didn't know about them. (Now it does.)
*/
@@ -1903,7 +1877,6 @@ speed_t tspd;
return 96;
}
/*===========================================================================*
* sgspd2tspd *
*===========================================================================*/
@@ -1919,7 +1892,6 @@ int sgspd;
return B9600;
}
#if ENABLE_BINCOMPAT
/*===========================================================================*
* do_ioctl_compat *
@@ -1996,5 +1968,3 @@ message *m_ptr;
#endif /* ENABLE_BINCOMPAT */
#endif /* ENABLE_SRCCOMPAT || ENABLE_BINCOMPAT */

View File

@@ -173,4 +173,3 @@ _PROTOTYPE( void mem_vid_copy, (u16_t *src, unsigned dst, unsigned count));
#endif /* (CHIP == INTEL) */