annotate tests/DLL/dltest.c @ 858:2c12fe2da451

[xemacs-hg @ 2002-05-31 09:38:45 by michaels] 2002-05-28 Martin Köbele <mkoebele@mkoebele.de>, Jens Müller <jmueller@informatik.uni-tuebingen.de> * lrecord.h (lrecord_type): Add lrecord_type_weak_box to lrecord_type enumeration. * alloc.c (garbage_collect_1): Call prune_weak_boxes(). * lisp.h (struct weak_box): * data.c: (prune_weak_boxes): (mark_weak_box): (print_weak_box): (weak_box_equal): (weak_box_hash): (make_weak_box): (Fmake_weak_box): (Fweak_box_ref): (Fweak_boxp): (syms_of_data): (vars_of_data): Add implementation of weak boxes.
author michaels
date Fri, 31 May 2002 09:38:49 +0000
parents abe6d1db359e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
1 /*
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
2 Make a symbolic link to ${blddir}/src/config.h in this directory and do:
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
3
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
4 gcc -shared -fPIC -Demacs -DHAVE_CONFIG_H -I. \
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
5 -I/home/xemacs/xemacs-20.0/src -g dltest.c -o dltest
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
6 */
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
7
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
8 # include <config.h>
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
9 # include "lisp.h"
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
10
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
11 Lisp_Object Qdltest_counter;
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
12
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
13 DEFUN ("dltest", Fdltest, 0, 0, 0, /*
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
14 Simple test function.
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
15 */
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
16 ())
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
17 {
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
18 Qdltest_counter = make_int(XINT(Qdltest_counter) + 1);
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
19
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
20 return Qdltest_counter;
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
21 }
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
22
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
23 void
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
24 vars_of()
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
25 {
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
26 DEFVAR_LISP("dltest-counter", &Qdltest_counter /*
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
27 counter.
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
28 */ );
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
29
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
30 printf("Ten = %d\n", 10);
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
31
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
32 Qdltest_counter = make_int(10);
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
33 }
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
34
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
35 void
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
36 syms_of()
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
37 {
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
38 DEFSUBR(Fdltest);
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
39 }