Fix typos; add FreeBSD Id where missing.

This commit is contained in:
Jens Schweikhardt 2003-01-01 18:13:45 +00:00
parent eb067f08f0
commit 3724136741
6 changed files with 14 additions and 11 deletions

View File

@ -1782,7 +1782,7 @@ decl1ext(sym_t *dsym, int initflg)
if ((rdsym = dcs->d_rdcsym) != NULL) {
/*
* If the old symbol stems from a old style function definition
* If the old symbol stems from an old style function definition
* we have remembered the params in rdsmy->s_args and compare
* them with the params of the prototype.
*/
@ -2524,7 +2524,7 @@ decl1loc(sym_t *dsym, int initflg)
}
/*
* Before we can check the size we must wait for a initialisation
* Before we can check the size we must wait for an initialisation
* which may follow.
*/
}

View File

@ -31,6 +31,8 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include "lint.h"
#include "op.h"
@ -221,7 +223,7 @@ typedef struct sym {
definition */
u_int s_rimpl : 1; /* return value of function implizit decl. */
u_int s_osdef : 1; /* symbol stems from old style function def. */
u_int s_inline : 1; /* true if this is a inline function */
u_int s_inline : 1; /* true if this is an inline function */
struct sym *s_xsym; /* for local declared external symbols pointer
to external symbol with same name */
def_t s_def; /* declared, tentative defined, defined */
@ -232,7 +234,7 @@ typedef struct sym {
val_t s_value; /* value (if enumcon) */
union {
str_t *_s_st; /* tag, if it is a struct/union member */
enum_t *_s_et; /* tag, if it is a enumerator */
enum_t *_s_et; /* tag, if it is an enumerator */
tspec_t _s_tsp; /* type (only for keywords) */
tqual_t _s_tqu; /* qualifier (only for keywords) */
struct sym *_s_args; /* arguments in old style function

View File

@ -262,7 +262,7 @@ symt_t symtyp;
/*
* All keywords are written to the symbol table. This saves us looking
* in a extra table for each name we found.
* in an extra table for each name we found.
*/
void
initscan(void)

View File

@ -263,7 +263,7 @@ getcnode(type_t *tp, val_t *v)
}
/*
* Create a node for a integer constant.
* Create a node for an integer constant.
*/
static tnode_t *
getinode(tspec_t t, int64_t q)
@ -2026,7 +2026,7 @@ cvtcon(op_t op, int arg, type_t *tp, val_t *nv, val_t *v)
* the bits was set in a signed type.
* Loss of significant bits means that it is not
* possible, also not with necessary casts, to convert
* back to the original type. A example for a
* back to the original type. An example for a
* necessary cast is:
* char c; int i; c = 128;
* i = c; ** yields -128 **
@ -2079,7 +2079,7 @@ cvtcon(op_t op, int arg, type_t *tp, val_t *nv, val_t *v)
/*
* Called if incompatible types were detected.
* Prints a appropriate warning.
* Prints an appropriate warning.
*/
static void
incompat(op_t op, tspec_t lt, tspec_t rt)
@ -3448,7 +3448,7 @@ chkmisc(tnode_t *tn, int vctx, int tctx, int eqwarn, int fcall, int rvdisc,
if (ln->tn_op == NAME && (reached || rchflg)) {
sc = ln->tn_sym->s_scl;
/*
* Look if there was a asm statement in one of the
* Look if there was an asm statement in one of the
* compound statements we are in. If not, we don't
* print a warning.
*/

View File

@ -35,6 +35,7 @@
#if defined(__RCSID) && !defined(lint)
__RCSID("$NetBSD: main2.c,v 1.5 2001/11/21 19:14:26 wiz Exp $");
#endif
__FBSDID("$FreeBSD$");
#include <stdio.h>
#include <stdlib.h>
@ -67,7 +68,7 @@ int sflag;
int tflag;
/*
* If a complaint stems from a included file, print the name of the included
* If a complaint stems from an included file, print the name of the included
* file instead of the name spezified at the command line followed by '?'
*/
int Hflag;

View File

@ -67,7 +67,7 @@ static size_t nfnames;
/*
* Types are shared (to save memory for the types itself) and accessed
* via indices (to save memory for references to types (indices are short)).
* To share types, a equal type must be located fast. This is done by a
* To share types, an equal type must be located fast. This is done by a
* hash table. Access by indices is done via an array of pointers to the
* types.
*/