Module Name: src Committed By: rillig Date: Fri Jan 1 19:15:58 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: init.c lint1.h Log Message: lint: un-export struct istk To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/usr.bin/xlint/lint1/init.c cvs rdiff -u -r1.45 -r1.46 src/usr.bin/xlint/lint1/lint1.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/lint1/init.c diff -u src/usr.bin/xlint/lint1/init.c:1.52 src/usr.bin/xlint/lint1/init.c:1.53 --- src/usr.bin/xlint/lint1/init.c:1.52 Fri Jan 1 19:11:19 2021 +++ src/usr.bin/xlint/lint1/init.c Fri Jan 1 19:15:58 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: init.c,v 1.52 2021/01/01 19:11:19 rillig Exp $ */ +/* $NetBSD: init.c,v 1.53 2021/01/01 19:15:58 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: init.c,v 1.52 2021/01/01 19:11:19 rillig Exp $"); +__RCSID("$NetBSD: init.c,v 1.53 2021/01/01 19:15:58 rillig Exp $"); #endif #include <ctype.h> @@ -46,6 +46,28 @@ __RCSID("$NetBSD: init.c,v 1.52 2021/01/ #include "lint1.h" + +/* + * Type of stack which is used for initialisation of aggregate types. + */ +typedef struct istk { + type_t *i_type; /* type of initialisation */ + type_t *i_subt; /* type of next level */ + u_int i_brace : 1; /* need } for pop */ + u_int i_nolimit : 1; /* incomplete array type */ + u_int i_namedmem : 1; /* has c9x named members */ + sym_t *i_mem; /* next structure member */ + int i_remaining; /* # of remaining elements */ + struct istk *i_next; /* previous level */ +} istk_t; + +typedef struct namlist { + const char *n_name; + struct namlist *n_prev; + struct namlist *n_next; +} namlist_t; + + /* * initerr is set as soon as a fatal error occurred in an initialisation. * The effect is that the rest of the initialisation is ignored (parsed @@ -59,12 +81,6 @@ sym_t *initsym; /* Points to the top element of the initialisation stack. */ istk_t *initstk; -typedef struct namlist { - const char *n_name; - struct namlist *n_prev; - struct namlist *n_next; -} namlist_t; - /* Points to a c9x named member; */ namlist_t *namedmem = NULL; Index: src/usr.bin/xlint/lint1/lint1.h diff -u src/usr.bin/xlint/lint1/lint1.h:1.45 src/usr.bin/xlint/lint1/lint1.h:1.46 --- src/usr.bin/xlint/lint1/lint1.h:1.45 Wed Dec 30 11:39:55 2020 +++ src/usr.bin/xlint/lint1/lint1.h Fri Jan 1 19:15:58 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: lint1.h,v 1.45 2020/12/30 11:39:55 rillig Exp $ */ +/* $NetBSD: lint1.h,v 1.46 2021/01/01 19:15:58 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -355,20 +355,6 @@ typedef struct dinfo { } dinfo_t; /* - * Type of stack which is used for initialisation of aggregate types. - */ -typedef struct istk { - type_t *i_type; /* type of initialisation */ - type_t *i_subt; /* type of next level */ - u_int i_brace : 1; /* need } for pop */ - u_int i_nolimit : 1; /* incomplete array type */ - u_int i_namedmem : 1; /* has c9x named members */ - sym_t *i_mem; /* next structure member */ - int i_remaining; /* # of remaining elements */ - struct istk *i_next; /* previous level */ -} istk_t; - -/* * Used to collect information about pointers and qualifiers in * declarators. */