-
-
#include "depend.h"
#include "genint.h"
#include "int.h"
int main();
#endif
-
+/**
+ * @file
+ * @brief Compiler and interpreter code
+ */
int internal_sock, graph_sock, net_sock, connected = 0;
struct sockaddr_un svr;
/**
* Establishes configuration parameters
* Creates two sockets for program run
+ *
+ * @param argc number of passed values in argv array
+ * @param argv[1]
+ * @param argv[2]
+ * @param argv[3] if value is equal to: "r", sets global #remote variable to
+ * TRUE, FALSE otherwise
*/
static void initiate(int argc, char **argv)
{
/**
*
*/
-void decode(){
+void decode() {
extopcode *eop;
/* pointer to extended opcode in M */
/**
* Reads message from net module.
+ *
* @param msg Message to read.
*/
int read_from_net(MESSAGE *msg)
}
-/**
+/**
* Gets graphic resource number
*/
int get_graph_res()
/**
* Writes string
+ *
+ * Passed string is send to graph module by G_MESSAGE packet using send_to_graph
+ *
* @param s String to write
*/
void write_str(char *s)
/**
* Writes char
+ *
+ * Passed char is send to graph module by G_MESSAGE packet using send_to_graph
+ *
* @param a Character to write
*/
void write_char(char a)
send_to_graph(&m1);
}
-
+/**
+ * Sends MESSAGE
+ */
void send_ready()
{
int sock, len;
* strcpy(filename, argv[2]);
* strcpy(ProgName, argv[2]);
*
- * argv[1] = base name of this interpreter instance.
+ * @param argv[1] = base name of this interpreter instance.
* For network there is created argv[1].net socket
* For graphics there is created argv[1].gr socket
- * argv[2] = up to 80 characters string (with terminating \0). It is used to
+ * @param argv[2] = up to 80 characters string (with terminating \0). It is used to
* load selected program
- * argv[3] = if exists and is equal to 'r', this is a remote call
+ * @param argv[3] = if exists and is equal to 'r', this is a remote call
*/
int main(int argc, char **argv)
{