Home
last modified time | relevance | path

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

/external/python/cpython2/Demo/scripts/
Dmarkov.py4 def __init__(self, histsize, choice): argument
5 self.histsize = histsize
13 n = self.histsize
23 n = self.histsize
55 histsize = 2
59 if '-0' <= o <= '-9': histsize = int(o[1:])
67 m = Markov(histsize, random.choice)
99 if key is None or len(key) < histsize:
101 if histsize == 0: print repr(''), m.trans['']
/external/mksh/src/
Dhistrap.c507 if (n > 0 && n != histsize) { in sethistsize()
518 histsize = n; in sethistsize()
567 histsize = MKSH_DEFHISTSIZE; in init_histvec()
568 history = alloc2(histsize, sizeof(char *), APERM); in init_histvec()
678 if (++hp >= history + histsize) { in histsave()
681 for (hp = history; hp < history + histsize - 1; hp++) in histsave()
774 if (lines > histsize && histptr >= history) { in hist_init()
Dvar.c1242 num.i = histsize; in getspec()
Dsh.h2007 EXTERN mksh_ari_t histsize; /* history size */ variable