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:
Paul Eggert committed 2026-08-17 01:17:23 -07:00
1 parent f3b29e0d76
commit 5ba9bc5cfb
4 files changed
+5 -6

No files matched your search

-5
View File
@@ -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*/
+3
View File
@@ -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
View File
@@ -19,7 +19,7 @@
/* debug.c: debugging functions */
#include "sed.h"
#include "basicdefs.h"
#include <stdio.h>
#include <ctype.h>
#include <string.h>
+1
View File
@@ -20,6 +20,7 @@
#include <getopt.h>
#include <inttypes.h>
#include <limits.h>
#include <locale.h>
#include <selinux/selinux.h>
#include <stdio.h>
#include <string.h>