Menu

Version 0.1.106 released

Finally CSP (C++ Server Pages) parser works the way I want it to work.
It was a bit of fun - digging into flex work, figuring out how buffering is handled, etc.
But now, in the end, we have a parser that does sane things:
1. It eats all white space after code and directives. This means that following code:
<%@page session="true"%>

<%
Cookie cook("hello", "world");
request.addCookie(cook);
%>
will actually work as expected.
Previously it would simply throw an exception,
because EOL's after first line would be
treated like a response body output to be sent to browser,
and thus would prevent any headers (like cookies) to be sent after it.

Also, another weird flex buffering bug caused first few symbols _after_ include directive to
be output _before_. This is resolved as well.

Finally, one of previous releases replaced many
invocations of strerror() with strerror_r(), which
actually broke error message reporting. This has
also been fixed (in .105 release)

Posted by Ilya A. Volynets-Evenbakh 2008-03-20

Log in to post a comment.