- 04 Nov, 2010 5 commits
-
-
Rusty Russell authored
I moved the code around and missed this.
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
Comments of form "// [given x] outputs y" we can check the examples do as expected.
-
Rusty Russell authored
-
- 03 Nov, 2010 13 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
No longer abort ccanlint because a test fails, but you will get a low score if there are no tests. (Note: total_score is filled in, even if it's overridden when the test is run. This means that if the prereq fails, that total counts so there is still a penalty!)
-
Rusty Russell authored
The heuristics can be hinky, so tell people what we're doing.
-
Rusty Russell authored
A simple C program to generate config.h. It also saves the compiler and flags for use by ccanlint (though they have to accept -c and -o).
-
Rusty Russell authored
Warnings about ignored returns, and uninitialized len after case statement.
-
Rusty Russell authored
unsigned char * is allowed to alias, so we use that for byte reversing rather than uint32_t. This is portable. Remove warnings about ignoring pread/pwrite return values. And initialize tdb before setjmp: with optimization, gcc validly saw this as NULL and crashed.
-
Rusty Russell authored
A void * could point to anything, but a void ** can't point to any pointer. So we use a void * and memcpy, which I believe is safe.
-
Rusty Russell authored
-
Rusty Russell authored
Compiling with gcc -O3 added some more warnings, especially about aliasing. By setting Word_t to size_t we fix some of them, but jmap_@name_firstval in JMAP_DEFINE_PTRIDX_TYPE we need to use a real size_t rather than lazily casting our index to a size_t *. Gcc also spotted taht we used idx[NUM] in test/run-ptridx-type.c; allocate that and make the usage explicit.
-
- 02 Nov, 2010 1 commit
-
-
Rusty Russell authored
-
- 30 Oct, 2010 3 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
-
- 29 Oct, 2010 1 commit
-
-
Rusty Russell authored
-
- 27 Oct, 2010 1 commit
-
-
Rusty Russell authored
I noticed this when I straced something; we're doing 1-byte writes. This reduced the time for "make check" from 12m37s to 11m48s.
-
- 26 Oct, 2010 7 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
If you've not got gcc, this is a bit of a lose. But for everyone else, it's far simpler.
-
Rusty Russell authored
Doing our own parsing lost a few lines of code, too. Our coverage is over 99% now.
-
Rusty Russell authored
This was for lockcheck, but that didn't work very well. Seems like a useful addition nonetheless.
-
Rusty Russell authored
With correct seed, we could expand hash and break test.
-
Rusty Russell authored
Paul Wayper points out that "or" has a better mental mapping, and more importantly that this is how Perl's Getopt::Long does it. I'm still leaving the - and -- in there, for reasons previously articulated (grep-friendly and harder to get wrong).
-
- 21 Oct, 2010 3 commits
-
-
Joey Adams authored
-
Rusty Russell authored
-
Rusty Russell authored
-
- 20 Oct, 2010 6 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
In particular, gcc warns about cast from int to pointer.
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
Instead, directly control write().
-