| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: deroff.c,v 1.6 2009/04/11 13:01:27 lukem Exp $ */ | | 1 | /* $NetBSD: deroff.c,v 1.7 2009/08/07 14:05:58 wiz Exp $ */ |
2 | | | 2 | |
3 | /* taken from: OpenBSD: deroff.c,v 1.6 2004/06/02 14:58:46 tom Exp */ | | 3 | /* taken from: OpenBSD: deroff.c,v 1.6 2004/06/02 14:58:46 tom Exp */ |
4 | | | 4 | |
5 | /*- | | 5 | /*- |
6 | * Copyright (c) 1988, 1993 | | 6 | * Copyright (c) 1988, 1993 |
7 | * The Regents of the University of California. All rights reserved. | | 7 | * The Regents of the University of California. All rights reserved. |
8 | * | | 8 | * |
9 | * Redistribution and use in source and binary forms, with or without | | 9 | * Redistribution and use in source and binary forms, with or without |
10 | * modification, are permitted provided that the following conditions | | 10 | * modification, are permitted provided that the following conditions |
11 | * are met: | | 11 | * are met: |
12 | * 1. Redistributions of source code must retain the above copyright | | 12 | * 1. Redistributions of source code must retain the above copyright |
13 | * notice, this list of conditions and the following disclaimer. | | 13 | * notice, this list of conditions and the following disclaimer. |
14 | * 2. Redistributions in binary form must reproduce the above copyright | | 14 | * 2. Redistributions in binary form must reproduce the above copyright |
| @@ -64,27 +64,27 @@ | | | @@ -64,27 +64,27 @@ |
64 | * POSSIBILITY OF SUCH DAMAGE. | | 64 | * POSSIBILITY OF SUCH DAMAGE. |
65 | */ | | 65 | */ |
66 | | | 66 | |
67 | #ifndef lint | | 67 | #ifndef lint |
68 | static const char copyright[] = | | 68 | static const char copyright[] = |
69 | "@(#) Copyright (c) 1988, 1993\n\ | | 69 | "@(#) Copyright (c) 1988, 1993\n\ |
70 | The Regents of the University of California. All rights reserved.\n"; | | 70 | The Regents of the University of California. All rights reserved.\n"; |
71 | #endif /* not lint */ | | 71 | #endif /* not lint */ |
72 | | | 72 | |
73 | #ifndef lint | | 73 | #ifndef lint |
74 | #if 0 | | 74 | #if 0 |
75 | static const char sccsid[] = "@(#)deroff.c 8.1 (Berkeley) 6/6/93"; | | 75 | static const char sccsid[] = "@(#)deroff.c 8.1 (Berkeley) 6/6/93"; |
76 | #else | | 76 | #else |
77 | static const char rcsid[] = "$NetBSD: deroff.c,v 1.6 2009/04/11 13:01:27 lukem Exp $"; | | 77 | static const char rcsid[] = "$NetBSD: deroff.c,v 1.7 2009/08/07 14:05:58 wiz Exp $"; |
78 | #endif | | 78 | #endif |
79 | #endif /* not lint */ | | 79 | #endif /* not lint */ |
80 | | | 80 | |
81 | #include <sys/cdefs.h> | | 81 | #include <sys/cdefs.h> |
82 | #include <err.h> | | 82 | #include <err.h> |
83 | #include <limits.h> | | 83 | #include <limits.h> |
84 | #include <stddef.h> | | 84 | #include <stddef.h> |
85 | #include <stdio.h> | | 85 | #include <stdio.h> |
86 | #include <stdlib.h> | | 86 | #include <stdlib.h> |
87 | #include <string.h> | | 87 | #include <string.h> |
88 | #include <unistd.h> | | 88 | #include <unistd.h> |
89 | | | 89 | |
90 | /* | | 90 | /* |
| @@ -815,34 +815,34 @@ inpic(void) | | | @@ -815,34 +815,34 @@ inpic(void) |
815 | puts(line); | | 815 | puts(line); |
816 | putchar('\n'); | | 816 | putchar('\n'); |
817 | } | | 817 | } |
818 | p1 = line; | | 818 | p1 = line; |
819 | } | | 819 | } |
820 | } | | 820 | } |
821 | } | | 821 | } |
822 | | | 822 | |
823 | #ifdef DEBUG | | 823 | #ifdef DEBUG |
824 | static int | | 824 | static int |
825 | _C1(void) | | 825 | _C1(void) |
826 | { | | 826 | { |
827 | | | 827 | |
828 | return C1get); | | 828 | return C1get; |
829 | } | | 829 | } |
830 | | | 830 | |
831 | static int | | 831 | static int |
832 | _C(void) | | 832 | _C(void) |
833 | { | | 833 | { |
834 | | | 834 | |
835 | return Cget); | | 835 | return Cget; |
836 | } | | 836 | } |
837 | #endif /* DEBUG */ | | 837 | #endif /* DEBUG */ |
838 | | | 838 | |
839 | /* | | 839 | /* |
840 | * Put out a macro line, using ms and mm conventions. | | 840 | * Put out a macro line, using ms and mm conventions. |
841 | */ | | 841 | */ |
842 | static void | | 842 | static void |
843 | msputmac(char *s, int constant) | | 843 | msputmac(char *s, int constant) |
844 | { | | 844 | { |
845 | char *t; | | 845 | char *t; |
846 | int found; | | 846 | int found; |
847 | int last; | | 847 | int last; |
848 | | | 848 | |