File: README.cpl-gc

package info (click to toggle)
ngspice 39.3%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 64,872 kB
  • sloc: ansic: 523,412; cpp: 16,076; xml: 9,174; makefile: 3,776; sh: 2,519; perl: 2,287; yacc: 1,519; tcl: 1,040; lex: 318; pascal: 241; python: 143
file content (10 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
Copyright 2021 Holger Vogt
New BSD license.

A local garbage collector, especially cpl transmission line

All memory allocation and deallocation are accompanied by functions from cplhash.c.
Each time any memory is allocated, an entry is made into a hash table, storing the address.
Each time memory is freed, this entry is removed again. Reallocation uses both procedures.
Function mem_init() initializes the setup.
Function mem_delete() frees all memory with addresses still found in the hash table.