[Midnightbsd-cvs] src [11381] trunk/bin/mined/mined2.c: use static vars
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Jul 6 20:14:18 EDT 2018
Revision: 11381
http://svnweb.midnightbsd.org/src/?rev=11381
Author: laffer1
Date: 2018-07-06 20:14:17 -0400 (Fri, 06 Jul 2018)
Log Message:
-----------
use static vars
Modified Paths:
--------------
trunk/bin/mined/mined2.c
Modified: trunk/bin/mined/mined2.c
===================================================================
--- trunk/bin/mined/mined2.c 2018-07-06 23:35:49 UTC (rev 11380)
+++ trunk/bin/mined/mined2.c 2018-07-07 00:14:17 UTC (rev 11381)
@@ -44,7 +44,7 @@
* ======================================================================== */
#include <sys/param.h>
-__MBSDID("$MidnightBSD: src/bin/mined/mined2.c,v 1.1 2008/08/17 03:26:36 laffer1 Exp $");
+__MBSDID("$MidnightBSD$");
#include "mined.h"
#include <signal.h>
@@ -780,9 +780,9 @@
* Yank Commands *
* ======================================================================== */
-LINE *mark_line; /* For marking position. */
-char *mark_text;
-int lines_saved; /* Nr of lines in buffer */
+static LINE *mark_line; /* For marking position. */
+static char *mark_text;
+static int lines_saved; /* Nr of lines in buffer */
/*
* PT() inserts the buffer at the current location.
@@ -1171,7 +1171,7 @@
* that expression.
*/
-char typed_expression[LINE_LEN]; /* Holds previous expr. */
+static char typed_expression[LINE_LEN]; /* Holds previous expr. */
/*
* SF searches forward for an expression.
@@ -1458,7 +1458,7 @@
#define previous(ptr) (*((ptr) - 1))
/* Buffer to store outcome of compilation */
-int exp_buffer[BLOCK_SIZE];
+static int exp_buffer[BLOCK_SIZE];
/* Errors often used */
static const char *too_long = "Regular expression too long";
More information about the Midnightbsd-cvs
mailing list