Home
last modified time | relevance | path

Searched refs:histsize (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Tools/demo/
Dmarkov.py8 def __init__(self, histsize, choice): argument
9 self.histsize = histsize
17 n = self.histsize
27 n = self.histsize
59 histsize = 2
63 if '-0' <= o <= '-9': histsize = int(o[1:])
71 m = Markov(histsize, random.choice)
103 if key is None or len(key) < histsize:
105 if histsize == 0: print(repr(''), m.trans[''])
/third_party/mksh/
Dhistrap.c510 if (n > 0 && n != histsize) { in sethistsize()
521 histsize = n; in sethistsize()
570 histsize = MKSH_DEFHISTSIZE; in init_histvec()
571 history = alloc2(histsize, sizeof(char *), APERM); in init_histvec()
681 if (++hp >= history + histsize) { in histsave()
684 for (hp = history; hp < history + histsize - 1; hp++) in histsave()
816 if (lines > histsize && histptr >= history) { in hist_persist_init()
Dvar.c1278 num.i = histsize; in getspec()
Dsh.h2366 EXTERN mksh_ari_t histsize; /* history size */ variable