summary refs log tree commit diff
path: root/stack.h
blob: 61c6fc281fe036af4b8d81378de87447712f2bc6 (plain) (blame)
1
2
3
4
2018-09-19
* Un-NOT trans.alpha values in pngoJune McEnroe2018-09-19
* Refactor reads in pngo and clear palette between filesJune McEnroe2018-09-18
* Add tRNS support to pngoJune McEnroe2018-09-17
* Move gfx man pages to gfx/manJune McEnroe2018-09-11
* Move bin man pages to bin/manJune McEnroe2018-09-11
* Rewrite gfx.7 and render plaintext READMEJune McEnroe2018-09-11
* Remove GAMES from BINSJune McEnroe2018-09-11
* Rewrite bin.7 and render to plaintext READMEJune McEnroe2018-09-11
* Add "blank" lines to man pagesJune McEnroe2018-09-11
* Add mdoc syntax fileJune McEnroe2018-09-10
* Fix Nm usage in multi-name man pagesJune McEnroe2018-09-08
* Put real dates on man pagesJune McEnroe2018-09-08
* Replace gfx README with REAMDE.7June McEnroe2018-09-08
* Link gfx man pages in ~/.localJune McEnroe2018-09-08
* Add gfxx.1June McEnroe2018-09-08
* Add brot.1June McEnroe2018-09-08
* Replace README with README.7June McEnroe2018-09-07
* Add xx.1June McEnroe2018-09-07
* Add watch.1June McEnroe2018-09-07
* Add wake.1June McEnroe2018-09-07
* Add scheme.1June McEnroe2018-09-07
* Add pngo.1June McEnroe2018-09-07
* Use .Dl for examplesJune McEnroe2018-09-07
* Add pbd.1June McEnroe2018-09-07
* Add modem.1June McEnroe2018-09-07
* Add klon.6June McEnroe2018-09-07
* Pass "command ..." as one string to ArJune McEnroe2018-09-07
* Add hnel.1June McEnroe2018-09-07
* Link man pages in ~/.localJune McEnroe2018-09-07
* Symlink atch.1June McEnroe2018-09-07
* Add .Os macro to all man pagesJune McEnroe2018-09-07
* Add glitch.1June McEnroe2018-09-07
* List FRAMEBUFFER defaults in FILES sectionJune McEnroe2018-09-07
* Remove -width options from .BlJune McEnroe2018-09-07
* Add fbclock.1June McEnroe2018-09-07
* Add fbatt.1June McEnroe2018-09-07
* Revert "Add README.7"June McEnroe2018-09-07
* Add README.7June McEnroe2018-09-07
* Add dtch.1June McEnroe2018-09-07
* Add bri.1June McEnroe2018-09-07
* Add In for a World of HurtJune McEnroe2018-09-07
* Use tabs in READMEJune McEnroe2018-09-05
* Remove disown from READMEJune McEnroe2018-09-05
* Factor out pixelBits, pixelSize in glitchJune McEnroe2018-09-05
* Factor out pixelBits, pixelSize in pngoJune McEnroe2018-09-05
* Zero after mirrorJune McEnroe2018-09-05
* Simplify glitch -x -y to just zeroJune McEnroe2018-09-05
* Add glitch -x and -yJune McEnroe2018-09-05
ss="Id">n > src->len) n = src->len; for (Uint8 i = 0; i < n; ++i) { stackPush(dst, src->cards[src->len - n + i]); } src->len -= n; } static inline int randUniform(int bound) { for (;;) { int r = rand(); if (r >= RAND_MAX % bound) return r % bound; } } static inline void stackShuffle(struct Stack *stack) { for (Uint8 i = stack->len - 1; i > 0; --i) { Uint8 j = randUniform(i + 1); Card x = stack->cards[i]; stack->cards[i] = stack->cards[j]; stack->cards[j] = x; } } #endif