diff options
| author | Dan Nicolaescu | 2010-07-07 22:48:57 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-07 22:48:57 -0700 |
| commit | 0216627eb39f77958e30f4750f581714fdfd7faf (patch) | |
| tree | 3386df5cfea9d2ce20f2dbb6152b24a2c0ea5bfd /lib-src | |
| parent | d8825aa36e51836d75112ebddc93beca9f31185a (diff) | |
| download | emacs-0216627eb39f77958e30f4750f581714fdfd7faf.tar.gz emacs-0216627eb39f77958e30f4750f581714fdfd7faf.zip | |
Remove leftover P_ macros.
* lib-src/update-game-score.c (P_): Remove macro.
* lib-src/ebrowse.c: Remove include guards.
(P_): Remove macro.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 6 | ||||
| -rw-r--r-- | lib-src/ebrowse.c | 12 | ||||
| -rw-r--r-- | lib-src/update-game-score.c | 7 |
3 files changed, 6 insertions, 19 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index a1479dc2698..aa9fab0badb 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * update-game-score.c (P_): Remove macro. | ||
| 4 | * ebrowse.c: Remove include guards. | ||
| 5 | (P_): Remove macro. | ||
| 6 | |||
| 1 | 2010-07-07 Andreas Schwab <schwab@linux-m68k.org> | 7 | 2010-07-07 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 8 | ||
| 3 | * ebrowse.c (add_sym, make_namespace): Replace bcopy, bzero by | 9 | * ebrowse.c (add_sym, make_namespace): Replace bcopy, bzero by |
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 42bcdfd06f3..a9f7ba4f3a7 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -20,20 +20,14 @@ You should have received a copy of the GNU General Public License | |||
| 20 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 20 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 21 | 21 | ||
| 22 | 22 | ||
| 23 | #ifdef HAVE_CONFIG_H | ||
| 24 | #include <config.h> | 23 | #include <config.h> |
| 25 | #endif | ||
| 26 | |||
| 27 | #include <stdio.h> | 24 | #include <stdio.h> |
| 28 | 25 | ||
| 29 | #ifdef HAVE_STDLIB_H | 26 | #ifdef HAVE_STDLIB_H |
| 30 | #include <stdlib.h> | 27 | #include <stdlib.h> |
| 31 | #endif | 28 | #endif |
| 32 | 29 | ||
| 33 | #ifdef HAVE_STRING_H | ||
| 34 | #include <string.h> | 30 | #include <string.h> |
| 35 | #endif | ||
| 36 | |||
| 37 | #include <ctype.h> | 31 | #include <ctype.h> |
| 38 | #include <assert.h> | 32 | #include <assert.h> |
| 39 | #include "getopt.h" | 33 | #include "getopt.h" |
| @@ -45,12 +39,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 45 | 39 | ||
| 46 | /* Conditionalize function prototypes. */ | 40 | /* Conditionalize function prototypes. */ |
| 47 | 41 | ||
| 48 | #ifdef PROTOTYPES /* From config.h. */ | ||
| 49 | #define P_(x) x | ||
| 50 | #else | ||
| 51 | #define P_(x) () | ||
| 52 | #endif | ||
| 53 | |||
| 54 | /* Value is non-zero if strings X and Y compare equal. */ | 42 | /* Value is non-zero if strings X and Y compare equal. */ |
| 55 | 43 | ||
| 56 | #define streq(X, Y) (*(X) == *(Y) && strcmp ((X) + 1, (Y) + 1) == 0) | 44 | #define streq(X, Y) (*(X) == *(Y) && strcmp ((X) + 1, (Y) + 1) == 0) |
diff --git a/lib-src/update-game-score.c b/lib-src/update-game-score.c index ba619450198..a96422a09a9 100644 --- a/lib-src/update-game-score.c +++ b/lib-src/update-game-score.c | |||
| @@ -64,13 +64,6 @@ extern int optind, opterr; | |||
| 64 | #define MAX_SCORES 200 | 64 | #define MAX_SCORES 200 |
| 65 | #define MAX_DATA_LEN 1024 | 65 | #define MAX_DATA_LEN 1024 |
| 66 | 66 | ||
| 67 | /* Declare the prototype for a general external function. */ | ||
| 68 | #if defined (PROTOTYPES) || defined (WINDOWSNT) | ||
| 69 | #define P_(proto) proto | ||
| 70 | #else | ||
| 71 | #define P_(proto) () | ||
| 72 | #endif | ||
| 73 | |||
| 74 | #ifndef HAVE_DIFFTIME | 67 | #ifndef HAVE_DIFFTIME |
| 75 | /* OK on POSIX (time_t is arithmetic type) modulo overflow in subtraction. */ | 68 | /* OK on POSIX (time_t is arithmetic type) modulo overflow in subtraction. */ |
| 76 | #define difftime(t1, t0) (double)((t1) - (t0)) | 69 | #define difftime(t1, t0) (double)((t1) - (t0)) |