1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-11-10 14:36:13 -05:00

Move rdonly() in scope of line which is the first user module in the dependency list.

This commit is contained in:
Renaud 2015-02-13 11:54:17 +08:00
parent f8df147015
commit 6021a22b60
5 changed files with 44 additions and 46 deletions

View File

@ -126,72 +126,72 @@ depend: ${SRC}
# DO NOT DELETE THIS LINE -- make depend uses it # DO NOT DELETE THIS LINE -- make depend uses it
basic.o: basic.c basic.h buffer.h crypt.h line.h utf8.h estruct.h input.h \ basic.o: basic.c basic.h buffer.h crypt.h line.h retcode.h utf8.h \
bind.h log.h retcode.h random.h terminal.h defines.h window.h estruct.h input.h bind.h log.h random.h terminal.h defines.h window.h
bind.o: bind.c bind.h estruct.h bindable.h buffer.h crypt.h line.h utf8.h \ bind.o: bind.c bind.h estruct.h bindable.h buffer.h crypt.h line.h \
display.h ebind.h exec.h retcode.h file.h flook.h input.h names.h \ retcode.h utf8.h display.h ebind.h exec.h file.h flook.h input.h names.h \
window.h defines.h window.h defines.h
bindable.o: bindable.c bindable.h defines.h buffer.h crypt.h line.h \ bindable.o: bindable.c bindable.h defines.h buffer.h crypt.h line.h \
utf8.h display.h estruct.h file.h retcode.h input.h bind.h log.h lock.h \ retcode.h utf8.h display.h estruct.h file.h input.h bind.h log.h lock.h \
terminal.h terminal.h
buffer.o: buffer.c buffer.h crypt.h line.h utf8.h defines.h display.h \ buffer.o: buffer.c buffer.h crypt.h line.h retcode.h utf8.h defines.h \
estruct.h file.h retcode.h input.h bind.h window.h display.h estruct.h file.h input.h bind.h window.h
crypt.o: crypt.c crypt.h crypt.o: crypt.c crypt.h
display.o: display.c display.h estruct.h buffer.h crypt.h line.h utf8.h \ display.o: display.c display.h estruct.h buffer.h crypt.h line.h \
input.h bind.h termio.h terminal.h defines.h retcode.h version.h \ retcode.h utf8.h input.h bind.h termio.h terminal.h defines.h version.h \
wrapper.h window.h wrapper.h window.h
ebind.o: ebind.c ebind.h basic.h bind.h estruct.h bindable.h buffer.h \ ebind.o: ebind.c ebind.h basic.h bind.h estruct.h bindable.h buffer.h \
crypt.h line.h utf8.h eval.h exec.h retcode.h file.h isearch.h random.h \ crypt.h line.h retcode.h utf8.h eval.h exec.h file.h isearch.h random.h \
region.h search.h spawn.h window.h defines.h word.h region.h search.h spawn.h window.h defines.h word.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 retcode.h \
display.h estruct.h exec.h retcode.h execute.h flook.h input.h random.h \ utf8.h display.h estruct.h exec.h execute.h flook.h input.h random.h \
search.h terminal.h defines.h termio.h version.h window.h search.h terminal.h defines.h termio.h version.h window.h
exec.o: exec.c exec.h retcode.h buffer.h crypt.h line.h utf8.h bind.h \ exec.o: exec.c exec.h retcode.h buffer.h crypt.h line.h utf8.h bind.h \
display.h estruct.h eval.h file.h flook.h input.h random.h window.h \ display.h estruct.h eval.h file.h flook.h input.h random.h window.h \
defines.h defines.h
execute.o: execute.c execute.h estruct.h bind.h random.h display.h file.h \ execute.o: execute.c execute.h estruct.h bind.h random.h display.h file.h \
buffer.h crypt.h line.h utf8.h retcode.h log.h window.h defines.h buffer.h crypt.h line.h retcode.h utf8.h log.h window.h defines.h
file.o: file.c file.h buffer.h crypt.h line.h utf8.h retcode.h defines.h \ file.o: file.c file.h buffer.h crypt.h line.h retcode.h utf8.h defines.h \
estruct.h execute.h fileio.h input.h bind.h lock.h log.h window.h estruct.h execute.h fileio.h input.h bind.h lock.h log.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
input.o: input.c input.h bind.h estruct.h bindable.h display.h exec.h \ input.o: input.c input.h bind.h estruct.h bindable.h display.h exec.h \
retcode.h names.h terminal.h defines.h utf8.h wrapper.h retcode.h names.h terminal.h defines.h utf8.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 retcode.h \
display.h estruct.h exec.h retcode.h input.h bind.h search.h terminal.h \ utf8.h display.h estruct.h exec.h input.h bind.h search.h terminal.h \
defines.h window.h defines.h window.h
line.o: line.c line.h utf8.h buffer.h crypt.h estruct.h log.h retcode.h \ line.o: line.c line.h retcode.h utf8.h buffer.h crypt.h estruct.h log.h \
window.h defines.h window.h defines.h
lock.o: lock.c estruct.h lock.h lock.o: lock.c estruct.h lock.h
log.o: log.c log.h retcode.h log.o: log.c log.h
main.o: main.c estruct.h basic.h bind.h bindable.h buffer.h crypt.h \ main.o: main.c estruct.h basic.h bind.h bindable.h buffer.h crypt.h \
line.h utf8.h display.h eval.h execute.h file.h retcode.h input.h lock.h \ line.h retcode.h utf8.h display.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 log.h random.h search.h terminal.h defines.h termio.h version.h window.h
mingw32.o: mingw32.c mingw32.o: mingw32.c
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 estruct.h eval.h exec.h retcode.h file.h \ line.h retcode.h utf8.h display.h estruct.h eval.h exec.h file.h \
isearch.h region.h random.h search.h spawn.h window.h defines.h word.h isearch.h region.h random.h search.h spawn.h window.h defines.h word.h
pklock.o: pklock.c estruct.h pklock.h pklock.o: pklock.c estruct.h pklock.h
posix.o: posix.c posix.o: posix.c
random.o: random.c random.h basic.h buffer.h crypt.h line.h utf8.h \ random.o: random.c random.h basic.h buffer.h crypt.h line.h retcode.h \
display.h estruct.h execute.h input.h bind.h log.h retcode.h search.h \ utf8.h display.h estruct.h execute.h input.h bind.h log.h search.h \
terminal.h defines.h window.h terminal.h defines.h window.h
region.o: region.c region.h line.h utf8.h buffer.h crypt.h estruct.h \ region.o: region.c region.h line.h retcode.h utf8.h buffer.h crypt.h \
log.h retcode.h random.h window.h defines.h estruct.h log.h random.h window.h defines.h
search.o: search.c search.h line.h utf8.h basic.h buffer.h crypt.h \ search.o: search.c search.h line.h retcode.h utf8.h basic.h buffer.h \
display.h estruct.h input.h bind.h log.h retcode.h terminal.h defines.h \ crypt.h display.h estruct.h input.h bind.h log.h terminal.h defines.h \
window.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 retcode.h \
display.h estruct.h exec.h retcode.h file.h flook.h input.h bind.h log.h \ utf8.h display.h estruct.h exec.h file.h flook.h input.h bind.h log.h \
terminal.h window.h terminal.h window.h
tcap.o: tcap.c terminal.h defines.h retcode.h display.h estruct.h \ tcap.o: tcap.c terminal.h defines.h retcode.h display.h estruct.h \
termio.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
window.o: window.c window.h defines.h buffer.h crypt.h line.h utf8.h \ window.o: window.c window.h defines.h buffer.h crypt.h line.h retcode.h \
basic.h display.h estruct.h execute.h terminal.h retcode.h wrapper.h utf8.h basic.h display.h estruct.h execute.h terminal.h wrapper.h
word.o: word.c word.h basic.h buffer.h crypt.h line.h utf8.h estruct.h \ word.o: word.c word.h basic.h buffer.h crypt.h line.h retcode.h utf8.h \
log.h retcode.h random.h region.h window.h defines.h estruct.h log.h random.h region.h window.h defines.h
wrapper.o: wrapper.c wrapper.h wrapper.o: wrapper.c wrapper.h
wscreen.o: wscreen.c wscreen.o: wscreen.c

9
line.c
View File

@ -832,3 +832,12 @@ int yank(int f, int n)
} }
return TRUE; return TRUE;
} }
/*
* tell the user that this command is illegal while we are in
* VIEW (read-only) mode
*/
boolean rdonly( void) {
writefmt( "%B(Key illegal in VIEW mode)") ;
return FALSE ;
}

3
line.h
View File

@ -1,6 +1,7 @@
#ifndef LINE_H_ #ifndef LINE_H_
#define LINE_H_ #define LINE_H_
#include "retcode.h"
#include "utf8.h" #include "utf8.h"
#define NLINE 256 /* # of bytes, input line */ #define NLINE 256 /* # of bytes, input line */
@ -50,4 +51,6 @@ int kinsert( int c) ;
int yank( int f, int n) ; int yank( int f, int n) ;
struct line *lalloc( int) ; /* Allocate a line. */ struct line *lalloc( int) ; /* Allocate a line. */
boolean rdonly( void) ; /* Read Only error message */
#endif /* LINE_H_ */ #endif /* LINE_H_ */

10
log.c
View File

@ -8,13 +8,3 @@ void (*writefmt)( const char *, ...) = logdump ;
void writestr( const char *str) { void writestr( const char *str) {
writefmt( "%s", str) ; writefmt( "%s", str) ;
} }
/*
* tell the user that this command is illegal while we are in
* VIEW (read-only) mode
*/
boolean rdonly( void) {
writefmt( "%B(Key illegal in VIEW mode)") ;
return FALSE ;
}

4
log.h
View File

@ -1,7 +1,3 @@
#include "retcode.h"
extern void (*writefmt)( const char *, ...) ; extern void (*writefmt)( const char *, ...) ;
void writestr( const char *str) ; void writestr( const char *str) ;
boolean rdonly( void) ;