view tests/DLL/dltest.c @ 1657:5c8854104e13

[xemacs-hg @ 2003-08-31 17:52:59 by adrian] [A21.5R21.4] [PATCH] Fix makeinfo-test and check-temacs in nt/xemacs.mak -------------------- ChangeLog entries follow: -------------------- nt/ChangeLog addition: 2003-08-31 Adrian Aichner <adrian@xemacs.org> * xemacs.mak (makeinfo-test): Moved after variable initialization to make test actually work. * xemacs.mak (TEMACS_BATCH_PACKAGES): New. * xemacs.mak (check-temacs): Use TEMACS_BATCH_PACKAGES to enable regression tests requiring packages.
author adrian
date Sun, 31 Aug 2003 17:52:59 +0000
parents abe6d1db359e
children
line wrap: on
line source

/*
Make a symbolic link to ${blddir}/src/config.h in this directory and do:

gcc -shared -fPIC -Demacs -DHAVE_CONFIG_H -I. \
		-I/home/xemacs/xemacs-20.0/src -g dltest.c -o dltest
*/

# include <config.h>
# include "lisp.h"

Lisp_Object Qdltest_counter;

DEFUN ("dltest", Fdltest, 0, 0, 0, /*
Simple test function.
*/
())
{
	Qdltest_counter = make_int(XINT(Qdltest_counter) + 1);

	return Qdltest_counter;
}

void
vars_of()
{
	DEFVAR_LISP("dltest-counter", &Qdltest_counter /*
counter.
*/ );

	printf("Ten = %d\n", 10);

	Qdltest_counter = make_int(10);
}

void
syms_of()
{
	DEFSUBR(Fdltest);
}