MCPcopy Create free account
hub / github.com/SimHacker/micropolis / initGraphs

Function initGraphs

micropolis-activity/src/sim/w_graph.c:549–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547
548
549void
550initGraphs(void)
551{
552 int i;
553 SimGraph *graph;
554
555 for (graph = sim->graph; graph != NULL; graph = graph->next) {
556 graph->range = 10;
557 graph->mask = ALL_HISTORIES;
558 }
559
560 if (!HistoryInitialized) {
561 HistoryInitialized = 1;
562 for (i = 0; i < HISTORIES; i++) {
563 History10[i] = (unsigned char *)ckalloc(120);
564 History120[i] = (unsigned char *)ckalloc(120);
565 }
566 }
567}
568
569
570/* comefrom: InitWillStuff */

Callers 2

sim_initFunction · 0.85
simInitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected