Hi, This is something confused me in neo_hash mode: 1, dose neo_hash.c line 146 should change to node = _hash_lookup_node(hash, *key, NULL); 2, and before we...
Hi, I'm trying to compile ClearSilver on a System i platform. The compiler is C89 compatible (AFAIK). I am compiling the stuff manually, starting with the util...
Schmidt, Mihael
Mihael.Schmidt@...
Jun 11, 2009 2:47 pm
1308
Hi, I'm using an HDF file to store account info and I wanted to know if there's an easy way to delete nodes and re-order. For example: Accounts{ 0{ user=joe ...
I suspect the real problem is with the other macros __PRETTY_FUNCTION, __FILE__ and __LINE__. These are magic macros defined by some compilers, but they might ...
... There isn't a quick way to reorder nodes.... I recommend using something unique as the HDF key and then just loading and sorting as needed. (i.e. the...
... it be ... definitely got ... nerr_raise() is setup to work like the printf() family of functions. For example, you might have: nerr_raise(NERR_ASSERT,...
Schmidt, Mihael
Mihael.Schmidt@...
Jun 12, 2009 5:18 am
1312
oh... it is util/ulocks.c (not util.ulock.c) I compiled clearsilver on a linux system and took the cs_config.h from it (and modified it a little bit). Now i...
Schmidt, Mihael
Mihael.Schmidt@...
Jun 12, 2009 5:34 am
1313
After some searching on the web I found that HAVE_LOCKF is queried in Clearsilver.h. There is seems that ulock, rcfs, dict and skiplist are optional (are not...
Schmidt, Mihael
Mihael.Schmidt@...
Jun 12, 2009 5:45 am
1314
Thanks -- that's a good suggestion. I'm not concerned about the order, so deleting/adding will be much easier. ... -- Regards, Rick Walsh rwalsh26@......
Yes, they aren't necessary for the template system or cgi code, they're just extra. Brandon ... -- "This universe never did make sense; I suspect it was built...
... So, clearsilver 0.10.5 doesn't auto-detect python 2.6. I should really fix the detection code so it doesn't need a list of major versions. It does work if...
Yeap, you're right, your fixes will be in the next release. Brandon ... -- "You know your god is man-made when he hates all the same people you do." -- M....
Hi I want to know where is save an uploaded file? i can upload a file, i can read in the uploaded file but when i go in /var/tmp i cant find my file. I try to...
By default, the clearsilver upload code automatically unlinks the file as soon as its created. On Unix, this has the effect that the file "exists" as long as...
Hello, can you tell me 1) howto check if hdf exists, but it's empty (in perl template) 2) howto check if hdf does not exist (in perl template) <?cs if:...
In C, you'd call hdf_get_obj, and a NULL return would indicate it didn't exist. You can then call hdf_obj_value to check the value. I'm not a perl expert, but...
Hi guys, Before calling render(), do we always have to parseFile()? I'm experimenting with FastCGI, and I thought I could store the parsed templates (one call)...
... Yes, you definitely can. That said, there's a couple gotcha's you need to watch out for. Basically, anything that uses an HDF during parse needs to have...
hello, in my hdf file I have the followings value: eqpt.revt.ETORS001.value=1 eqpt.revt.ETORS002.value=0 eqpt.revt.ETORS003.value=1 eqpt.revt.ETORS004.value=1 ...
... Well, obviously, you could do the trick with string.slice(), but it will be ugly. It would be great if ClearSilver had a full-fledged sprintf, but there is...
One of the regression tests fails on Snow Leopard, test_crc.cs. Specifically, the last line outputs '2166050276' when '-2128917020' is expected. Artifact of a...
Hi, Â Is there a way of sharing some information between all the pages the visitor is using on my site for the duration of his visit? For example, if users...
... There are several ways to do this. If the data is small, one of the simplest methods is to use a small temporary cookie. ... Here is how I would do this: ...
Yes, this is a known 64 bit issue that's fixed in the next version. Brandon ... -- "When life hands you lemons, ask for a bottle of Tequila and salt!" ...
Hi everybody, Brandon, I was dissatisfied with the value existence check operator ('?'), since most of the time I need *node* existence check, instead. So I...