sed: basicdefs.h trimdown
* basicdefs.h: Move inclusion of locale.h to sed/sed.c. (obstack_chunk_alloc, obstack_chunk_free): Move these macro definitions to sed/compile.c. * sed/debug.c: Don’t include basicdefs.h, as sed.h does that for us.
This commit is contained in:
1 parent
f3b29e0d76
commit
5ba9bc5cfb
4 files changed
+5
-6
No files matched your search
@@ -17,15 +17,10 @@
|
||||
#ifndef BASICDEFS_H
|
||||
#define BASICDEFS_H
|
||||
|
||||
#include <locale.h>
|
||||
|
||||
#include <gettext.h>
|
||||
#define _(String) gettext(String)
|
||||
|
||||
#include "idx.h"
|
||||
#include "xalloc.h"
|
||||
|
||||
#define obstack_chunk_alloc xzalloc
|
||||
#define obstack_chunk_free free
|
||||
|
||||
#endif /*!BASICDEFS_H*/
|
||||
@@ -30,6 +30,9 @@
|
||||
#include "progname.h"
|
||||
#include "xalloc.h"
|
||||
|
||||
#define obstack_chunk_alloc xzalloc
|
||||
#define obstack_chunk_free free
|
||||
|
||||
/* let's not confuse text editors that have only dumb bracket-matching... */
|
||||
#define OPEN_BRACKET '['
|
||||
#define CLOSE_BRACKET ']'
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
/* debug.c: debugging functions */
|
||||
|
||||
#include "sed.h"
|
||||
#include "basicdefs.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
Reference in new issue
Block a user