1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-11-04 19:37:18 -05:00

clean macroes in main and remove main.h (no more dependencies to main).

This commit is contained in:
Renaud 2013-06-06 09:28:34 +08:00
parent c96138add5
commit e2fcb90996
3 changed files with 9 additions and 23 deletions

View File

@ -403,6 +403,8 @@
#if CLEAN #if CLEAN
#define exit(a) cexit(a) #define exit(a) cexit(a)
int cexit( int status) ;
#endif #endif
/* /*

22
main.c
View File

@ -1,6 +1,3 @@
/* main.c -- implements main.h */
#include "main.h"
/* /*
* main.c * main.c
@ -60,27 +57,23 @@
#include <stdio.h> #include <stdio.h>
/* Make global definitions not external. */
#define maindef
#include "crypt.h"
#include "display.h"
#include "estruct.h" /* Global structures and defines. */
#include "edef.h" /* Global definitions. */
#include "input.h"
#include "termio.h"
#include "version.h"
#include "basic.h" #include "basic.h"
#include "bind.h" #include "bind.h"
#include "bindable.h" #include "bindable.h"
#include "buffer.h" #include "buffer.h"
#include "crypt.h"
#include "display.h"
#include "edef.h" /* Global definitions. */
#include "estruct.h" /* Global structures and defines. */
#include "eval.h" #include "eval.h"
#include "execute.h" #include "execute.h"
#include "file.h" #include "file.h"
#include "input.h"
#include "lock.h" #include "lock.h"
#include "random.h" #include "random.h"
#include "search.h" #include "search.h"
#include "termio.h"
#include "version.h"
/* For MSDOS, increase the default stack space. */ /* For MSDOS, increase the default stack space. */
#if MSDOS & TURBO #if MSDOS & TURBO
@ -93,7 +86,6 @@ extern unsigned _stklen = 32766;
#if UNIX #if UNIX
#include <signal.h> #include <signal.h>
static void emergencyexit(int);
#ifdef SIGWINCH #ifdef SIGWINCH
extern void sizesignal(int); extern void sizesignal(int);
#endif #endif

8
main.h
View File

@ -1,8 +0,0 @@
#ifndef _MAIN_H_
#define _MAIN_H_
#if CLEAN
int cexit( int status) ;
#endif
#endif