From 419edeb95198cfe983170f2a8755009cd97594a8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Wed, 13 Nov 1996 17:24:20 -0800
Subject: [PATCH] rcsid added

Rev: src/backend.c:1.5
Rev: src/builtin_functions.c:1.10
Rev: src/configure.in:1.13
Rev: src/docode.c:1.4
Rev: src/global.h:1.2
Rev: src/interpret.c:1.9
Rev: src/language.yacc:1.7
Rev: src/las.c:1.5
Rev: src/lex.c:1.7
Rev: src/main.c:1.10
Rev: src/mapping.c:1.6
Rev: src/modules/call_out/call_out.c:1.2
Rev: src/modules/files/file.c:1.10
Rev: src/modules/gdbmmod/gdbmmod.c:1.3
Rev: src/modules/gmpmod/mpz_glue.c:1.6
Rev: src/modules/image/image.c:1.23
Rev: src/modules/pipe/pipe.c:1.5
Rev: src/modules/sprintf/sprintf.c:1.5
Rev: src/object.c:1.4
Rev: src/operators.c:1.2
Rev: src/pike_types.c:1.7
Rev: src/program.c:1.5
Rev: src/testsuite.in:1.7
Rev: src/threads.c:1.9
Rev: src/threads.h:1.6
---
 .gitattributes                  | 8 ++++++++
 src/backend.c                   | 1 +
 src/builtin_functions.c         | 1 +
 src/configure.in                | 2 ++
 src/docode.c                    | 1 +
 src/global.h                    | 8 ++++++++
 src/interpret.c                 | 1 +
 src/language.yacc               | 1 +
 src/las.c                       | 2 ++
 src/lex.c                       | 1 +
 src/main.c                      | 1 +
 src/mapping.c                   | 1 +
 src/modules/call_out/call_out.c | 1 +
 src/modules/files/file.c        | 1 +
 src/modules/gdbmmod/gdbmmod.c   | 1 +
 src/modules/gmpmod/mpz_glue.c   | 1 +
 src/modules/image/image.c       | 1 +
 src/modules/pipe/pipe.c         | 2 ++
 src/modules/sprintf/sprintf.c   | 1 +
 src/object.c                    | 1 +
 src/operators.c                 | 1 +
 src/pike_types.c                | 1 +
 src/program.c                   | 1 +
 src/testsuite.in                | 1 +
 src/threads.c                   | 1 +
 src/threads.h                   | 3 +++
 26 files changed, 45 insertions(+)

diff --git a/.gitattributes b/.gitattributes
index 14229eba49..4c165f6b8e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -8,6 +8,14 @@ testfont binary
 # Files containing CVS ids follow.
 # Remove the corresponding line before committing
 # changes to these files.
+/src/backend.c foreign_ident
+/src/builtin_functions.c foreign_ident
+/src/configure.in foreign_ident
+/src/docode.c foreign_ident
+/src/interpret.c foreign_ident
+/src/language.yacc foreign_ident
+/src/lex.c foreign_ident
+/src/main.c foreign_ident
 /src/modules/_Crypto/cbc.c foreign_ident
 /src/modules/_Crypto/crypto.c foreign_ident
 /src/modules/_Crypto/crypto.h foreign_ident
diff --git a/src/backend.c b/src/backend.c
index 2498fd811a..4eb0ec317f 100644
--- a/src/backend.c
+++ b/src/backend.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id: backend.c,v 1.5 1996/11/14 01:24:06 hubbe Exp $");
 #include "backend.h"
 #include <errno.h>
 #ifdef HAVE_SYS_TYPES_H
diff --git a/src/builtin_functions.c b/src/builtin_functions.c
index 6dc24feb91..16db926071 100644
--- a/src/builtin_functions.c
+++ b/src/builtin_functions.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id: builtin_functions.c,v 1.10 1996/11/14 01:24:07 hubbe Exp $");
 #include "interpret.h"
 #include "svalue.h"
 #include "macros.h"
diff --git a/src/configure.in b/src/configure.in
index c54f3d5da3..4c063c1e2a 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,3 +1,5 @@
+# $Id: configure.in,v 1.13 1996/11/14 01:24:08 hubbe Exp $
+
 AC_INIT(interpret.c)
 
 if test "x${CFLAGS-}" = x ; then
diff --git a/src/docode.c b/src/docode.c
index 7e34f30292..a10e99d578 100644
--- a/src/docode.c
+++ b/src/docode.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id: docode.c,v 1.4 1996/11/14 01:24:08 hubbe Exp $");
 #include "las.h"
 #include "program.h"
 #include "language.h"
diff --git a/src/global.h b/src/global.h
index 49a37515e7..f03ec1a7fa 100644
--- a/src/global.h
+++ b/src/global.h
@@ -70,6 +70,14 @@ char *alloca ();
 #undef HAVE_MEMORY_H
 #endif
 
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
+#define RCSID(X) \
+ static char *rcsid __attribute__ ((unused)) =X;
+#elif 
+#define RCSID(X) \
+ static char *rcsid = X;
+#endif
+
 #if defined(__GNUC__) && !defined(DEBUG) && !defined(lint)
 #define INLINE inline
 #else
diff --git a/src/interpret.c b/src/interpret.c
index 2e55742b20..084ba11401 100644
--- a/src/interpret.c
+++ b/src/interpret.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id: interpret.c,v 1.9 1996/11/14 01:24:09 hubbe Exp $");
 #include "interpret.h"
 #include "object.h"
 #include "program.h"
diff --git a/src/language.yacc b/src/language.yacc
index 6098477d68..de661ee4b6 100644
--- a/src/language.yacc
+++ b/src/language.yacc
@@ -156,6 +156,7 @@
 /* This is the grammar definition of Pike. */
 
 #include "global.h"
+RCSID("$Id: language.yacc,v 1.7 1996/11/14 01:24:10 hubbe Exp $");
 #ifdef HAVE_MEMORY_H
 #include <memory.h>
 #endif
diff --git a/src/las.c b/src/las.c
index c6f08de896..1b96211770 100644
--- a/src/las.c
+++ b/src/las.c
@@ -4,6 +4,8 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id");
+
 #include "language.h"
 #include "interpret.h"
 #include "las.h"
diff --git a/src/lex.c b/src/lex.c
index 9e2116db0d..65247ca680 100644
--- a/src/lex.c
+++ b/src/lex.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id: lex.c,v 1.7 1996/11/14 01:24:12 hubbe Exp $");
 #include "language.h"
 #include "array.h"
 #include "lex.h"
diff --git a/src/main.c b/src/main.c
index 7a9e3a5180..257a869c21 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id: main.c,v 1.10 1996/11/14 01:24:12 hubbe Exp $");
 #include "types.h"
 #include "backend.h"
 #include "module.h"
diff --git a/src/mapping.c b/src/mapping.c
index 8436ab7af9..61f9474049 100644
--- a/src/mapping.c
+++ b/src/mapping.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id");
 #include "main.h"
 #include "types.h"
 #include "object.h"
diff --git a/src/modules/call_out/call_out.c b/src/modules/call_out/call_out.c
index 20d88df7dd..3fc261dfa2 100644
--- a/src/modules/call_out/call_out.c
+++ b/src/modules/call_out/call_out.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id");
 #include "array.h"
 #include "dynamic_buffer.h"
 #include "object.h"
diff --git a/src/modules/files/file.c b/src/modules/files/file.c
index 39feba60a3..7323c40883 100644
--- a/src/modules/files/file.c
+++ b/src/modules/files/file.c
@@ -6,6 +6,7 @@
 #define READ_BUFFER 16384
 
 #include "global.h"
+RCSID("$Id");
 #include "types.h"
 #include "interpret.h"
 #include "svalue.h"
diff --git a/src/modules/gdbmmod/gdbmmod.c b/src/modules/gdbmmod/gdbmmod.c
index f9778ec83b..8d976ed645 100644
--- a/src/modules/gdbmmod/gdbmmod.c
+++ b/src/modules/gdbmmod/gdbmmod.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id");
 #include "gdbm_machine.h"
 #include "types.h"
 #include "threads.h"
diff --git a/src/modules/gmpmod/mpz_glue.c b/src/modules/gmpmod/mpz_glue.c
index f8cfbfda6f..e122128372 100644
--- a/src/modules/gmpmod/mpz_glue.c
+++ b/src/modules/gmpmod/mpz_glue.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id");
 #include "gmp_machine.h"
 #include "types.h"
 
diff --git a/src/modules/image/image.c b/src/modules/image/image.c
index 09ceeff7a9..eb93e8167e 100644
--- a/src/modules/image/image.c
+++ b/src/modules/image/image.c
@@ -5,6 +5,7 @@
 
 #include "stralloc.h"
 #include "global.h"
+RCSID("$Id");
 #include "types.h"
 #include "macros.h"
 #include "object.h"
diff --git a/src/modules/pipe/pipe.c b/src/modules/pipe/pipe.c
index bf7022dcb0..de8f3ec061 100644
--- a/src/modules/pipe/pipe.c
+++ b/src/modules/pipe/pipe.c
@@ -20,6 +20,8 @@
 #include <fcntl.h>
 
 #include "global.h"
+RCSID("$Id");
+
 #include "stralloc.h"
 #include "types.h"
 #include "macros.h"
diff --git a/src/modules/sprintf/sprintf.c b/src/modules/sprintf/sprintf.c
index 2724809265..3d448dec75 100644
--- a/src/modules/sprintf/sprintf.c
+++ b/src/modules/sprintf/sprintf.c
@@ -96,6 +96,7 @@
 */
 
 #include "global.h"
+RCSID("$Id");
 #include "error.h"
 #include "array.h"
 #include "svalue.h"
diff --git a/src/object.c b/src/object.c
index 8f4f163879..001b2fb4c6 100644
--- a/src/object.c
+++ b/src/object.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id");
 #include "object.h"
 #include "dynamic_buffer.h"
 #include "interpret.h"
diff --git a/src/operators.c b/src/operators.c
index 364302f420..1350fc8745 100644
--- a/src/operators.c
+++ b/src/operators.c
@@ -5,6 +5,7 @@
 \*/
 #include <math.h>
 #include "global.h"
+RCSID("$Id");
 #include "interpret.h"
 #include "svalue.h"
 #include "multiset.h"
diff --git a/src/pike_types.c b/src/pike_types.c
index 83af755109..7bea8e488c 100644
--- a/src/pike_types.c
+++ b/src/pike_types.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id");
 #include <ctype.h>
 #include "svalue.h"
 #include "pike_types.h"
diff --git a/src/program.c b/src/program.c
index c46e051d6a..db4cc1bc04 100644
--- a/src/program.c
+++ b/src/program.c
@@ -4,6 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
+RCSID("$Id");
 #include "program.h"
 #include "object.h"
 #include "dynamic_buffer.h"
diff --git a/src/testsuite.in b/src/testsuite.in
index 004db5843a..fed1d46f8b 100644
--- a/src/testsuite.in
+++ b/src/testsuite.in
@@ -1,3 +1,4 @@
+test_true("$Id")
 test_any([[object(File) o=File(); return objectp(o);]],1)
 test_any([[object o=Regexp("foo"); return objectp(o);]],1)
 test_any([[object o=Regexp("foo"); return object_program(o);]],Regexp)
diff --git a/src/threads.c b/src/threads.c
index a80e93b773..457d689a97 100644
--- a/src/threads.c
+++ b/src/threads.c
@@ -1,4 +1,5 @@
 #include "global.h"
+RCSID("$Id");
 
 int num_threads = 1;
 int threads_disabled = 0;
diff --git a/src/threads.h b/src/threads.h
index 40b0b6edd6..7f4bb33267 100644
--- a/src/threads.h
+++ b/src/threads.h
@@ -22,6 +22,7 @@ extern struct object *thread_id;
 #define mt_trylock(X) pthread_mutex_trylock(X)
 #define mt_unlock(X) pthread_mutex_unlock(X)
 #define mt_destroy(X) pthread_mutex_destroy(X)
+#define DEFINE_MUTEX(X) MUTEX_T X
 
 extern MUTEX_T interpreter_lock;
 
@@ -106,9 +107,11 @@ void th_cleanup();
 /* Prototypes end here */
 
 #else
+#define DEFINE_MUTEX(X)
 #define mt_init(X)
 #define mt_lock(X)
 #define mt_unlock(X)
+#define mt_destroy(X)
 #define THREADS_ALLOW()
 #define THREADS_DISALLOW()
 #define th_init()
-- 
GitLab