"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/common/includes/variables.h" between
wcalc-2.4.1.tar.gz and wcalc-2.5.tar.gz

About: Wcalc is a natural-expression command-line calculator.

variables.h  (wcalc-2.4.1):variables.h  (wcalc-2.5)
skipping to change at line 17 skipping to change at line 17
#if HAVE_STRING_H #if HAVE_STRING_H
# include <string.h> # include <string.h>
#else #else
# if !HAVE_STRCHR # if !HAVE_STRCHR
# define strchr index # define strchr index
# define strrchr rindex # define strrchr rindex
# endif # endif
char *strchr(), *strrchr(); char *strchr(), *strrchr();
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h>
#include "number.h" #include "number.h"
typedef struct variable { typedef struct variable {
char *key; char *key;
char *expression; char *expression;
char *description; char *description;
Number value; Number value;
unsigned int exp : 1; unsigned int exp : 1;
struct variable *next; struct variable *next;
skipping to change at line 77 skipping to change at line 76
struct answer getvar(const char *key); struct answer getvar(const char *key);
/* getvar returns whatever is known about the variable, or an error if /* getvar returns whatever is known about the variable, or an error if
* it doesn't exist */ * it doesn't exist */
struct answer getvar_full(const char *key); struct answer getvar_full(const char *key);
/* THIS function, however, exposes the innards of the variable system. /* THIS function, however, exposes the innards of the variable system.
* do not under any circumstance un-initialize the Number * do not under any circumstance un-initialize the Number
*/ */
struct variable *getrealnvar(const size_t n); struct variable *getrealnvar(const size_t n);
#endif // ifndef KBW_VARIABLES #endif // ifndef KBW_VARIABLES
/* vim:set expandtab: */ /* vim:set expandtab: */
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS