diff options
| author | Juanma Barranquero | 2010-07-05 12:36:06 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-07-05 12:36:06 +0200 |
| commit | d3da34e0dab1404e80dba5413b3c449a6ea8fa0c (patch) | |
| tree | c24d736f75b63d4abb1b8ddd49b088632ccd8aee /src/cm.c | |
| parent | 00be444c737e95c7455aa1808d9da75d4affd51f (diff) | |
| download | emacs-d3da34e0dab1404e80dba5413b3c449a6ea8fa0c.tar.gz emacs-d3da34e0dab1404e80dba5413b3c449a6ea8fa0c.zip | |
Convert most remaining function definitions to standard C.
* buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
* xdisp.c: Convert function definitions to standard C.
* cm.c (cmputc): Arg C is now int, not char.
* process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
Diffstat (limited to 'src/cm.c')
| -rw-r--r-- | src/cm.c | 10 |
1 files changed, 3 insertions, 7 deletions
| @@ -45,8 +45,7 @@ int cost; /* sums up costs */ | |||
| 45 | 45 | ||
| 46 | /* ARGSUSED */ | 46 | /* ARGSUSED */ |
| 47 | int | 47 | int |
| 48 | evalcost (c) | 48 | evalcost (int c) |
| 49 | int c; | ||
| 50 | { | 49 | { |
| 51 | cost++; | 50 | cost++; |
| 52 | return c; | 51 | return c; |
| @@ -56,8 +55,7 @@ evalcost (c) | |||
| 56 | struct tty_display_info *current_tty; | 55 | struct tty_display_info *current_tty; |
| 57 | 56 | ||
| 58 | int | 57 | int |
| 59 | cmputc (c) | 58 | cmputc (int c) |
| 60 | char c; | ||
| 61 | { | 59 | { |
| 62 | if (current_tty->termscript) | 60 | if (current_tty->termscript) |
| 63 | putc (c & 0177, current_tty->termscript); | 61 | putc (c & 0177, current_tty->termscript); |
| @@ -326,9 +324,7 @@ losecursor () | |||
| 326 | #define USECR 3 | 324 | #define USECR 3 |
| 327 | 325 | ||
| 328 | void | 326 | void |
| 329 | cmgoto (tty, row, col) | 327 | cmgoto (struct tty_display_info *tty, int row, int col) |
| 330 | struct tty_display_info *tty; | ||
| 331 | int row, col; | ||
| 332 | { | 328 | { |
| 333 | int homecost, | 329 | int homecost, |
| 334 | crcost, | 330 | crcost, |