-
Hi John,
gmsl is a nice thing. :-) Thanks.
What about adding a sequence function (doing something similar to /usr/bin/seq) to gmsl?
("seq" is already used for string equal, so I use "sequence")
e.g. $(call sequence,3,5) should return "3 4 5" (like $(shell seq 3 5))
so you can do for-loops and similar stuff:
$foreach i,$(call sequence,$(first),$(last)),do something with $i)
from...
2009-10-10 19:57:26 UTC by anbe
-
jgrahamc committed patchset 36 of module gmsl to the GNU Make Standard Library CVS repository, changing 4 files.
2008-05-21 09:08:04 UTC by jgrahamc
-
Fixed and added tests to gmsl-tests to verify.
2008-02-18 13:30:30 UTC by jgrahamc
-
jgrahamc committed patchset 35 of module gmsl to the GNU Make Standard Library CVS repository, changing 2 files.
2008-02-18 13:27:07 UTC by jgrahamc
-
Missing lowercase "x" letter in __gmsl_characters causes that substr function does not include it in its operation, which results in substring being longer so many letters as many "x" letters are in the original string.
The following command:
$(error $(call substr,xyzabc,1,3))
results in:
*** xyza. Stop.
2008-02-14 15:19:12 UTC by raspy
-
Thanks.
I've added this to my GMSL TODO list and I'll get to it (plus updating the test suite) in the new year.
John.
2007-12-20 11:12:29 UTC by jgrahamc
-
Here are fixes for all usages of $(eval) [excluding the test file that also has issues]. Note that I use _splitchar.gen for fixing both strlen and substr functions. Fixing push/pop/set was much easier, simply needed to do some extra escaping. It should also be noted that many characters can not be used as keys to the associative array (space, pound, left paren, right paren, dollar to name a...
2007-12-20 03:45:05 UTC by gaiper
-
jgrahamc committed patchset 34 of module gmsl to the GNU Make Standard Library CVS repository, changing 1 files.
2007-12-19 15:35:51 UTC by jgrahamc
-
Thanks for the feedback. You are, of course, correct that the $$ is getting $(eval)ed which is messing things up.
I don't have time to go through the GMSL code and fix all the instances, do you?
For the time being I'm going to check in code that will cause a fatal error if any of the arguments to the GMSL functions have a $ in them.
John.
2007-12-19 15:35:31 UTC by jgrahamc
-
jgrahamc committed patchset 33 of module gmsl to the GNU Make Standard Library CVS repository, changing 2 files.
2007-12-19 15:14:20 UTC by jgrahamc