Re: Wingz externals
Posted in 1993
In Wingz/Hyperscript get external path & "../util/unifiutil" Wunifilog=unifiutil:currenv("UNIFILOG") remove external "unifiutil" ************* Skeleton of code which generates 'unifiutil' executable follows ...... ************* O \\/_____ C U T _____ C U T _____ C U T _____ C U T _____ C U T _____ C U T ___ /\\ O #include <stdio.h> #include <stdlib.h> /* for getenv() */ #include <string.h> /* for strcpy() routine */ #include <time.h> /* for ctime() routine */ #include <sys/types.h> /*********************************************** * Refer to Wingz Hyperscript Manual pgs 330 ***********************************************/ #define numfuncs 1 #include "WZTools.h" /* Stored under $WINGZ directory */ extern void InitFunc(PVAL, PVAL), getcurrenv(PVAL, PVAL), ExitFunc(PVAL, PVAL); /* set up structure */ void (*initfunc)() = InitFunc; ROUT rout = { numfuncs, ExitFunc, { /* C-definition #charCHAR hyperscript-callable-name #Args */ { getcurrenv, "\\007currenv", 1 }, } }; /* ====================== Globals ================================= */ /* ================================================================ */ void InitFunc(pret, parg) PVAL pret, parg; { /* Initialization Stuff */ return; } /* ================================================================ */ void getcurrenv(pret, parg) PVAL pret, parg; { /* Skeleton for defined function */ return; } /* ================================================================ */ void ExitFunc(pret, parg) PVAL pret, parg; { /* Closing time */ retrun; } /* ======================== End of File =========================== */ O \\/_____ C U T _____ C U T _____ C U T _____ C U T _____ C U T _____ C U T ___ /\\ O HOPE THIS HELPS .... ======================================================================== Informix-OnLine 4.00.UD5 SCO 3.2 Informix-Isql 4.00 AST 486/33 Informix-Esql/C 4.00 Wingz 1.10 Bharat Shah Voice: (508)-663-7570 Unifi Communications Corp. Fax: (508)-663-7543 4 Federal St, Billerica, Mass 01821, USA bharat@unifi.com ========================================================================