From e994ac70a4d85cd933e674e0df70301dd86637ee Mon Sep 17 00:00:00 2001 From: herbert Date: Fri, 25 Feb 2005 20:49:13 +1100 Subject: Changed boolean rootshell into shlvl counter. --- src/main.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.h') diff --git a/src/main.h b/src/main.h index c305ab7..6b8e71c 100644 --- a/src/main.h +++ b/src/main.h @@ -42,8 +42,10 @@ /* pid of main shell */ extern int rootpid; -/* true if we aren't a child of the main shell */ -extern int rootshell; +/* shell level: 0 for the main shell, 1 for its children, and so on */ +extern int shlvl; +#define rootshell (!shlvl) + #ifdef __GLIBC__ /* glibc sucks */ extern int *dash_errno; -- cgit 1.4.1 commit Advent of Code
summary refs log tree commit diff homepage
path: root/2016/input/day20.txt (unfollow)
Commit message (Collapse)Author
2020-11-22Day 10, part 2June McEnroe
2020-11-22Day 10June McEnroe
2020-11-22Day 9, part 2June McEnroe
2020-11-22Day 9June McEnroe
I was really sick at the start of the week, okay?
2020-11-22Day 8, part 2June McEnroe
2020-11-22Day 8June McEnroe
2020-11-22Day 7, part 2June McEnroe
I don't even know what this is. Don't look at it.
2020-11-22Day 7June McEnroe
2020-11-22Day 6, part 2June McEnroe
2020-11-22Day 6June McEnroe
2020-11-22Day 5, part 2June McEnroe
2020-11-22Day 5June McEnroe
2020-11-22Day 4, part 2June McEnroe
That ugly sort map though.
2020-11-22Day 4June McEnroe
2020-11-22Day 3, part 2June McEnroe
I am super surprised that worked on the first try.
2020-11-22Day 3, clean upJune McEnroe
2020-11-22Day 3June McEnroe
This is fucking awful and I'm angry.
2020-11-22Day 2, part 2June McEnroe
2020-11-22Day 2June McEnroe
2020-11-22Day 1, part 2June McEnroe
2020-11-22Day 1June McEnroe
2020-11-22Move to 2016 directoryJune McEnroe