1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-18 07:16:23 -05:00

Move fn_t type definition to bind.h.

Review globals.c imports.
This commit is contained in:
Renaud 2013-10-08 18:01:15 +08:00
parent d6e3df6ff3
commit bdeba62fcb
5 changed files with 21 additions and 21 deletions

View File

@ -128,19 +128,19 @@ depend: ${SRC}
ansi.o: ansi.c estruct.h retcode.h edef.h buffer.h crypt.h line.h utf8.h ansi.o: ansi.c estruct.h retcode.h edef.h buffer.h crypt.h line.h utf8.h
basic.o: basic.c basic.h buffer.h crypt.h line.h utf8.h display.h \ basic.o: basic.c basic.h buffer.h crypt.h line.h utf8.h display.h \
estruct.h retcode.h edef.h input.h random.h terminal.h defines.h \ estruct.h retcode.h edef.h input.h bind.h random.h terminal.h defines.h \
window.h window.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 edef.h estruct.h retcode.h file.h input.h lock.h \ utf8.h display.h edef.h estruct.h retcode.h file.h input.h bind.h lock.h \
terminal.h terminal.h
bind.o: bind.c bind.h edef.h buffer.h crypt.h line.h utf8.h estruct.h \ bind.o: bind.c bind.h edef.h buffer.h crypt.h line.h utf8.h estruct.h \
retcode.h bindable.h display.h ebind.h exec.h file.h flook.h input.h \ retcode.h bindable.h display.h ebind.h exec.h file.h flook.h input.h \
names.h window.h defines.h names.h window.h defines.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 utf8.h defines.h display.h \
edef.h estruct.h retcode.h file.h input.h window.h edef.h estruct.h retcode.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 buffer.h crypt.h line.h utf8.h estruct.h \ display.o: display.c display.h buffer.h crypt.h line.h utf8.h estruct.h \
retcode.h edef.h input.h termio.h terminal.h defines.h version.h \ retcode.h edef.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 edef.h buffer.h crypt.h line.h \ ebind.o: ebind.c ebind.h basic.h bind.h edef.h buffer.h crypt.h line.h \
utf8.h estruct.h retcode.h bindable.h eval.h exec.h file.h isearch.h \ utf8.h estruct.h retcode.h bindable.h eval.h exec.h file.h isearch.h \
@ -155,23 +155,23 @@ execute.o: execute.c execute.h edef.h buffer.h crypt.h line.h utf8.h \
estruct.h retcode.h bind.h random.h display.h file.h terminal.h \ estruct.h retcode.h bind.h random.h display.h file.h terminal.h \
defines.h window.h defines.h window.h
file.o: file.c file.h crypt.h retcode.h buffer.h line.h utf8.h defines.h \ file.o: file.c file.h crypt.h retcode.h buffer.h line.h utf8.h defines.h \
estruct.h edef.h execute.h fileio.h input.h lock.h log.h window.h estruct.h edef.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
globals.o: globals.c crypt.h defines.h edef.h buffer.h line.h utf8.h \ globals.o: globals.c defines.h edef.h buffer.h crypt.h line.h utf8.h \
estruct.h retcode.h estruct.h retcode.h
ibmpc.o: ibmpc.c estruct.h retcode.h edef.h buffer.h crypt.h line.h \ ibmpc.o: ibmpc.c estruct.h retcode.h edef.h buffer.h crypt.h line.h \
utf8.h utf8.h
input.o: input.c input.h edef.h buffer.h crypt.h line.h utf8.h estruct.h \ input.o: input.c input.h bind.h edef.h buffer.h crypt.h line.h utf8.h \
retcode.h bind.h bindable.h display.h exec.h names.h terminal.h \ estruct.h retcode.h bindable.h display.h exec.h names.h terminal.h \
defines.h wrapper.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 edef.h input.h search.h terminal.h \ display.h estruct.h retcode.h edef.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 edef.h estruct.h retcode.h \ line.o: line.c line.h utf8.h buffer.h crypt.h edef.h estruct.h retcode.h \
log.h window.h defines.h log.h window.h defines.h
lock.o: lock.c lock.h estruct.h retcode.h display.h edef.h buffer.h \ lock.o: lock.c lock.h estruct.h retcode.h display.h edef.h buffer.h \
crypt.h line.h utf8.h input.h crypt.h line.h utf8.h input.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 edef.h buffer.h crypt.h line.h utf8.h \ main.o: main.c basic.h bind.h edef.h buffer.h crypt.h line.h utf8.h \
estruct.h retcode.h bindable.h display.h eval.h execute.h file.h input.h \ estruct.h retcode.h bindable.h display.h eval.h execute.h file.h input.h \
@ -184,15 +184,15 @@ pklock.o: pklock.c pklock.h estruct.h retcode.h edef.h buffer.h crypt.h \
line.h utf8.h line.h utf8.h
posix.o: posix.c termio.h posix.o: posix.c termio.h
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 utf8.h \
display.h estruct.h retcode.h edef.h execute.h input.h log.h search.h \ display.h estruct.h retcode.h edef.h execute.h input.h bind.h log.h \
terminal.h defines.h window.h search.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 utf8.h buffer.h crypt.h estruct.h \
retcode.h edef.h log.h window.h defines.h retcode.h edef.h log.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 utf8.h basic.h buffer.h crypt.h \
display.h edef.h estruct.h retcode.h input.h log.h terminal.h defines.h \ display.h edef.h estruct.h retcode.h input.h bind.h log.h terminal.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 edef.h file.h flook.h input.h log.h \ display.h estruct.h retcode.h edef.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 display.h estruct.h retcode.h edef.h \ tcap.o: tcap.c terminal.h defines.h display.h estruct.h retcode.h edef.h \
buffer.h crypt.h line.h utf8.h termio.h buffer.h crypt.h line.h utf8.h termio.h
@ -202,7 +202,7 @@ vmsvt.o: vmsvt.c estruct.h retcode.h edef.h buffer.h crypt.h line.h \
utf8.h utf8.h
vt52.o: vt52.c estruct.h retcode.h edef.h buffer.h crypt.h line.h utf8.h vt52.o: vt52.c estruct.h retcode.h edef.h buffer.h crypt.h line.h 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 utf8.h \
basic.h display.h estruct.h retcode.h edef.h execute.h terminal.h \ basic.h display.h edef.h estruct.h retcode.h execute.h terminal.h \
wrapper.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 utf8.h estruct.h \
retcode.h edef.h log.h random.h region.h window.h defines.h retcode.h edef.h log.h random.h region.h window.h defines.h

3
bind.h
View File

@ -10,6 +10,9 @@ int apro( int f, int n) ;
int strinc( char *source, char *sub) ; int strinc( char *source, char *sub) ;
#endif #endif
/* Some global fuction declarations. */
typedef int (*fn_t)(int, int);
int help( int f, int n) ; int help( int f, int n) ;
int deskey( int f, int n) ; int deskey( int f, int n) ;
int bindtokey( int f, int n) ; int bindtokey( int f, int n) ;

3
edef.h
View File

@ -16,9 +16,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
/* Some global fuction declarations. */
typedef int (*fn_t)(int, int);
/* Initialized global external declarations. */ /* Initialized global external declarations. */
extern int fillcol; /* Fill column */ extern int fillcol; /* Fill column */

View File

@ -1,4 +1,3 @@
#include "crypt.h"
#include "defines.h" #include "defines.h"
/* #include "estruct.h" */ /* #include "estruct.h" */

View File

@ -1,7 +1,8 @@
#ifndef _INPUT_H_ #ifndef _INPUT_H_
#define _INPUT_H_ #define _INPUT_H_
#include "edef.h" #include "bind.h"
typedef enum { typedef enum {
STOP, PLAY, RECORD STOP, PLAY, RECORD