checknr.c (219096) | checknr.c (219126) |
---|---|
1/* 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 26 unchanged lines hidden (view full) --- 35 36#if 0 37#ifndef lint 38static char sccsid[] = "@(#)checknr.c 8.1 (Berkeley) 6/6/93"; 39#endif /* not lint */ 40#endif 41 42#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 26 unchanged lines hidden (view full) --- 35 36#if 0 37#ifndef lint 38static char sccsid[] = "@(#)checknr.c 8.1 (Berkeley) 6/6/93"; 39#endif /* not lint */ 40#endif 41 42#include <sys/cdefs.h> |
43__FBSDID("$FreeBSD: head/usr.bin/checknr/checknr.c 219096 2011-02-28 10:03:48Z brucec $"); | 43__FBSDID("$FreeBSD: head/usr.bin/checknr/checknr.c 219126 2011-03-01 11:47:51Z brucec $"); |
44 45/* 46 * checknr: check an nroff/troff input file for matching macro calls. 47 * we also attempt to match size and font changes, but only the embedded 48 * kind. These must end in \s0 and \fP resp. Maybe more sophistication 49 * later but for now think of these restrictions as contributions to 50 * structured typesetting. 51 */ --- 22 unchanged lines hidden (view full) --- 74 75/* 76 * The stack on which we remember what we've seen so far. 77 */ 78struct stkstr { 79 int opno; /* number of opening bracket */ 80 int pl; /* '+', '-', ' ' for \s, 1 for \f, 0 for .ft */ 81 int parm; /* parm to size, font, etc */ | 44 45/* 46 * checknr: check an nroff/troff input file for matching macro calls. 47 * we also attempt to match size and font changes, but only the embedded 48 * kind. These must end in \s0 and \fP resp. Maybe more sophistication 49 * later but for now think of these restrictions as contributions to 50 * structured typesetting. 51 */ --- 22 unchanged lines hidden (view full) --- 74 75/* 76 * The stack on which we remember what we've seen so far. 77 */ 78struct stkstr { 79 int opno; /* number of opening bracket */ 80 int pl; /* '+', '-', ' ' for \s, 1 for \f, 0 for .ft */ 81 int parm; /* parm to size, font, etc */ |
82 int lno; /* line number the thing came in in */ | 82 int lno; /* line number */ |
83} stk[MAXSTK]; 84int stktop; 85 86/* 87 * The kinds of opening and closing brackets. 88 */ 89struct brstr { 90 const char *opbr; --- 513 unchanged lines hidden --- | 83} stk[MAXSTK]; 84int stktop; 85 86/* 87 * The kinds of opening and closing brackets. 88 */ 89struct brstr { 90 const char *opbr; --- 513 unchanged lines hidden --- |