mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-19 07:46:24 -05:00
Move clexec from globals to exec.
This commit is contained in:
parent
f03b7c97e3
commit
0fdefdba7c
24
Makefile
24
Makefile
@ -148,8 +148,8 @@ ebind.o: ebind.c ebind.h basic.h bind.h estruct.h retcode.h globals.h \
|
|||||||
eval.o: eval.c eval.h basic.h bind.h buffer.h crypt.h line.h utf8.h \
|
eval.o: eval.c eval.h basic.h bind.h buffer.h crypt.h line.h utf8.h \
|
||||||
display.h estruct.h retcode.h globals.h exec.h execute.h flook.h input.h \
|
display.h estruct.h retcode.h globals.h exec.h execute.h flook.h input.h \
|
||||||
random.h search.h terminal.h defines.h termio.h version.h window.h
|
random.h search.h terminal.h defines.h termio.h version.h window.h
|
||||||
exec.o: exec.c exec.h buffer.h crypt.h line.h utf8.h bind.h display.h \
|
exec.o: exec.c exec.h retcode.h buffer.h crypt.h line.h utf8.h bind.h \
|
||||||
estruct.h retcode.h globals.h eval.h file.h flook.h input.h window.h \
|
display.h estruct.h globals.h eval.h file.h flook.h input.h window.h \
|
||||||
defines.h
|
defines.h
|
||||||
execute.o: execute.c execute.h estruct.h retcode.h globals.h bind.h \
|
execute.o: execute.c execute.h estruct.h retcode.h globals.h bind.h \
|
||||||
random.h display.h file.h crypt.h buffer.h line.h utf8.h terminal.h \
|
random.h display.h file.h crypt.h buffer.h line.h utf8.h terminal.h \
|
||||||
@ -159,24 +159,24 @@ file.o: file.c file.h crypt.h retcode.h buffer.h line.h utf8.h defines.h \
|
|||||||
window.h
|
window.h
|
||||||
fileio.o: fileio.c fileio.h crypt.h retcode.h defines.h
|
fileio.o: fileio.c fileio.h crypt.h retcode.h defines.h
|
||||||
flook.o: flook.c flook.h retcode.h defines.h fileio.h crypt.h
|
flook.o: flook.c flook.h retcode.h defines.h fileio.h crypt.h
|
||||||
globals.o: globals.c globals.h defines.h retcode.h
|
globals.o: globals.c globals.h defines.h
|
||||||
ibmpc.o: ibmpc.c estruct.h retcode.h globals.h
|
ibmpc.o: ibmpc.c estruct.h retcode.h globals.h
|
||||||
input.o: input.c input.h bind.h estruct.h retcode.h globals.h bindable.h \
|
input.o: input.c input.h bind.h estruct.h retcode.h globals.h bindable.h \
|
||||||
display.h exec.h names.h terminal.h defines.h wrapper.h
|
display.h exec.h names.h terminal.h defines.h wrapper.h
|
||||||
isearch.o: isearch.c isearch.h basic.h buffer.h crypt.h line.h utf8.h \
|
isearch.o: isearch.c isearch.h basic.h buffer.h crypt.h line.h utf8.h \
|
||||||
display.h estruct.h retcode.h globals.h input.h bind.h search.h \
|
display.h estruct.h retcode.h globals.h exec.h input.h bind.h search.h \
|
||||||
terminal.h defines.h window.h
|
terminal.h defines.h window.h
|
||||||
line.o: line.c line.h utf8.h buffer.h crypt.h estruct.h retcode.h \
|
line.o: line.c line.h utf8.h buffer.h crypt.h estruct.h retcode.h \
|
||||||
globals.h log.h window.h defines.h
|
globals.h log.h window.h defines.h
|
||||||
lock.o: lock.c lock.h estruct.h retcode.h display.h globals.h input.h \
|
lock.o: lock.c lock.h estruct.h retcode.h display.h globals.h input.h \
|
||||||
bind.h
|
bind.h
|
||||||
log.o: log.c log.h retcode.h
|
log.o: log.c log.h retcode.h
|
||||||
main.o: main.c basic.h bind.h bindable.h buffer.h crypt.h line.h utf8.h \
|
main.o: main.c estruct.h retcode.h basic.h bind.h bindable.h buffer.h \
|
||||||
display.h estruct.h retcode.h globals.h eval.h execute.h file.h input.h \
|
crypt.h line.h utf8.h display.h globals.h eval.h execute.h file.h \
|
||||||
lock.h log.h random.h search.h terminal.h defines.h termio.h version.h \
|
input.h lock.h log.h random.h search.h terminal.h defines.h termio.h \
|
||||||
window.h
|
version.h window.h
|
||||||
names.o: names.c names.h basic.h bind.h bindable.h buffer.h crypt.h \
|
names.o: names.c names.h basic.h bind.h bindable.h buffer.h crypt.h \
|
||||||
line.h utf8.h display.h eval.h exec.h file.h retcode.h isearch.h \
|
line.h utf8.h display.h eval.h exec.h retcode.h file.h isearch.h \
|
||||||
region.h random.h search.h spawn.h window.h defines.h word.h
|
region.h random.h search.h spawn.h window.h defines.h word.h
|
||||||
pklock.o: pklock.c pklock.h estruct.h retcode.h globals.h
|
pklock.o: pklock.c pklock.h estruct.h retcode.h globals.h
|
||||||
posix.o: posix.c termio.h
|
posix.o: posix.c termio.h
|
||||||
@ -189,9 +189,9 @@ search.o: search.c search.h line.h utf8.h basic.h buffer.h crypt.h \
|
|||||||
display.h estruct.h retcode.h globals.h input.h bind.h log.h terminal.h \
|
display.h estruct.h retcode.h globals.h input.h bind.h log.h terminal.h \
|
||||||
defines.h window.h
|
defines.h window.h
|
||||||
spawn.o: spawn.c spawn.h defines.h buffer.h crypt.h line.h utf8.h \
|
spawn.o: spawn.c spawn.h defines.h buffer.h crypt.h line.h utf8.h \
|
||||||
display.h estruct.h retcode.h globals.h file.h flook.h input.h bind.h \
|
display.h estruct.h retcode.h exec.h file.h flook.h input.h bind.h log.h \
|
||||||
log.h terminal.h window.h
|
terminal.h window.h
|
||||||
tcap.o: tcap.c terminal.h defines.h display.h estruct.h retcode.h \
|
tcap.o: tcap.c terminal.h defines.h retcode.h display.h estruct.h \
|
||||||
globals.h termio.h
|
globals.h termio.h
|
||||||
termio.o: termio.c termio.h estruct.h retcode.h utf8.h
|
termio.o: termio.c termio.h estruct.h retcode.h utf8.h
|
||||||
utf8.o: utf8.c utf8.h
|
utf8.o: utf8.c utf8.h
|
||||||
|
6
exec.c
6
exec.c
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
|
|
||||||
char *execstr = NULL ; /* pointer to string to execute */
|
char *execstr = NULL ; /* pointer to string to execute */
|
||||||
|
boolean clexec = FALSE ; /* command line execution flag */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Directive definitions */
|
/* Directive definitions */
|
||||||
@ -138,7 +140,7 @@ int docmd(char *cline)
|
|||||||
int n; /* numeric repeat value */
|
int n; /* numeric repeat value */
|
||||||
fn_t fnc; /* function to execute */
|
fn_t fnc; /* function to execute */
|
||||||
int status; /* return status of function */
|
int status; /* return status of function */
|
||||||
int oldcle; /* old contents of clexec flag */
|
boolean oldcle ; /* old contents of clexec flag */
|
||||||
char *oldestr; /* original exec string */
|
char *oldestr; /* original exec string */
|
||||||
char tkn[NSTRING]; /* next token off of command line */
|
char tkn[NSTRING]; /* next token off of command line */
|
||||||
|
|
||||||
@ -272,7 +274,7 @@ char *token(char *src, char *tok, int size)
|
|||||||
*/
|
*/
|
||||||
int macarg(char *tok)
|
int macarg(char *tok)
|
||||||
{
|
{
|
||||||
int savcle; /* buffer to store original clexec */
|
boolean savcle ; /* buffer to store original clexec */
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
savcle = clexec; /* save execution mode */
|
savcle = clexec; /* save execution mode */
|
||||||
|
5
exec.h
5
exec.h
@ -1,6 +1,9 @@
|
|||||||
#ifndef _EXEC_H_
|
#ifndef _EXEC_H_
|
||||||
#define _EXEC_H_
|
#define _EXEC_H_
|
||||||
|
|
||||||
|
#include "retcode.h"
|
||||||
|
|
||||||
|
|
||||||
#define PROC 1 /* named procedures */
|
#define PROC 1 /* named procedures */
|
||||||
|
|
||||||
#if PROC
|
#if PROC
|
||||||
@ -10,6 +13,8 @@ int execproc( int f, int n) ;
|
|||||||
|
|
||||||
|
|
||||||
extern char *execstr ; /* pointer to string to execute */
|
extern char *execstr ; /* pointer to string to execute */
|
||||||
|
extern boolean clexec ; /* command line execution flag */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int namedcmd( int f, int n) ;
|
int namedcmd( int f, int n) ;
|
||||||
|
@ -2,15 +2,12 @@
|
|||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
#include "retcode.h"
|
|
||||||
|
|
||||||
/* initialized global definitions */
|
/* initialized global definitions */
|
||||||
|
|
||||||
int fillcol = 72; /* Current fill column */
|
int fillcol = 72; /* Current fill column */
|
||||||
|
|
||||||
|
|
||||||
int clexec = FALSE; /* command line execution flag */
|
|
||||||
|
|
||||||
int metac = CONTROL | '['; /* current meta character */
|
int metac = CONTROL | '['; /* current meta character */
|
||||||
int ctlxc = CONTROL | 'X'; /* current control X prefix char */
|
int ctlxc = CONTROL | 'X'; /* current control X prefix char */
|
||||||
int reptc = CONTROL | 'U'; /* current universal repeat char */
|
int reptc = CONTROL | 'U'; /* current universal repeat char */
|
||||||
|
@ -7,9 +7,6 @@
|
|||||||
|
|
||||||
extern int fillcol; /* Fill column */
|
extern int fillcol; /* Fill column */
|
||||||
|
|
||||||
|
|
||||||
extern int clexec; /* command line execution flag */
|
|
||||||
|
|
||||||
extern int metac; /* current meta character */
|
extern int metac; /* current meta character */
|
||||||
extern int ctlxc; /* current control X prefix char */
|
extern int ctlxc; /* current control X prefix char */
|
||||||
extern int reptc; /* current universal repeat char */
|
extern int reptc; /* current universal repeat char */
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#include "display.h"
|
#include "display.h"
|
||||||
#include "estruct.h"
|
#include "estruct.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
#include "exec.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "line.h"
|
#include "line.h"
|
||||||
#include "search.h"
|
#include "search.h"
|
||||||
|
2
spawn.c
2
spawn.c
@ -18,7 +18,7 @@
|
|||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
#include "display.h"
|
#include "display.h"
|
||||||
#include "estruct.h"
|
#include "estruct.h"
|
||||||
#include "globals.h"
|
#include "exec.h"
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
#include "flook.h"
|
#include "flook.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user