mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 07:16:23 -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 \
|
||||
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
|
||||
exec.o: exec.c exec.h buffer.h crypt.h line.h utf8.h bind.h display.h \
|
||||
estruct.h retcode.h globals.h eval.h file.h flook.h input.h window.h \
|
||||
exec.o: exec.c exec.h retcode.h buffer.h crypt.h line.h utf8.h bind.h \
|
||||
display.h estruct.h globals.h eval.h file.h flook.h input.h window.h \
|
||||
defines.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 \
|
||||
@ -159,24 +159,24 @@ file.o: file.c file.h crypt.h retcode.h buffer.h line.h utf8.h defines.h \
|
||||
window.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
|
||||
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
|
||||
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
|
||||
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
|
||||
line.o: line.c line.h utf8.h buffer.h crypt.h estruct.h retcode.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 \
|
||||
bind.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 \
|
||||
display.h estruct.h retcode.h globals.h eval.h execute.h file.h input.h \
|
||||
lock.h log.h random.h search.h terminal.h defines.h termio.h version.h \
|
||||
window.h
|
||||
main.o: main.c estruct.h retcode.h basic.h bind.h bindable.h buffer.h \
|
||||
crypt.h line.h utf8.h display.h globals.h eval.h execute.h file.h \
|
||||
input.h lock.h log.h random.h search.h terminal.h defines.h termio.h \
|
||||
version.h window.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
|
||||
pklock.o: pklock.c pklock.h estruct.h retcode.h globals.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 \
|
||||
defines.h window.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 \
|
||||
log.h terminal.h window.h
|
||||
tcap.o: tcap.c terminal.h defines.h display.h estruct.h retcode.h \
|
||||
display.h estruct.h retcode.h exec.h file.h flook.h input.h bind.h log.h \
|
||||
terminal.h window.h
|
||||
tcap.o: tcap.c terminal.h defines.h retcode.h display.h estruct.h \
|
||||
globals.h termio.h
|
||||
termio.o: termio.c termio.h estruct.h retcode.h 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 */
|
||||
boolean clexec = FALSE ; /* command line execution flag */
|
||||
|
||||
|
||||
|
||||
/* Directive definitions */
|
||||
@ -138,7 +140,7 @@ int docmd(char *cline)
|
||||
int n; /* numeric repeat value */
|
||||
fn_t fnc; /* function to execute */
|
||||
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 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 savcle; /* buffer to store original clexec */
|
||||
boolean savcle ; /* buffer to store original clexec */
|
||||
int status;
|
||||
|
||||
savcle = clexec; /* save execution mode */
|
||||
|
5
exec.h
5
exec.h
@ -1,6 +1,9 @@
|
||||
#ifndef _EXEC_H_
|
||||
#define _EXEC_H_
|
||||
|
||||
#include "retcode.h"
|
||||
|
||||
|
||||
#define PROC 1 /* named procedures */
|
||||
|
||||
#if PROC
|
||||
@ -10,6 +13,8 @@ int execproc( int f, int n) ;
|
||||
|
||||
|
||||
extern char *execstr ; /* pointer to string to execute */
|
||||
extern boolean clexec ; /* command line execution flag */
|
||||
|
||||
|
||||
|
||||
int namedcmd( int f, int n) ;
|
||||
|
@ -2,15 +2,12 @@
|
||||
#include "globals.h"
|
||||
|
||||
#include "defines.h"
|
||||
#include "retcode.h"
|
||||
|
||||
/* initialized global definitions */
|
||||
|
||||
int fillcol = 72; /* Current fill column */
|
||||
|
||||
|
||||
int clexec = FALSE; /* command line execution flag */
|
||||
|
||||
int metac = CONTROL | '['; /* current meta character */
|
||||
int ctlxc = CONTROL | 'X'; /* current control X prefix char */
|
||||
int reptc = CONTROL | 'U'; /* current universal repeat char */
|
||||
|
@ -7,9 +7,6 @@
|
||||
|
||||
extern int fillcol; /* Fill column */
|
||||
|
||||
|
||||
extern int clexec; /* command line execution flag */
|
||||
|
||||
extern int metac; /* current meta character */
|
||||
extern int ctlxc; /* current control X prefix char */
|
||||
extern int reptc; /* current universal repeat char */
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "display.h"
|
||||
#include "estruct.h"
|
||||
#include "globals.h"
|
||||
#include "exec.h"
|
||||
#include "input.h"
|
||||
#include "line.h"
|
||||
#include "search.h"
|
||||
|
Loading…
Reference in New Issue
Block a user