hi,
do you have any suggestions for a better fix for
d99b820bd5312b8dbd7d15ceddc4f0d4052d37bb
to allow to specify include_prefix as an argument to make?
i accept the issue with ?= being a gnu thing, but i don't yet understand
what problems the other changes cause.
include_prefix = vars->include_prefix||combine_path(prefix,"include","pike");
should not change if include_prefix is not specified.
if vars->include_prefix has a value but no include_prefix argument was
given, then …
[View More]something else must be wrong.
for include_prefix="$(include_prefix)" $(INSTALLARGS)
if include_prefix is not specified as a make argument, this change
should not do anything because arguments are checked in install.pike
with
foreach(argv[1..], string foo)
if(sscanf(foo,"%s=%s",string var, string value)==2)
vars[var]=value;
greetings, martin.
[View Less]
I ran into some resolver issues while writing the inotify module. Maybe
related to what was on the list a while ago.
The problem seems to be that when using
#if constant(Public.System.Inotify.someconstant)
inside of Public.System.Inotify (using #if constant(someconstant)
directly doesnt work in the first place).
Compilation works fine but afterworks that constant cannot be accessed
in some cases. for instance doing
import Public.System.Inotify;
do_something(Public.System.Inotify.…
[View More]someconstant);
does not compile because someconstant cannot be found. I encountered
some other problems in various combinations... (with import/without).
It still works to index by hand using `[]().
Maybe I should not check for some local constant in a preprocessor
directive?
arne
ps. i added the module to gotpike. the constant causing the trouble is
IN_MASK_ADD.
[View Less]
2
1
sizeof(int)
by Martin Stjernholm, Roxen IS @ Pike developers forum
02 Jun '09
02 Jun '09
Let me correct myself: It could in theory be less, since
Pike.NATIVE_MAX is signed. In practice the problem in such a case
certainly will be elsewhere, though.
1
0
Re: sizeof(int)
by Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
01 Jun '09
01 Jun '09
Then you need to know the size of the inotify event int, rather than
the native size of a pike int. They need not be the same. Doesn't
the inotify specification specify the size of the int?
1
0
sizeof(int)
by Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
01 Jun '09
01 Jun '09
And what are you going to do with the data that falls outside the
"limit"?