2
/******************************************************************************
4
* DESCRIPTION: Example of a plugin which is dynamically linked to TeXmacs
5
* COPYRIGHT : (C) 2003 Joris van der Hoeven
6
*******************************************************************************
7
* This software falls under the GNU general public license and comes WITHOUT
8
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
9
* If you don't have this file, write to the Free Software Foundation, Inc.,
10
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11
******************************************************************************/
18
static char* output= NULL;
21
dynlink_install (TeXmacs_exports_1* TM, char* options, char** errors) {
22
// cout << ">>> Install: " << options << "\n";
23
output= (char*) malloc (50);
24
strcpy (output, "\2verbatim:Started dynamic link\5");
29
dynlink_eval (char* what, char* session, char** errors) {
30
// cout << ">>> Evaluate: " << what << ", " << session << "\n";
32
output= (char*) malloc (50 + strlen (what));
33
strcpy (output, "\2verbatim:You typed ");
34
strcat (output, what);
35
strcat (output, "\5");
39
package_exports_1 dynlink_exports= {
40
"TeXmacs communication protocol 1",