Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c70c2705
Commit
c70c2705
authored
Sep 02, 1995
by
David J. MacKenzie
Browse files
Don't assume that HAVE_CONFIG_H implies emacs.
parent
bccfd936
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
src/termcap.c
src/termcap.c
+5
-3
src/tparam.c
src/tparam.c
+3
-2
tparam.c
tparam.c
+3
-2
No files found.
src/termcap.c
View file @
c70c2705
...
@@ -17,8 +17,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -17,8 +17,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Emacs config.h may rename various library functions such as malloc. */
/* Emacs config.h may rename various library functions such as malloc. */
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#include <config.h>
#endif
#ifdef emacs
/* Get the O_* definitions for open et al. */
/* Get the O_* definitions for open et al. */
#include <sys/file.h>
#include <sys/file.h>
...
@@ -26,7 +28,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -26,7 +28,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <fcntl.h>
#include <fcntl.h>
#endif
#endif
#else
/* not
HAVE_CONFIG_H
*/
#else
/* not
emacs
*/
#ifdef STDC_HEADERS
#ifdef STDC_HEADERS
#include <stdlib.h>
#include <stdlib.h>
...
@@ -49,7 +51,7 @@ char *realloc ();
...
@@ -49,7 +51,7 @@ char *realloc ();
#include <fcntl.h>
#include <fcntl.h>
#endif
#endif
#endif
/* not
HAVE_CONFIG_H
*/
#endif
/* not
emacs
*/
#ifndef NULL
#ifndef NULL
#define NULL (char *) 0
#define NULL (char *) 0
...
...
src/tparam.c
View file @
c70c2705
...
@@ -18,8 +18,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -18,8 +18,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Emacs config.h may rename various library functions such as malloc. */
/* Emacs config.h may rename various library functions such as malloc. */
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#include <config.h>
#e
lse
/* not HAVE_CONFIG_H */
#e
ndif
#ifndef emacs
#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
#define bcopy(s, d, n) memcpy ((d), (s), (n))
#define bcopy(s, d, n) memcpy ((d), (s), (n))
#endif
#endif
...
@@ -32,7 +33,7 @@ char *malloc ();
...
@@ -32,7 +33,7 @@ char *malloc ();
char
*
realloc
();
char
*
realloc
();
#endif
#endif
#endif
/* not
HAVE_CONFIG_H
*/
#endif
/* not
emacs
*/
#ifndef NULL
#ifndef NULL
#define NULL (char *) 0
#define NULL (char *) 0
...
...
tparam.c
View file @
c70c2705
...
@@ -18,8 +18,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -18,8 +18,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Emacs config.h may rename various library functions such as malloc. */
/* Emacs config.h may rename various library functions such as malloc. */
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#include <config.h>
#e
lse
/* not HAVE_CONFIG_H */
#e
ndif
#ifndef emacs
#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
#define bcopy(s, d, n) memcpy ((d), (s), (n))
#define bcopy(s, d, n) memcpy ((d), (s), (n))
#endif
#endif
...
@@ -32,7 +33,7 @@ char *malloc ();
...
@@ -32,7 +33,7 @@ char *malloc ();
char
*
realloc
();
char
*
realloc
();
#endif
#endif
#endif
/* not
HAVE_CONFIG_H
*/
#endif
/* not
emacs
*/
#ifndef NULL
#ifndef NULL
#define NULL (char *) 0
#define NULL (char *) 0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment