Annotation of coherent/g/usr/bin/tic/comp_error.c, revision 1.1

1.1     ! root        1: /*********************************************************************
        !             2: *                         COPYRIGHT NOTICE                           *
        !             3: **********************************************************************
        !             4: *        This software is copyright (C) 1982 by Pavel Curtis         *
        !             5: *                                                                    *
        !             6: *        Permission is granted to reproduce and distribute           *
        !             7: *        this file by any means so long as no fee is charged         *
        !             8: *        above a nominal handling fee and so long as this            *
        !             9: *        notice is always included in the copies.                    *
        !            10: *                                                                    *
        !            11: *        Other rights are reserved except as explicitly granted      *
        !            12: *        by written permission of the author.                        *
        !            13: *                Pavel Curtis                                        *
        !            14: *                Computer Science Dept.                              *
        !            15: *                405 Upson Hall                                      *
        !            16: *                Cornell University                                  *
        !            17: *                Ithaca, NY 14853                                    *
        !            18: *                                                                    *
        !            19: *                Ph- (607) 256-4934                                  *
        !            20: *                                                                    *
        !            21: *                Pavel.Cornell@Udel-Relay   (ARPAnet)                *
        !            22: *                decvax!cornell!pavel       (UUCPnet)                *
        !            23: *********************************************************************/
        !            24: 
        !            25: /*
        !            26:  *     comp_error.c -- Error message routines
        !            27:  *
        !            28:  *  $Log:      comp_error.c,v $
        !            29:  * Revision 1.1  92/03/13  10:45:36  bin
        !            30:  * Initial revision
        !            31:  * 
        !            32:  * Revision 2.1  82/10/25  14:45:31  pavel
        !            33:  * Added Copyright Notice
        !            34:  * 
        !            35:  * Revision 2.0  82/10/24  15:16:32  pavel
        !            36:  * Beta-one Test Release
        !            37:  * 
        !            38:  * Revision 1.3  82/08/23  22:29:31  pavel
        !            39:  * The REAL Alpha-one Release Version
        !            40:  * 
        !            41:  * Revision 1.2  82/08/19  19:09:44  pavel
        !            42:  * Alpha Test Release One
        !            43:  * 
        !            44:  * Revision 1.1  82/08/12  18:36:02  pavel
        !            45:  * Initial revision
        !            46:  * 
        !            47:  *
        !            48:  */
        !            49: 
        !            50: #ifndef COHERENT
        !            51: static char RCSid[] =
        !            52:        "$Header: /src386/usr/bin/tic/RCS/comp_error.c,v 1.1 92/03/13 10:45:36 bin Exp $";
        !            53: #endif
        !            54: 
        !            55: #include "compiler.h"
        !            56: 
        !            57: extern char *string_table;
        !            58: extern short term_names;
        !            59: 
        !            60: warning(fmt, a1, a2, a3, a4, a5, a6)
        !            61: char   *fmt, *a1, *a2, *a3, *a4, *a5, *a6;
        !            62: {
        !            63:     fprintf (stderr, "tic: Warning: near line %d: ", curr_line);
        !            64:     fprintf (stderr, "terminal '%s', ", string_table+term_names);
        !            65:     fprintf (stderr, fmt, a1, a2, a3, a4, a5, a6);
        !            66:     fprintf (stderr, "\n");
        !            67: }
        !            68: 
        !            69: 
        !            70: err_abort(fmt, a1, a2, a3, a4, a5, a6)
        !            71: char   *fmt, *a1, *a2, *a3, *a4, *a5, *a6;
        !            72: {
        !            73:     fprintf (stderr, "tic: Line %d: ", curr_line);
        !            74:     fprintf (stderr, "terminal '%s', ", string_table+term_names);
        !            75:     fprintf (stderr, fmt, a1, a2, a3, a4, a5, a6);
        !            76:     fprintf (stderr, "\n");
        !            77:     exit(1);
        !            78: }
        !            79: 
        !            80: 
        !            81: syserr_abort(fmt, a1, a2, a3, a4, a5, a6)
        !            82: char   *fmt, *a1, *a2, *a3, *a4, *a5, *a6;
        !            83: {
        !            84:     fprintf (stderr, "PROGRAM ERROR: Line %d: ", curr_line);
        !            85:     fprintf (stderr, "terminal '%s', ", string_table+term_names);
        !            86:     fprintf (stderr, fmt, a1, a2, a3, a4, a5, a6);
        !            87:     fprintf (stderr, "\n");
        !            88:     abort();
        !            89: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.