1 /* $Id: $ */
2 
3 /* Copyright (C) 1997 Sverre Hvammen Johansen and Terje Mjoes,
4  * Department of Informatics, University of Oslo.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 #include "cim.h"
21 
22 /******************************************************************************
23                                  PROCEDURE PUTCHAR (text attributt)          */
24 
25 __txtvp
__rtputchar(t,c)26 __rtputchar (t, c)
27      __txtvp t;
28      char c;
29 {
30   if (t->obj == __NULL)
31     __rerror ("Putchar: Notext");
32   if (t->obj->h.konstant)
33     __rerror ("Putchar: Constant text object");
34   if (t->pos > t->length)
35     __rerror ("Putchar: Illegal pos value");
36   t->obj->string[t->start + (t->pos++) - 2] = c;
37   return (t);
38 }
39 
40 
41 
42