Mercurial > hg > xemacs-beta
annotate tests/DLL/dltest.c @ 4225:e358b6c40407
[xemacs-hg @ 2007-10-15 06:54:20 by adrian]
xemacs-21.5-clean: sync nt/xemacs.mak and man/Makefile
-------------------- ChangeLog entries follow: --------------------
nt/ChangeLog addition:
2007-10-15 Adrian Aichner <adrian@xemacs.org>
* xemacs.mak (INFO_FILES): Sync nt/xemacs.mak and man/Makefile
(adding beta.info).
* xemacs.mak (LISPREF_SRCS): Ditto. Adding packages.texi.
man/ChangeLog addition:
2007-10-15 Adrian Aichner <adrian@xemacs.org>
* Makefile (info_files): Sync nt/xemacs.mak and man/Makefile.
Sort enries to easy future syncs.
| author | adrian |
|---|---|
| date | Mon, 15 Oct 2007 06:54:23 +0000 |
| parents | abe6d1db359e |
| children |
| rev | line source |
|---|---|
| 263 | 1 /* |
| 2 Make a symbolic link to ${blddir}/src/config.h in this directory and do: | |
| 3 | |
| 4 gcc -shared -fPIC -Demacs -DHAVE_CONFIG_H -I. \ | |
| 5 -I/home/xemacs/xemacs-20.0/src -g dltest.c -o dltest | |
| 6 */ | |
| 7 | |
| 8 # include <config.h> | |
| 9 # include "lisp.h" | |
| 10 | |
| 11 Lisp_Object Qdltest_counter; | |
| 12 | |
| 13 DEFUN ("dltest", Fdltest, 0, 0, 0, /* | |
| 14 Simple test function. | |
| 15 */ | |
| 16 ()) | |
| 17 { | |
| 18 Qdltest_counter = make_int(XINT(Qdltest_counter) + 1); | |
| 19 | |
| 20 return Qdltest_counter; | |
| 21 } | |
| 22 | |
| 23 void | |
| 24 vars_of() | |
| 25 { | |
| 26 DEFVAR_LISP("dltest-counter", &Qdltest_counter /* | |
| 27 counter. | |
| 28 */ ); | |
| 29 | |
| 30 printf("Ten = %d\n", 10); | |
| 31 | |
| 32 Qdltest_counter = make_int(10); | |
| 33 } | |
| 34 | |
| 35 void | |
| 36 syms_of() | |
| 37 { | |
| 38 DEFSUBR(Fdltest); | |
| 39 } |
