home *** CD-ROM | disk | FTP | other *** search
- head 1.5;
- access;
- symbols
- sercli_v1_10:1.5
- sercli_v1_9:1.4
- sercli_v1_8:1.4
- sercli_v1_7:1.3
- sercli_v1_6:1.2
- sercli_v1_5:1.1;
- locks
- rkr:1.5;
- comment @** @;
-
-
- 1.5
- date 93.06.16.23.30.56; author rkr; state Exp;
- branches;
- next 1.4;
-
- 1.4
- date 91.12.20.09.43.51; author rkr; state Exp;
- branches;
- next 1.3;
-
- 1.3
- date 91.12.10.02.48.18; author rkr; state Exp;
- branches;
- next 1.2;
-
- 1.2
- date 91.12.02.10.51.35; author rkr; state Exp;
- branches;
- next 1.1;
-
- 1.1
- date 91.11.28.08.25.21; author rkr; state Exp;
- branches;
- next ;
-
-
- desc
- @sercli is a program to permit shell-like interface to the serial port,
- while also permitting easy config- and run-time-control over the way the
- serial port (or even _which_ serial port) is used.
-
- @
-
-
- 1.5
- log
- @Added per-file copyright notice, as suggested by GPL.
- @
- text
- @/*
- ** $Source: WB_2.1:ho/rcs/errors.c,v $
- ** $Author: rkr $
- ** $Revision: 1.4 $
- ** $Locker: $
- ** $State: Exp $
- ** $Date: 1991/12/20 09:43:51 $
- **
- ** sercli (an Amiga .device <-> FIFO interface tool)
- ** Copyright (C) 1993 Richard Rauch
- **
- ** See /doc/sercli.doc and /COPYING for use and distribution license.
- **
- */
-
- #include "errors.h"
-
- static error_handler handlers [num_error_types];
-
- error_handler set_error_handler (error_type type, error_handler new_handler)
- {
- error_handler old_handler;
-
- old_handler = handlers [type];
- handlers [type] = new_handler;
-
- return (old_handler);
- }
-
-
-
- void handle_error (error_type type, void *error)
- {
- error_handler handler;
-
- handler = handlers [type];
- if (handler)
- handler (error);
- }
- @
-
-
- 1.4
- log
- @*** empty log message ***
- @
- text
- @d2 1
- a2 1
- ** $Source: Workbench:personal/rkr/prog/sercli/src/rcs/errors.c,v $
- d4 2
- a5 2
- ** $Revision: 1.3 $
- ** $Locker: rkr $
- d7 6
- a12 1
- ** $Date: 91/12/10 02:48:18 $
- @
-
-
- 1.3
- log
- @*** empty log message ***
- @
- text
- @d4 1
- a4 1
- ** $Revision: 1.2 $
- d7 1
- a7 1
- ** $Date: 91/12/02 10:51:35 $
- @
-
-
- 1.2
- log
- @*** empty log message ***
- @
- text
- @d7 1
- a7 1
- ** $Date: 91/12/02 10:42:13 $
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d2 6
- a7 6
- ** $Source$
- ** $Author$
- ** $Revision$
- ** $Locker$
- ** $State$
- ** $Date$
- @
-