Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh Delete a no-longer-used #define that referred to a st...
details: https://anonhg.NetBSD.org/src/rev/9384cf964bd4
branches: trunk
changeset: 448920:9384cf964bd4
user: kre <kre%NetBSD.org@localhost>
date: Wed Feb 13 21:40:50 2019 +0000
description:
Delete a no-longer-used #define that referred to a struct field that
no longer exists. Also correct a couple of typos in comments. NFC.
diffstat:
bin/sh/parser.h | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r aee9bf6846ca -r 9384cf964bd4 bin/sh/parser.h
--- a/bin/sh/parser.h Wed Feb 13 20:48:56 2019 +0000
+++ b/bin/sh/parser.h Wed Feb 13 21:40:50 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parser.h,v 1.27 2018/12/11 13:31:20 kre Exp $ */
+/* $NetBSD: parser.h,v 1.28 2019/02/13 21:40:50 kre Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -94,7 +94,7 @@
int ps_checkkwd; /* word expansion flags, see below */
struct nodelist *ps_backquotelist; /* list of cmdsubs to process */
union node *ps_redirnode; /* node for current redirect */
- struct HereDoc *ps_heredoc; /* current heredoc << beign parsed */
+ struct HereDoc *ps_heredoc; /* current heredoc << being parsed */
int ps_quoteflag; /* set if (part) of token was quoted */
int ps_startlinno; /* line # where last token started */
int ps_funclinno; /* line # of the current function */
@@ -104,7 +104,7 @@
/*
* The parser references the elements of struct parse_state quite
* frequently - they used to be simple globals, so one memory ref
- * per access, adding an indirect through global ptr would not be
+ * per access, adding an indirect through a global ptr would not be
* nice. The following gross hack allows most of that cost to be
* avoided, by allowing the compiler to understand that the global
* pointer is in fact constant in any function, and so its value can
@@ -135,7 +135,6 @@
#define tokpushback (current_parser->ps_tokpushback)
#define checkkwd (current_parser->ps_checkkwd)
-#define noalias (current_parser->ps_noalias)
#define heredoclist (current_parser->ps_heredoclist)
#define parsebackquote (current_parser->ps_parsebackquote)
#define doprompt (current_parser->ps_doprompt)
Home |
Main Index |
Thread Index |
Old Index