wcalc  2.5
About: Wcalc is a natural-expression command-line calculator.
  Fossies Dox: wcalc-2.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

variables.h File Reference
#include <stdlib.h>
#include "number.h"
Include dependency graph for variables.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  variable
 
struct  answer
 

Macros

#define strchr   index
 
#define strrchr   rindex
 

Typedefs

typedef struct variable variable_t
 
typedef struct answer answer_t
 

Functions

char * index ()
 
char * rindex ()
 
void getvarval (mpfr_t out, const char *key)
 
int putval (const char *key, const mpfr_t value, const char *desc)
 
int putexp (const char *key, const char *value, const char *desc)
 
int varexists (const char *key)
 
void initvar (void)
 
void delnvar (const size_t n)
 
void cleanupvar (void)
 
size_t numvars (void)
 
void printvariables (void)
 
char ** listvarnames (void)
 
struct answer getvar (const char *key)
 
struct answer getvar_full (const char *key)
 
struct variablegetrealnvar (const size_t n)
 

Macro Definition Documentation

◆ strchr

#define strchr   index

Definition at line 11 of file variables.h.

◆ strrchr

#define strrchr   rindex

Definition at line 12 of file variables.h.

Typedef Documentation

◆ answer_t

typedef struct answer answer_t

◆ variable_t

typedef struct variable variable_t

Function Documentation

◆ cleanupvar()

void cleanupvar ( void  )

◆ delnvar()

void delnvar ( const size_t  n)

◆ getrealnvar()

◆ getvar()

struct answer getvar ( const char *  key)

Definition at line 132 of file variables.c.

References answer::err, answer::exp, getvar_core(), num_init_set(), Number, THE_VALUE, and answer::val.

◆ getvar_full()

◆ getvarval()

void getvarval ( mpfr_t  out,
const char *  key 
)

◆ index()

char* index ( )

◆ initvar()

void initvar ( void  )

Definition at line 29 of file variables.c.

Referenced by main().

◆ listvarnames()

char** listvarnames ( void  )

◆ numvars()

size_t numvars ( void  )

Definition at line 53 of file variables.c.

References listLen(), and them.

Referenced by VariableList::clearVariables:, VariableList::numberOfRowsInTableView:, and saveState().

◆ printvariables()

void printvariables ( void  )

Definition at line 59 of file variables.c.

References display_var(), freeListIterator(), getListIterator(), listLen(), nextListElement(), and them.

Referenced by yyparse().

◆ putexp()

int putexp ( const char *  key,
const char *  value,
const char *  desc 
)

◆ putval()

int putval ( const char *  key,
const mpfr_t  value,
const char *  desc 
)

◆ rindex()

char * rindex ( )

◆ varexists()

int varexists ( const char *  key)