Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: un-export struct istk



details:   https://anonhg.NetBSD.org/src/rev/576a50daa83c
branches:  trunk
changeset: 979573:576a50daa83c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Jan 01 19:15:58 2021 +0000

description:
lint: un-export struct istk

diffstat:

 usr.bin/xlint/lint1/init.c  |  32 ++++++++++++++++++++++++--------
 usr.bin/xlint/lint1/lint1.h |  16 +---------------
 2 files changed, 25 insertions(+), 23 deletions(-)

diffs (90 lines):

diff -r 502189306e2f -r 576a50daa83c usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c        Fri Jan 01 19:11:19 2021 +0000
+++ b/usr.bin/xlint/lint1/init.c        Fri Jan 01 19:15:58 2021 +0000
@@ -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 @@
 
 #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 @@
 /* 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;
 
diff -r 502189306e2f -r 576a50daa83c usr.bin/xlint/lint1/lint1.h
--- a/usr.bin/xlint/lint1/lint1.h       Fri Jan 01 19:11:19 2021 +0000
+++ b/usr.bin/xlint/lint1/lint1.h       Fri Jan 01 19:15:58 2021 +0000
@@ -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 @@
 } 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.
  */



Home | Main Index | Thread Index | Old Index