Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/hp2graph/mark.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include "hp2graph.h"

int marksize = 0;
Mark *markdata = 0;

static int markmax = 32;

void addMark(double t)
{
  if(!markdata || marksize == markmax) {
    markmax *= 2;
    if(!(markdata = (Mark *)extend(markdata, markmax*sizeof(Mark)))) {
      fprintf(stderr,"Out of memory when allocating memory for MARK at %d\n",lexline);
      abort();
    }
  }
  markdata[marksize++]=t;
}
  





Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.