+ * Subsidiary event handler, mainly for Lim-Lee searches and so on.
+ */
+
+extern pgen_proc pgen_subev;
+
+/*----- The main driver ---------------------------------------------------*/
+
+/* --- @pgen@ --- *
+ *
+ * Arguments: @const char *name@ = name of the value being searched for
+ * @mp *d@ = destination for resulting integer
+ * @mp *m@ = start value to pass to stepper
+ * @pgen_proc *event@ = event handler function
+ * @void *ectx@ = context argument for event andler
+ * @unsigned steps@ = number of steps to take in search
+ * @pgen_proc *step@ = stepper function to use
+ * @void *sctx@ = context argument for stepper
+ * @unsigned tests@ = number of tests to make
+ * @pgen_proc *test@ = tester function to use
+ * @void *tctx@ = context argument for tester
+ *
+ * Returns: The resulting value, or null.
+ *
+ * Use: A generalized prime-number search skeleton. Yes, that's a
+ * scary number of arguments.
+ */
+
+extern mp *pgen(const char */*name*/, mp */*d*/, mp */*m*/,
+ pgen_proc */*event*/, void */*ectx*/,
+ unsigned /*steps*/, pgen_proc */*step*/, void */*sctx*/,
+ unsigned /*tests*/, pgen_proc */*test*/, void */*tctx*/);
+
+/* --- @pgen_primep@ --- *