25 lines
485 B
C
25 lines
485 B
C
|
|
#include <debug.h>
|
|
|
|
#include "../new.h"
|
|
#include "../inc.h"
|
|
|
|
#include "inheritance.h"
|
|
#include "struct.h"
|
|
#include "new.h"
|
|
|
|
struct expression* new_not_expression(
|
|
int cost,
|
|
struct expression* inner)
|
|
{
|
|
struct not_expression* this =
|
|
(void*) new_expression(
|
|
/* inheritance: */ ¬_expression_inheritance,
|
|
/* cost: */ cost,
|
|
/* size: */ sizeof(*this));
|
|
|
|
this->inner = inc_expression(inner);
|
|
|
|
return (void*) this;
|
|
}
|
|
|