OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [libgui/] [library/] [gensym.tcl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# gensym.tcl - Generate new symbols.
2
# Copyright (C) 1997 Cygnus Solutions.
3
# Written by Tom Tromey <tromey@cygnus.com>.
4
 
5
# Internal counter used to provide new symbol names.
6
defvar GENSYM_counter 0
7
 
8
# Return a new "symbol".  This proc hopes that nobody else decides to
9
# use its prefix.
10
proc gensym {} {
11
  global GENSYM_counter
12
  return __gensym_symbol_[incr GENSYM_counter]
13
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.