GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
command.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <setjmp.h>
#include <unistd.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/types.h>
#include <grass/gis.h>
#include <grass/graphics.h>
#include "driverlib.h"
#include "driver.h"
#include "pad.h"
#include <grass/glocale.h>
Include dependency graph for command.c:

Go to the source code of this file.

Macros

#define REC(a, b)   if ((ateof=rec((a),(b)))) break
 
#define RECTEXT(x, s)   if ((ateof=rectext(&x,&s))) break
 
#define SEND(a, b)   _send((a),(b))
 
#define SENDTEXT(x)   sendtext((x))
 

Functions

void command_init (int rfd, int wfd)
 
int LIB_command_get_input (void)
 
int process_command (int c)
 
int get_command (char *c)
 

Macro Definition Documentation

#define REC (   a,
  b 
)    if ((ateof=rec((a),(b)))) break

Definition at line 32 of file command.c.

Referenced by process_command().

#define RECTEXT (   x,
 
)    if ((ateof=rectext(&x,&s))) break

Definition at line 33 of file command.c.

Referenced by process_command().

#define SEND (   a,
  b 
)    _send((a),(b))

Definition at line 34 of file command.c.

Referenced by process_command().

#define SENDTEXT (   x)    sendtext((x))

Definition at line 35 of file command.c.

Referenced by process_command().

Function Documentation

void command_init ( int  rfd,
int  wfd 
)

Definition at line 82 of file command.c.

Referenced by LIB_main().

int get_command ( char *  c)

Definition at line 530 of file command.c.

References G_warning().

Referenced by LIB_main().

int LIB_command_get_input ( void  )

Definition at line 93 of file command.c.