mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-10 18:20:23 +00:00
Replace all K&R style function definitions with new-style function definitions.
Add some missing default function result types (int). Add some missing void result types where appropriate. modified: src/Cldeetr.c modified: src/atom.c modified: src/bbtsub.c modified: src/bitblt.c modified: src/byteswap.c modified: src/chardev.c modified: src/chatter.c modified: src/colorbltfns.c modified: src/common.c modified: src/dir.c modified: src/dlpi.c modified: src/doskbd.c modified: src/dosmouse.c modified: src/draw.c modified: src/dsk.c modified: src/dspsubrs.c modified: src/ejlisp.c modified: src/ether.c modified: src/imagefile.c modified: src/imagefile2.c modified: src/inet.c modified: src/initdsp.c modified: src/initkbd.c modified: src/kbdsubrs.c modified: src/ldeboot.c modified: src/llcolor.c modified: src/llstk.c modified: src/loader.c modified: src/loopsops.c modified: src/lpdual.c modified: src/lpmain.c modified: src/lpread.c modified: src/lptran.c modified: src/lpwrite.c modified: src/main.c modified: src/misc7.c modified: src/mkatom.c modified: src/mnwevent.c modified: src/mnxmeth.c modified: src/mouseif.c modified: src/ocr.c modified: src/ocrproc.c modified: src/oether.c modified: src/oldeether.c modified: src/osmsg.c modified: src/picture.c modified: src/rawcolor.c modified: src/rawrs232c.c modified: src/rpc.c modified: src/rs232c.c modified: src/socdvr.c modified: src/socket.c modified: src/testdsp.c modified: src/testtool.c modified: src/timeoday.c modified: src/timeofday.c modified: src/timer.c modified: src/truecolor.c modified: src/tty.c modified: src/ufn.c modified: src/ufs.c modified: src/unixcomm.c modified: src/unixfork.c modified: src/unwind.c modified: src/uraid.c modified: src/vesainit.c modified: src/vgainit.c modified: src/vmemsave.c modified: src/xcursor.c modified: src/xinit.c modified: src/xlspwin.c modified: src/xmkicon.c modified: src/xrdopt.c modified: src/xwinman.c
This commit is contained in:
@@ -98,7 +98,7 @@ static void ocr_proc_post_read();
|
||||
* notify the completion of the initial request.
|
||||
*/
|
||||
|
||||
void ocr_proc(ppid) pid_t ppid;
|
||||
void ocr_proc(pid_t ppid)
|
||||
{
|
||||
int len, postponed = 0;
|
||||
u_char pkt[PKTLEN];
|
||||
@@ -159,8 +159,7 @@ static void ocr_proc_exit() {
|
||||
* Handle the work requested from the primary emulator process
|
||||
*/
|
||||
|
||||
static int ocr_handle_comm(pkt, epkt, reasonp) u_char pkt[], epkt[];
|
||||
int *reasonp;
|
||||
static int ocr_handle_comm(u_char pkt[], u_char epkt[], int *reasonp)
|
||||
{
|
||||
int len;
|
||||
|
||||
@@ -256,8 +255,7 @@ int *reasonp;
|
||||
* Handle postponed time consuming work.
|
||||
*/
|
||||
|
||||
static void ocr_do_postponed_work(reason, ppid) int reason;
|
||||
pid_t ppid;
|
||||
static void ocr_do_postponed_work(int reason, pid_t ppid)
|
||||
{
|
||||
u_char pkt[PKTLEN];
|
||||
|
||||
@@ -307,7 +305,7 @@ pid_t ppid;
|
||||
* Notify primary emulator process that time consuming work has been done.
|
||||
*/
|
||||
|
||||
static void notify_ready(ppid) pid_t ppid;
|
||||
static void notify_ready(pid_t ppid)
|
||||
{ kill(ppid, SIGUSR1); }
|
||||
|
||||
/*
|
||||
@@ -365,7 +363,7 @@ static void ocr_init_signal() {
|
||||
* Scan image
|
||||
*/
|
||||
|
||||
static int ocr_proc_scan(spp) struct ocr_scan_para *spp;
|
||||
static int ocr_proc_scan(struct ocr_scan_para *spp)
|
||||
{
|
||||
struct scan_params sp;
|
||||
|
||||
@@ -471,8 +469,7 @@ static int ocr_proc_scan(spp) struct ocr_scan_para *spp;
|
||||
* image being uploaded into the ocr_image_infor structure.
|
||||
*/
|
||||
|
||||
static int ocr_proc_iminfo(upp, infop) struct ocr_up_para *upp;
|
||||
struct ocr_image_info *infop;
|
||||
static int ocr_proc_iminfo(struct ocr_up_para *upp, struct ocr_image_info *infop)
|
||||
{
|
||||
struct img_params upara;
|
||||
struct ocr_stat st;
|
||||
@@ -538,8 +535,7 @@ struct ocr_image_info *infop;
|
||||
* Set Read Parameters
|
||||
*/
|
||||
|
||||
static int ocr_proc_set_rpara(rpp, len) register struct ocr_read_para *rpp;
|
||||
int len;
|
||||
static int ocr_proc_set_rpara(register struct ocr_read_para *rpp, int len)
|
||||
{
|
||||
register int cnt = len;
|
||||
struct read_params rpara;
|
||||
@@ -634,8 +630,7 @@ static int ocr_proc_read() {
|
||||
* compatible with ocr_bulk_read in 'ocr.c'.
|
||||
*/
|
||||
|
||||
static void ocr_proc_img_upload(iminfop, ppid) struct ocr_image_info *iminfop;
|
||||
pid_t ppid;
|
||||
static void ocr_proc_img_upload(struct ocr_image_info *iminfop, pid_t ppid)
|
||||
{
|
||||
register int len, resid, firsttime = 1;
|
||||
int cnt;
|
||||
@@ -678,7 +673,7 @@ pid_t ppid;
|
||||
* compatible with ocr_bulk_read in 'ocr.c'.
|
||||
*/
|
||||
|
||||
static void ocr_proc_post_read(ppid) pid_t ppid;
|
||||
static void ocr_proc_post_read(pid_t ppid)
|
||||
{
|
||||
static u_char rbuf[65536];
|
||||
static u_char fbuf[65536];
|
||||
@@ -747,8 +742,7 @@ fail : {
|
||||
* Reformat the read data to make a life of Lisp tremendously easy
|
||||
*/
|
||||
|
||||
static int ocr_conv_read_data(sp, dp, len) register u_char *sp, *dp;
|
||||
register int len;
|
||||
static int ocr_conv_read_data(register u_char *sp, u_char *dp, register int len)
|
||||
{
|
||||
bcopy(sp, dp, len);
|
||||
return (len);
|
||||
@@ -788,10 +782,7 @@ register int len;
|
||||
|
||||
|
||||
static int
|
||||
ocr_conv_read_data(sp, dp, len, statep)
|
||||
register u_char *sp, *dp;
|
||||
register int len;
|
||||
struct parse_state *statep;
|
||||
ocr_conv_read_data(u_char *sp, u_char *dp, int len, struct parse_state *statep)
|
||||
{
|
||||
/+
|
||||
* for now...
|
||||
|
||||
Reference in New Issue
Block a user