Re: [hackers] [sbase][patches] sort makefile and add getconf guard file

2016-10-03 Thread FRIGN
On Mon, 3 Oct 2016 15:59:10 -0700 Evan Gates wrote: Hey Evan, > After discussion on IRC, a patch that changes getconf.sh and creates a > single header. I have pushed your patch and one little tweak for the heredocs to the 2f30 staging repository. They'll hit mainline soon. Cheers FRIGN -- F

Re: [hackers] [sbase][patches] sort makefile and add getconf guard file

2016-10-03 Thread Evan Gates
On Mon, Oct 3, 2016 at 11:19 AM, FRIGN wrote: > On Thu, 29 Sep 2016 08:54:30 -0700 > Evan Gates wrote: >> sbase-getconf_guard.diff adds a guard file to the getconf rules so >> that getconf.sh doesn't get run multiple times in parallel. > > This could be solved a bit more elegantly. You can see th

Re: [hackers] [sbase][patch]find: copy path before using basename

2016-10-03 Thread FRIGN
On Mon, 3 Oct 2016 15:04:16 -0700 Evan Gates wrote: > "The basename() function may modify the string pointed to by path..." > Thanks POSIX. > + char path[strlen(arg->path)+1]; > + strcpy(path, arg->path); > + return !fnmatch((char *)arg->extra.p, path, 0); Please don't use VLA's. Us

[hackers] [sbase][patch]find: copy path before using basename

2016-10-03 Thread Evan Gates
"The basename() function may modify the string pointed to by path..." Thanks POSIX. From e4777a57d315df539517cf24bcb5a52659a93a77 Mon Sep 17 00:00:00 2001 From: Evan Gates Date: Mon, 3 Oct 2016 14:58:35 -0700 Subject: [PATCH] find: copy path before using basename "The basename() function may modi

Re: [hackers] [sbase][patches] sort makefile and add getconf guard file

2016-10-03 Thread FRIGN
On Thu, 29 Sep 2016 08:54:30 -0700 Evan Gates wrote: Hey Evan, > sbase-sort_makefile.diff sorts all the lists in the Makefile. Sorry > that was bugging me. this looks good. :) > sbase-getconf_guard.diff adds a guard file to the getconf rules so > that getconf.sh doesn't get run multiple times

[hackers] [scc] [cc2] Assign curfun only in functions || Roberto E. Vargas Caballero

2016-10-03 Thread git
commit 4c6c01a90ba930f89907cc16efc1a3b2d2f2db6c Author: Roberto E. Vargas Caballero AuthorDate: Mon Oct 3 16:11:37 2016 +0200 Commit: Roberto E. Vargas Caballero CommitDate: Mon Oct 3 16:11:37 2016 +0200 [cc2] Assign curfun only in functions Curfun was changed in every proto

[hackers] [scc] [tests] Add new test about call functions || Roberto E. Vargas Caballero

2016-10-03 Thread git
commit e1f34328f525289ed96ef82a644ce1abd6916c4e Author: Roberto E. Vargas Caballero AuthorDate: Mon Oct 3 16:16:48 2016 +0200 Commit: Roberto E. Vargas Caballero CommitDate: Mon Oct 3 16:16:48 2016 +0200 [tests] Add new test about call functions diff --git a/tests/0081-calls.c b/tes

[hackers] [scc] [cc2-qbe] Fix lhs() and OADDR || Roberto E. Vargas Caballero

2016-10-03 Thread git
commit d9b9cf2c66cd52605ddbac816cd204daf3f4a4cf Author: Roberto E. Vargas Caballero AuthorDate: Mon Oct 3 16:05:03 2016 +0200 Commit: Roberto E. Vargas Caballero CommitDate: Mon Oct 3 16:05:03 2016 +0200 [cc2-qbe] Fix lhs() and OADDR lhs was returning the source node instead

[hackers] [scc] [cc1] Fix cc1 tests after 9761a80 || Roberto E. Vargas Caballero

2016-10-03 Thread git
commit 204960d4e839953472c11204ea6b2e893019cc0e Author: Roberto E. Vargas Caballero AuthorDate: Mon Oct 3 13:42:10 2016 +0200 Commit: Roberto E. Vargas Caballero CommitDate: Mon Oct 3 13:42:10 2016 +0200 [cc1] Fix cc1 tests after 9761a80 diff --git a/cc1/tests/test002.c b/cc1/tests/

[hackers] [scc] [cc2-qbe] Improve generation of or/and || Roberto E. Vargas Caballero

2016-10-03 Thread git
commit 6c048208cdea11ad20bb09c24363cf7065bdc217 Author: Roberto E. Vargas Caballero AuthorDate: Mon Oct 3 13:39:43 2016 +0200 Commit: Roberto E. Vargas Caballero CommitDate: Mon Oct 3 13:39:43 2016 +0200 [cc2-qbe] Improve generation of or/and Cgen() was calling rhs() to gene