annotate tests/DLL/dltest.c @ 404:2f8bb876ab1d r21-2-32

Import from CVS: tag r21-2-32
author cvs
date Mon, 13 Aug 2007 11:16:07 +0200
parents 727739f917cb
children abe6d1db359e
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 # include "emacsfns.h"
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
11
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
12 Lisp_Object Qdltest_counter;
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
13
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
14 DEFUN ("dltest", Fdltest, 0, 0, 0, /*
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
15 Simple test function.
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 {
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
19 Qdltest_counter = make_int(XINT(Qdltest_counter) + 1);
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
20
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
21 return Qdltest_counter;
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
22 }
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
23
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
24 void
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
25 vars_of()
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
26 {
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
27 DEFVAR_LISP("dltest-counter", &Qdltest_counter /*
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
28 counter.
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
29 */ );
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
30
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
31 printf("Ten = %d\n", 10);
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
32
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
33 Qdltest_counter = make_int(10);
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
34 }
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
35
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
36 void
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
37 syms_of()
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
38 {
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
39 DEFSUBR(Fdltest);
727739f917cb Import from CVS: tag r20-5b30
cvs
parents:
diff changeset
40 }