"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "value.c" between
bas-2.5.tar.gz and bas-2.6.tar.gz

About: bas is an interpreter for the programming language BASIC.

value.c  (bas-2.5):value.c  (bas-2.6)
skipping to change at line 192 skipping to change at line 192
assert(this!=(struct Value*)0); assert(this!=(struct Value*)0);
va_start(ap,error); va_start(ap,error);
vsprintf(buf,error,ap); vsprintf(buf,error,ap);
va_end(ap); va_end(ap);
this->type=V_ERROR; this->type=V_ERROR;
this->u.error.code=code; this->u.error.code=code;
this->u.error.msg=strcpy(malloc(strlen(buf)+1),buf); this->u.error.msg=strcpy(malloc(strlen(buf)+1),buf);
return this; return this;
} }
/*}}}*/ /*}}}*/
struct Value *Value_new_INTEGER(struct Value *this, int n) /*{{{*/ struct Value *Value_new_INTEGER(struct Value *this, long n) /*{{{*/
{ {
assert(this!=(struct Value*)0); assert(this!=(struct Value*)0);
this->type=V_INTEGER; this->type=V_INTEGER;
this->u.integer=n; this->u.integer=n;
return this; return this;
} }
/*}}}*/ /*}}}*/
struct Value *Value_new_REAL(struct Value *this, double n) /*{{{*/ struct Value *Value_new_REAL(struct Value *this, double n) /*{{{*/
{ {
assert(this!=(struct Value*)0); assert(this!=(struct Value*)0);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)