Fix typos; add FreeBSD Id where missing.
This commit is contained in:
parent
eb067f08f0
commit
3724136741
@ -1782,7 +1782,7 @@ decl1ext(sym_t *dsym, int initflg)
|
|||||||
if ((rdsym = dcs->d_rdcsym) != NULL) {
|
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
|
* we have remembered the params in rdsmy->s_args and compare
|
||||||
* them with the params of the prototype.
|
* 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.
|
* which may follow.
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
#include "lint.h"
|
#include "lint.h"
|
||||||
#include "op.h"
|
#include "op.h"
|
||||||
@ -221,7 +223,7 @@ typedef struct sym {
|
|||||||
definition */
|
definition */
|
||||||
u_int s_rimpl : 1; /* return value of function implizit decl. */
|
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_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
|
struct sym *s_xsym; /* for local declared external symbols pointer
|
||||||
to external symbol with same name */
|
to external symbol with same name */
|
||||||
def_t s_def; /* declared, tentative defined, defined */
|
def_t s_def; /* declared, tentative defined, defined */
|
||||||
@ -232,7 +234,7 @@ typedef struct sym {
|
|||||||
val_t s_value; /* value (if enumcon) */
|
val_t s_value; /* value (if enumcon) */
|
||||||
union {
|
union {
|
||||||
str_t *_s_st; /* tag, if it is a struct/union member */
|
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) */
|
tspec_t _s_tsp; /* type (only for keywords) */
|
||||||
tqual_t _s_tqu; /* qualifier (only for keywords) */
|
tqual_t _s_tqu; /* qualifier (only for keywords) */
|
||||||
struct sym *_s_args; /* arguments in old style function
|
struct sym *_s_args; /* arguments in old style function
|
||||||
|
@ -262,7 +262,7 @@ symt_t symtyp;
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* All keywords are written to the symbol table. This saves us looking
|
* 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
|
void
|
||||||
initscan(void)
|
initscan(void)
|
||||||
|
@ -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 *
|
static tnode_t *
|
||||||
getinode(tspec_t t, int64_t q)
|
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.
|
* the bits was set in a signed type.
|
||||||
* Loss of significant bits means that it is not
|
* Loss of significant bits means that it is not
|
||||||
* possible, also not with necessary casts, to convert
|
* 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:
|
* necessary cast is:
|
||||||
* char c; int i; c = 128;
|
* char c; int i; c = 128;
|
||||||
* i = c; ** yields -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.
|
* Called if incompatible types were detected.
|
||||||
* Prints a appropriate warning.
|
* Prints an appropriate warning.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
incompat(op_t op, tspec_t lt, tspec_t rt)
|
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)) {
|
if (ln->tn_op == NAME && (reached || rchflg)) {
|
||||||
sc = ln->tn_sym->s_scl;
|
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
|
* compound statements we are in. If not, we don't
|
||||||
* print a warning.
|
* print a warning.
|
||||||
*/
|
*/
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
#if defined(__RCSID) && !defined(lint)
|
#if defined(__RCSID) && !defined(lint)
|
||||||
__RCSID("$NetBSD: main2.c,v 1.5 2001/11/21 19:14:26 wiz Exp $");
|
__RCSID("$NetBSD: main2.c,v 1.5 2001/11/21 19:14:26 wiz Exp $");
|
||||||
#endif
|
#endif
|
||||||
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -67,7 +68,7 @@ int sflag;
|
|||||||
int tflag;
|
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 '?'
|
* file instead of the name spezified at the command line followed by '?'
|
||||||
*/
|
*/
|
||||||
int Hflag;
|
int Hflag;
|
||||||
|
@ -67,7 +67,7 @@ static size_t nfnames;
|
|||||||
/*
|
/*
|
||||||
* Types are shared (to save memory for the types itself) and accessed
|
* Types are shared (to save memory for the types itself) and accessed
|
||||||
* via indices (to save memory for references to types (indices are short)).
|
* 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
|
* hash table. Access by indices is done via an array of pointers to the
|
||||||
* types.
|
* types.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user