Back to index

texmacs  1.0.7.15
Functions | Variables
dynlink.cpp File Reference
#include <stdlib.h>
#include <string.h>
#include <TeXmacs.h>

Go to the source code of this file.

Functions

char * dynlink_install (TeXmacs_exports_1 *TM, char *options, char **errors)
char * dynlink_eval (char *what, char *session, char **errors)

Variables

static char * output = NULL
package_exports_1 dynlink_exports

Function Documentation

char* dynlink_eval ( char *  what,
char *  session,
char **  errors 
)

Definition at line 30 of file dynlink.cpp.

                                                        {
  // cout << ">>> Evaluate: " << what << ", " << session << "\n";
  free (output);
  output= (char*) malloc (50 + strlen (what));
  strcpy (output, "\2verbatim:You typed ");
  strcat (output, what);
  strcat (output, "\5");
  return output;
}
char* dynlink_install ( TeXmacs_exports_1 TM,
char *  options,
char **  errors 
)

Definition at line 22 of file dynlink.cpp.

                                                                      {
  // cout << ">>> Install: " << options << "\n";
  output= (char*) malloc (50);
  strcpy (output, "\2verbatim:Started dynamic link\5");
  return output;
}

Variable Documentation

Initial value:
 {
  (char*) "TeXmacs communication protocol 1",
  (char*) "Dynlink 1",
  dynlink_install,
  dynlink_eval
}

Definition at line 40 of file dynlink.cpp.

char* output = NULL [static]

Definition at line 19 of file dynlink.cpp.