#include #include "structs.h" struct trunc_links *new_trunclink () { struct trunc_links *new; new = (struct trunc_links *) malloc ((size_t)(sizeof (struct trunc_links))); new->objtype = NULL; new->innout = 1; new->lrtype = 1; new->tilt = 0; new->a = NULL; new->ia = NULL; new->f = NULL; new->r = NULL; new->b = NULL; new->c0 = NULL; new->drd = NULL; new->fdrd = NULL; new->rdrd = NULL; new->drdc = 0; new->df = NULL; new->fdf = NULL; new->rdf = NULL; new->bdf = NULL; new->c0df = NULL; new->next = NULL; return (new); } struct trunc_val *new_truncval () { struct trunc_val *new; new = (struct trunc_val *) malloc ((size_t)(sizeof (struct trunc_val))); new->tilt = 0; new->gtr = 0.; new->s = 0.; new->tanh = 0.; new->cosPA = 0.; new->sinPA = 0.; new->am = 0.; new->dfnorm = 0.; new->P = 1.; new->dfdam = 0.; new->next = NULL; return (new); }