mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 23:36:23 -05:00
Move rdonly and reterr from main to display to avoid dependencies to main.
This commit is contained in:
parent
de787262d3
commit
a96f1b5f85
25
Makefile
25
Makefile
@ -1,4 +1,4 @@
|
|||||||
# makefile for emacs, updated Sat Jun 1 12:46:04 CST 2013
|
# makefile for emacs, updated Mon, Jun 03, 2013 12:05:22 PM
|
||||||
|
|
||||||
SRC=ansi.c basic.c bind.c buffer.c crypt.c display.c ebind.c eval.c exec.c file.c fileio.c globals.c ibmpc.c input.c isearch.c line.c lock.c main.c names.c pklock.c posix.c random.c region.c search.c spawn.c tcap.c termio.c utf8.c vmsvt.c vt52.c window.c word.c wrapper.c
|
SRC=ansi.c basic.c bind.c buffer.c crypt.c display.c ebind.c eval.c exec.c file.c fileio.c globals.c ibmpc.c input.c isearch.c line.c lock.c main.c names.c pklock.c posix.c random.c region.c search.c spawn.c tcap.c termio.c utf8.c vmsvt.c vt52.c window.c word.c wrapper.c
|
||||||
OBJ=ansi.o basic.o bind.o buffer.o crypt.o display.o ebind.o eval.o exec.o file.o fileio.o globals.o ibmpc.o input.o isearch.o line.o lock.o main.o names.o pklock.o posix.o random.o region.o search.o spawn.o tcap.o termio.o utf8.o vmsvt.o vt52.o window.o word.o wrapper.o
|
OBJ=ansi.o basic.o bind.o buffer.o crypt.o display.o ebind.o eval.o exec.o file.o fileio.o globals.o ibmpc.o input.o isearch.o line.o lock.o main.o names.o pklock.o posix.o random.o region.o search.o spawn.o tcap.o termio.o utf8.o vmsvt.o vt52.o window.o word.o wrapper.o
|
||||||
@ -134,8 +134,8 @@ crypt.o: crypt.c crypt.h display.h estruct.h line.h utf8.h edef.h input.h
|
|||||||
display.o: display.c display.h estruct.h line.h utf8.h edef.h termio.h \
|
display.o: display.c display.h estruct.h line.h utf8.h edef.h termio.h \
|
||||||
version.h wrapper.h window.h
|
version.h wrapper.h window.h
|
||||||
ebind.o: ebind.c ebind.h basic.h bind.h edef.h estruct.h line.h utf8.h \
|
ebind.o: ebind.c ebind.h basic.h bind.h edef.h estruct.h line.h utf8.h \
|
||||||
buffer.h crypt.h eval.h exec.h file.h isearch.h main.h random.h region.h \
|
buffer.h crypt.h eval.h exec.h file.h isearch.h main.h random.h \
|
||||||
search.h spawn.h window.h word.h
|
region.h search.h spawn.h window.h word.h
|
||||||
eval.o: eval.c eval.h estruct.h line.h utf8.h basic.h bind.h edef.h \
|
eval.o: eval.c eval.h estruct.h line.h utf8.h basic.h bind.h edef.h \
|
||||||
buffer.h display.h exec.h fileio.h input.h random.h search.h termio.h \
|
buffer.h display.h exec.h fileio.h input.h random.h search.h termio.h \
|
||||||
version.h window.h
|
version.h window.h
|
||||||
@ -151,10 +151,8 @@ input.o: input.c input.h edef.h estruct.h line.h utf8.h bind.h display.h \
|
|||||||
exec.h main.h names.h wrapper.h
|
exec.h main.h names.h wrapper.h
|
||||||
isearch.o: isearch.c isearch.h basic.h display.h estruct.h line.h utf8.h \
|
isearch.o: isearch.c isearch.h basic.h display.h estruct.h line.h utf8.h \
|
||||||
edef.h input.h search.h
|
edef.h input.h search.h
|
||||||
line.o: line.c line.h utf8.h basic.h display.h estruct.h edef.h main.h \
|
line.o: line.c line.h utf8.h basic.h display.h estruct.h edef.h random.h
|
||||||
random.h
|
lock.o: lock.c lock.h estruct.h line.h utf8.h display.h edef.h input.h
|
||||||
lock.o: lock.c lock.h estruct.h line.h utf8.h display.h edef.h input.h \
|
|
||||||
pklock.h
|
|
||||||
main.o: main.c main.h crypt.h display.h estruct.h line.h utf8.h edef.h \
|
main.o: main.c main.h crypt.h display.h estruct.h line.h utf8.h edef.h \
|
||||||
input.h termio.h version.h basic.h bind.h buffer.h eval.h file.h lock.h \
|
input.h termio.h version.h basic.h bind.h buffer.h eval.h file.h lock.h \
|
||||||
random.h search.h
|
random.h search.h
|
||||||
@ -162,24 +160,23 @@ names.o: names.c names.h basic.h bind.h edef.h estruct.h line.h utf8.h \
|
|||||||
buffer.h display.h eval.h exec.h crypt.h file.h isearch.h main.h \
|
buffer.h display.h eval.h exec.h crypt.h file.h isearch.h main.h \
|
||||||
region.h random.h search.h spawn.h window.h word.h
|
region.h random.h search.h spawn.h window.h word.h
|
||||||
pklock.o: pklock.c pklock.h estruct.h line.h utf8.h edef.h
|
pklock.o: pklock.c pklock.h estruct.h line.h utf8.h edef.h
|
||||||
posix.o: posix.c termio.h estruct.h line.h utf8.h edef.h
|
posix.o: posix.c termio.h
|
||||||
random.o: random.c random.h basic.h display.h estruct.h line.h utf8.h \
|
random.o: random.c random.h basic.h display.h estruct.h line.h utf8.h \
|
||||||
edef.h input.h main.h search.h
|
edef.h input.h main.h search.h
|
||||||
region.o: region.c region.h estruct.h line.h utf8.h display.h edef.h \
|
region.o: region.c region.h estruct.h line.h utf8.h display.h edef.h
|
||||||
main.h
|
|
||||||
search.o: search.c search.h estruct.h line.h utf8.h basic.h display.h \
|
search.o: search.c search.h estruct.h line.h utf8.h basic.h display.h \
|
||||||
edef.h input.h main.h
|
edef.h input.h
|
||||||
spawn.o: spawn.c spawn.h buffer.h estruct.h line.h utf8.h display.h \
|
spawn.o: spawn.c spawn.h buffer.h estruct.h line.h utf8.h display.h \
|
||||||
edef.h file.h input.h main.h window.h
|
edef.h file.h input.h window.h
|
||||||
tcap.o: tcap.c display.h estruct.h line.h utf8.h edef.h termio.h
|
tcap.o: tcap.c display.h estruct.h line.h utf8.h edef.h termio.h
|
||||||
termio.o: termio.c termio.h
|
termio.o: termio.c termio.h estruct.h line.h utf8.h edef.h
|
||||||
utf8.o: utf8.c utf8.h
|
utf8.o: utf8.c utf8.h
|
||||||
vmsvt.o: vmsvt.c estruct.h line.h utf8.h edef.h
|
vmsvt.o: vmsvt.c estruct.h line.h utf8.h edef.h
|
||||||
vt52.o: vt52.c estruct.h line.h utf8.h edef.h
|
vt52.o: vt52.c estruct.h line.h utf8.h edef.h
|
||||||
window.o: window.c window.h estruct.h line.h utf8.h basic.h display.h \
|
window.o: window.c window.h estruct.h line.h utf8.h basic.h display.h \
|
||||||
edef.h main.h wrapper.h
|
edef.h main.h wrapper.h
|
||||||
word.o: word.c word.h basic.h display.h estruct.h line.h utf8.h edef.h \
|
word.o: word.c word.h basic.h display.h estruct.h line.h utf8.h edef.h \
|
||||||
main.h random.h region.h
|
random.h region.h
|
||||||
wrapper.o: wrapper.c wrapper.h
|
wrapper.o: wrapper.c wrapper.h
|
||||||
|
|
||||||
# DEPENDENCIES MUST END AT END OF FILE
|
# DEPENDENCIES MUST END AT END OF FILE
|
||||||
|
19
display.c
19
display.c
@ -1550,3 +1550,22 @@ static int newscreensize(int h, int w)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* tell the user that this command is illegal while we are in
|
||||||
|
* VIEW (read-only) mode
|
||||||
|
*/
|
||||||
|
int rdonly(void)
|
||||||
|
{
|
||||||
|
TTbeep();
|
||||||
|
mlwrite("(Key illegal in VIEW mode)");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
int resterr(void)
|
||||||
|
{
|
||||||
|
TTbeep();
|
||||||
|
mlwrite("(That command is RESTRICTED)");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -20,4 +20,7 @@ void mlputs( char *s) ;
|
|||||||
void getscreensize( int *widthp, int *heightp) ;
|
void getscreensize( int *widthp, int *heightp) ;
|
||||||
void sizesignal( int signr) ;
|
void sizesignal( int signr) ;
|
||||||
|
|
||||||
|
int rdonly( void) ;
|
||||||
|
int resterr( void) ;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
1
line.c
1
line.c
@ -21,7 +21,6 @@
|
|||||||
#include "display.h"
|
#include "display.h"
|
||||||
#include "estruct.h"
|
#include "estruct.h"
|
||||||
#include "edef.h"
|
#include "edef.h"
|
||||||
#include "main.h"
|
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "utf8.h"
|
#include "utf8.h"
|
||||||
|
|
||||||
|
18
main.c
18
main.c
@ -720,24 +720,6 @@ int ctrlg(int f, int n)
|
|||||||
return ABORT;
|
return ABORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* tell the user that this command is illegal while we are in
|
|
||||||
* VIEW (read-only) mode
|
|
||||||
*/
|
|
||||||
int rdonly(void)
|
|
||||||
{
|
|
||||||
TTbeep();
|
|
||||||
mlwrite("(Key illegal in VIEW mode)");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
int resterr(void)
|
|
||||||
{
|
|
||||||
TTbeep();
|
|
||||||
mlwrite("(That command is RESTRICTED)");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* user function that does NOTHING */
|
/* user function that does NOTHING */
|
||||||
int nullproc(int f, int n)
|
int nullproc(int f, int n)
|
||||||
{
|
{
|
||||||
|
2
main.h
2
main.h
@ -8,8 +8,6 @@ int ctlxlp( int f, int n) ;
|
|||||||
int ctlxrp( int f, int n) ;
|
int ctlxrp( int f, int n) ;
|
||||||
int ctlxe( int f, int n) ;
|
int ctlxe( int f, int n) ;
|
||||||
int ctrlg( int f, int n) ;
|
int ctrlg( int f, int n) ;
|
||||||
int rdonly( void) ;
|
|
||||||
int resterr( void) ;
|
|
||||||
int nullproc( int f, int n) ;
|
int nullproc( int f, int n) ;
|
||||||
int metafn( int f, int n) ;
|
int metafn( int f, int n) ;
|
||||||
int cex( int f, int n) ;
|
int cex( int f, int n) ;
|
||||||
|
1
region.c
1
region.c
@ -16,7 +16,6 @@
|
|||||||
#include "estruct.h"
|
#include "estruct.h"
|
||||||
#include "edef.h"
|
#include "edef.h"
|
||||||
#include "line.h"
|
#include "line.h"
|
||||||
#include "main.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Kill the region. Ask "getregion"
|
* Kill the region. Ask "getregion"
|
||||||
|
1
search.c
1
search.c
@ -68,7 +68,6 @@
|
|||||||
#include "edef.h"
|
#include "edef.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "line.h"
|
#include "line.h"
|
||||||
#include "main.h"
|
|
||||||
|
|
||||||
#if defined(MAGIC)
|
#if defined(MAGIC)
|
||||||
/*
|
/*
|
||||||
|
1
spawn.c
1
spawn.c
@ -17,7 +17,6 @@
|
|||||||
#include "edef.h"
|
#include "edef.h"
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "main.h"
|
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
#if VMS
|
#if VMS
|
||||||
|
Loading…
Reference in New Issue
Block a user