diff options
| author | Glenn Morris | 2010-05-11 23:53:03 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-11 23:53:03 -0700 |
| commit | e05aebe90549195bedca9ac550297233aeae9ac4 (patch) | |
| tree | 3c57f328f70277529d75e10ae52535e30cbaa08b /src/s/gnu-linux.h | |
| parent | b5457f146f83943eef8f5662f89e10bd52eec9bd (diff) | |
| download | emacs-e05aebe90549195bedca9ac550297233aeae9ac4.tar.gz emacs-e05aebe90549195bedca9ac550297233aeae9ac4.zip | |
Reformat some comments in src/s/*.h.
Diffstat (limited to 'src/s/gnu-linux.h')
| -rw-r--r-- | src/s/gnu-linux.h | 40 |
1 files changed, 13 insertions, 27 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index a42bbaadf62..3aa2dc16f42 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -3,6 +3,8 @@ | |||
| 3 | Copyright (C) 1985, 1986, 1992, 1994, 1996, 1999, 2001, 2002, 2003, 2004, | 3 | Copyright (C) 1985, 1986, 1992, 1994, 1996, 1999, 2001, 2002, 2003, 2004, |
| 4 | 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file was put together by Michael K. Johnson and Rik Faith. | ||
| 7 | |||
| 6 | This file is part of GNU Emacs. | 8 | This file is part of GNU Emacs. |
| 7 | 9 | ||
| 8 | GNU Emacs is free software: you can redistribute it and/or modify | 10 | GNU Emacs is free software: you can redistribute it and/or modify |
| @@ -18,20 +20,13 @@ GNU General Public License for more details. | |||
| 18 | You should have received a copy of the GNU General Public License | 20 | You should have received a copy of the GNU General Public License |
| 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 20 | 22 | ||
| 21 | /* This file was put together by Michael K. Johnson and Rik Faith. */ | 23 | /* Define symbols to identify the version of Unix this is. |
| 22 | 24 | Define all the symbols that apply correctly. */ | |
| 23 | |||
| 24 | /* | ||
| 25 | * Define symbols to identify the version of Unix this is. | ||
| 26 | * Define all the symbols that apply correctly. | ||
| 27 | */ | ||
| 28 | |||
| 29 | #define USG | 25 | #define USG |
| 30 | #define GNU_LINUX | 26 | #define GNU_LINUX |
| 31 | 27 | ||
| 32 | /* SYSTEM_TYPE should indicate the kind of system you are using. | 28 | /* SYSTEM_TYPE should indicate the kind of system you are using. |
| 33 | It sets the Lisp variable system-type. */ | 29 | It sets the Lisp variable system-type. */ |
| 34 | |||
| 35 | #define SYSTEM_TYPE "gnu/linux" /* All the best software is free. */ | 30 | #define SYSTEM_TYPE "gnu/linux" /* All the best software is free. */ |
| 36 | 31 | ||
| 37 | #ifndef NOT_C_CODE | 32 | #ifndef NOT_C_CODE |
| @@ -50,9 +45,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 50 | #if defined HAVE_GRANTPT | 45 | #if defined HAVE_GRANTPT |
| 51 | #define UNIX98_PTYS | 46 | #define UNIX98_PTYS |
| 52 | 47 | ||
| 53 | /* Run only once. We need a `for'-loop because the code uses | 48 | /* Run only once. We need a `for'-loop because the code uses `continue'. */ |
| 54 | `continue'. */ | ||
| 55 | |||
| 56 | #define PTY_ITERATION for (i = 0; i < 1; i++) | 49 | #define PTY_ITERATION for (i = 0; i < 1; i++) |
| 57 | 50 | ||
| 58 | #ifdef HAVE_GETPT | 51 | #ifdef HAVE_GETPT |
| @@ -64,7 +57,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 64 | 57 | ||
| 65 | /* Note that grantpt and unlockpt may fork. We must block SIGCHLD to | 58 | /* Note that grantpt and unlockpt may fork. We must block SIGCHLD to |
| 66 | prevent sigchld_handler from intercepting the child's death. */ | 59 | prevent sigchld_handler from intercepting the child's death. */ |
| 67 | |||
| 68 | #define PTY_TTY_NAME_SPRINTF \ | 60 | #define PTY_TTY_NAME_SPRINTF \ |
| 69 | { \ | 61 | { \ |
| 70 | char *ptyname; \ | 62 | char *ptyname; \ |
| @@ -86,23 +78,20 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 86 | 78 | ||
| 87 | /* Letter to use in finding device name of first pty, | 79 | /* Letter to use in finding device name of first pty, |
| 88 | if system supports pty's. 'p' means it is /dev/ptyp0 */ | 80 | if system supports pty's. 'p' means it is /dev/ptyp0 */ |
| 89 | |||
| 90 | #define FIRST_PTY_LETTER 'p' | 81 | #define FIRST_PTY_LETTER 'p' |
| 91 | 82 | ||
| 92 | #endif /* not HAVE_GRANTPT */ | 83 | #endif /* not HAVE_GRANTPT */ |
| 93 | 84 | ||
| 94 | /* Define HAVE_TERMIOS if the system provides POSIX-style | 85 | /* Define HAVE_TERMIOS if the system provides POSIX-style |
| 95 | functions and macros for terminal control. */ | 86 | functions and macros for terminal control. */ |
| 96 | |||
| 97 | #define HAVE_TERMIOS | 87 | #define HAVE_TERMIOS |
| 98 | 88 | ||
| 99 | /* Define HAVE_PTYS if the system supports pty devices. */ | 89 | /* Define HAVE_PTYS if the system supports pty devices. */ |
| 100 | |||
| 101 | #define HAVE_PTYS | 90 | #define HAVE_PTYS |
| 102 | 91 | ||
| 103 | #define HAVE_SOCKETS | 92 | #define HAVE_SOCKETS |
| 104 | 93 | ||
| 105 | /* Define this symbol if your system has the functions bcopy, etc. */ | 94 | /* Define this symbol if your system has the functions bcopy, etc. */ |
| 106 | #define BSTRING | 95 | #define BSTRING |
| 107 | 96 | ||
| 108 | /* This is used in list_system_processes. */ | 97 | /* This is used in list_system_processes. */ |
| @@ -121,20 +110,19 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 121 | your system and must be used only through an encapsulation | 110 | your system and must be used only through an encapsulation |
| 122 | (Which you should place, by convention, in sysdep.c). */ | 111 | (Which you should place, by convention, in sysdep.c). */ |
| 123 | 112 | ||
| 124 | /* This is needed for dispnew.c:update_frame */ | 113 | /* This is needed for dispnew.c:update_frame. */ |
| 125 | |||
| 126 | #ifdef emacs | 114 | #ifdef emacs |
| 127 | #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ | 115 | #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ |
| 128 | #if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) | 116 | #if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) |
| 129 | /* new C libio names */ | 117 | /* New C libio names. */ |
| 130 | #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ | 118 | #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ |
| 131 | ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base) | 119 | ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base) |
| 132 | #elif defined (__UCLIBC__) | 120 | #elif defined (__UCLIBC__) |
| 133 | /* using the uClibc library */ | 121 | /* Using the uClibc library. */ |
| 134 | #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ | 122 | #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ |
| 135 | ((FILE)->__bufpos - (FILE)->__bufstart) | 123 | ((FILE)->__bufpos - (FILE)->__bufstart) |
| 136 | #else /* !_IO_STDIO_H && ! __UCLIBC__ */ | 124 | #else /* !_IO_STDIO_H && ! __UCLIBC__ */ |
| 137 | /* old C++ iostream names */ | 125 | /* Old C++ iostream names. */ |
| 138 | #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ | 126 | #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ |
| 139 | ((FILE)->_pptr - (FILE)->_pbase) | 127 | ((FILE)->_pptr - (FILE)->_pbase) |
| 140 | #endif /* !_IO_STDIO_H && ! __UCLIBC__ */ | 128 | #endif /* !_IO_STDIO_H && ! __UCLIBC__ */ |
| @@ -165,8 +153,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 165 | #endif | 153 | #endif |
| 166 | 154 | ||
| 167 | /* Tell that garbage collector that setjmp is known to save all | 155 | /* Tell that garbage collector that setjmp is known to save all |
| 168 | registers relevant for conservative garbage collection in the | 156 | registers relevant for conservative garbage collection in the jmp_buf. */ |
| 169 | jmp_buf. */ | ||
| 170 | /* Not all the architectures are tested, but there are Debian packages | 157 | /* Not all the architectures are tested, but there are Debian packages |
| 171 | for SCM and/or Guile on them, so the technique must work. See also | 158 | for SCM and/or Guile on them, so the technique must work. See also |
| 172 | comments in alloc.c concerning setjmp and gcc. Fixme: it's | 159 | comments in alloc.c concerning setjmp and gcc. Fixme: it's |
| @@ -174,7 +161,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 174 | register window-flushing. */ | 161 | register window-flushing. */ |
| 175 | /* Don't use #cpu here since in newest development versions of GCC, | 162 | /* Don't use #cpu here since in newest development versions of GCC, |
| 176 | we must call cpp with -traditional, and that disables #cpu. */ | 163 | we must call cpp with -traditional, and that disables #cpu. */ |
| 177 | |||
| 178 | #if defined __i386__ || defined __sparc__ || defined __mc68000__ \ | 164 | #if defined __i386__ || defined __sparc__ || defined __mc68000__ \ |
| 179 | || defined __alpha__ || defined __mips__ || defined __s390__ \ | 165 | || defined __alpha__ || defined __mips__ || defined __s390__ \ |
| 180 | || defined __arm__ || defined __powerpc__ || defined __amd64__ \ | 166 | || defined __arm__ || defined __powerpc__ || defined __amd64__ \ |