Commit Graph

3776 Commits

Author SHA1 Message Date
michael
aa681f5e11 * Parse cookies after initializing request variables
git-svn-id: trunk@15722 -
2010-08-06 09:07:44 +00:00
michael
ab49610156 * Switch off debug define
git-svn-id: trunk@15721 -
2010-08-06 09:07:12 +00:00
michael
cfb06bc681 * Correct check for Session in checksession, and do not create same session cookie twice
git-svn-id: trunk@15720 -
2010-08-06 09:06:44 +00:00
michael
67822209c4 * Null values should be sent as NULL in json
git-svn-id: trunk@15719 -
2010-08-06 09:04:40 +00:00
sergei
f39e793448 * Moved TWideCharBuf and associated functions from xmlread.pp to xmlutils.pp, so this stuff can be reused by other code.
git-svn-id: trunk@15718 -
2010-08-06 08:00:45 +00:00
sergei
e1eec8c687 - xmlread.pp, removed redundant 'var' modifiers from TStream arguments of less common used functions. This should have been done a long ago, as part of r11788.
git-svn-id: trunk@15717 -
2010-08-06 07:44:51 +00:00
marco
38fb33f09a * fix for mantis 17083, change funcdesc field to ptr to array of hresult
instead of just ptr to scode.

git-svn-id: trunk@15715 -
2010-08-06 03:12:52 +00:00
michael
6e68edac21 * Support for design-time parameters
git-svn-id: trunk@15714 -
2010-08-05 21:47:47 +00:00
marco
348301c511 * fixed most remaining "deprecated" problems for procedure/methods and class blocks
(mantis 16342), only CONST x= 1 deprecated; remaining from this bugreport.

git-svn-id: trunk@15705 -
2010-08-03 20:51:04 +00:00
marco
5dde3abcdc * fix hint parsing after UNIT token.
git-svn-id: trunk@15704 -
2010-08-03 19:43:53 +00:00
marco
bea7ff9971 * check hints at end of class.
git-svn-id: trunk@15703 -
2010-08-03 19:30:43 +00:00
michael
ea72abc6a5 * Fixed never-ending CGI scripts
git-svn-id: trunk@15698 -
2010-08-03 08:39:55 +00:00
michael
62adc74dc4 * Bugfix for case of more than one handler classname
git-svn-id: trunk@15696 -
2010-08-03 07:57:20 +00:00
marco
281f0f2a8c * mixed patches from Dmitry B, that fix the doc generation it seems.
git-svn-id: trunk@15687 -
2010-08-01 18:38:55 +00:00
blikblum
50861d26ab * Do not change SQL property value internally. Use instead a separated field (FEffectiveSQL)
git-svn-id: trunk@15686 -
2010-08-01 14:13:51 +00:00
marco
443b4ad8dc * misc patches from mantis 17058, which fixes 70% of the fpdoc errors.
git-svn-id: trunk@15676 -
2010-07-31 19:28:46 +00:00
marco
15efa8152b * Patch from Nikolay adding a hline variant for VESA modes. Mantis 17073
git-svn-id: trunk@15675 -
2010-07-31 18:57:10 +00:00
marco
54758c85d8 * SmsSendMessage's 2nd parameter changed to pointer, mantis 14605
git-svn-id: trunk@15674 -
2010-07-31 07:43:34 +00:00
marco
70e06479d3 * Sergei's patch for charset constants from 17058, and a small errortext improvement from me.
git-svn-id: trunk@15672 -
2010-07-30 17:51:35 +00:00
michael
fcfcfc43cf * Patch from Luiz Americo to put Const in front of string parameters
git-svn-id: trunk@15670 -
2010-07-30 13:36:31 +00:00
michael
f238ddd7b9 Ext.Direct compliant error handling. API now also handles more than one handler. Session handling added
git-svn-id: trunk@15669 -
2010-07-30 10:13:12 +00:00
michael
e1a8b5ad38 * error handling is slightly different in ext.direct. Create virtual method so it can be overridden
git-svn-id: trunk@15668 -
2010-07-30 10:12:33 +00:00
michael
2dd59f84c1 * Dependency op fcl-process voor dbugintf
git-svn-id: trunk@15667 -
2010-07-30 10:09:26 +00:00
michael
9a60cc661d * Remove src as include dir, causes conflict with parser.inc of classes unit
git-svn-id: trunk@15666 -
2010-07-30 09:54:55 +00:00
michael
324fe011db * Patch from Luiz Americo to use const string params in Log call
git-svn-id: trunk@15665 -
2010-07-30 09:26:21 +00:00
michael
f4c00b4e26 * Patch from Luiz Americo to use Const string params where possible
git-svn-id: trunk@15664 -
2010-07-30 09:08:51 +00:00
sergei
1876fb1c74 XPath: now when predicate filtering is no longer dependent on axis, it becomes possible to use the same code for TStep and TXPathFilterNode. Inherited TStep from TXPathFilterNode, removed duplicating code.
git-svn-id: trunk@15654 -
2010-07-28 15:25:19 +00:00
marco
95f74fbb11 * extractalias command, to extract the context info into alias and .h files. (request by an user)
git-svn-id: trunk@15653 -
2010-07-28 14:33:50 +00:00
sergei
ae7aef0861 XPath: reworked step processing:
* For ancestor and ancestor-or-self axes, added checks for attribute nodes similar to parent axis.
* For reverse axes, collect and filter nodes in 'natural' (i.e. reversed) order, and only then reverse order while adding to result node set. This is much simpler to implement.
* Fixed memory leak (not destroying TXPathFilterNode.FExpr)

git-svn-id: trunk@15652 -
2010-07-28 14:25:08 +00:00
sergei
22038d7db6 + XPath test suite, implemented possibility to use a specified context node instead of fixed root element.
* enabled expressions which start with a FilterNode.
+ added a test for ancestor:: axis of attribute.

git-svn-id: trunk@15650 -
2010-07-28 12:24:27 +00:00
marco
4b063ea245 * sitemaps now initially scanned, recursive scanning fixed.
git-svn-id: trunk@15649 -
2010-07-27 18:33:52 +00:00
marco
b1f29d4473 * added parameter to skip filesizes etc, to easier compare chmls listings.
git-svn-id: trunk@15648 -
2010-07-27 18:30:47 +00:00
florian
a7510e581c - remove superfluous "end." as reported by Sven Barth, resolves #17017
git-svn-id: trunk@15644 -
2010-07-26 20:27:07 +00:00
sergei
c902b96673 * XPath, change parsing of function call so that function arguments are parsed before creating the function node. This way function nodes can validate their arguments at creation time.
* also changed function argument container type from TFPList to dynamic array.

git-svn-id: trunk@15641 -
2010-07-26 19:30:26 +00:00
Jonas Maebe
5863c0fa7f * fixed range errors
git-svn-id: trunk@15640 -
2010-07-26 18:09:50 +00:00
sergei
5352b78c4a * XPath, fixed parsing of 'prefix:*' node tests:
o The prefix to resolve should not include following ':*' characters
  o NextToken changes CurTokenString, so NextToken must be after reading CurTokenString.
  o Added a test for that
* XPath test suite, fixed comparison of numeric result (it is quite tricky in presence of NaNs).

git-svn-id: trunk@15639 -
2010-07-26 16:35:35 +00:00
sergei
0f5795baaf XPath, use a perfect hash to recognize all possible keywords.
git-svn-id: trunk@15638 -
2010-07-26 13:49:46 +00:00
sergei
83711ff972 XPath improvements:
- Deleted TXPathLocationPathNode, it was too much overhead to store a single bit of information. The path root (if any) is now represented by TStep node with Axis=axisRoot.
* Changed TStep linkage from 'right' to 'left', this is consistent with the way of parsing  expressions and considerably simplifies evaluation.
* Fixed ParsePathExpr procedure so it no longer accepts empty/truncated expressions.

git-svn-id: trunk@15632 -
2010-07-24 23:15:35 +00:00
sergei
d44a1603db * TXPathScanner.ParseStep split into two functions in order to reduce complexity and improve readability.
* Also modified it so the data is accumulated in local vars, and resulting TStep objects are created only after the parsing is successfully complete.
* TXPathScanner.ParsePrimaryExpr: eliminated variable.

git-svn-id: trunk@15628 -
2010-07-24 03:21:40 +00:00
joost
c024cbfb4c * Set the global CustomApplication variable, usefull for logging
git-svn-id: trunk@15622 -
2010-07-21 11:02:45 +00:00
joost
b5a6d94593 * Moved the handling of web-request from the TCustomWebApplication to a new class
TWebHandler. TCustomWebApplication and derivates are now a wrapper around the TWebHandler
 * Added TWebHandler.OnIdle event

git-svn-id: trunk@15621 -
2010-07-21 10:24:01 +00:00
ivost
c57dd2785e * added support for xsd:base64Binary xml datatype
* TStream to String encoder
* String to TStream decoder

git-svn-id: trunk@15619 -
2010-07-20 14:16:28 +00:00
joost
734dc9e9df * Reverted accidentally committed files in r15616
git-svn-id: trunk@15617 -
2010-07-20 09:55:42 +00:00
joost
790503cfc2 * Fixed FastCGI listening on a port on Windows after r15099
git-svn-id: trunk@15616 -
2010-07-20 09:52:22 +00:00
joost
746d03ea23 * Added TCustomFCgiApplication.Address property to change listen-ip-address
git-svn-id: trunk@15615 -
2010-07-20 09:41:26 +00:00
Jonas Maebe
66b29841dd * use the framework version of OpenAL for Mac OS X (based on patch by
Dmitry Boyarintsev, mantis #16961)

git-svn-id: trunk@15611 -
2010-07-19 14:16:42 +00:00
Jonas Maebe
e56f5d9462 + wavopenal example to play a wav file by Dmitry Boyarintsev (mantis #16961)
* only compile madopenal.pas for platforms for which the "mad" package
    gets compiled

git-svn-id: trunk@15610 -
2010-07-19 14:15:23 +00:00
Jonas Maebe
e881e4aa22 * always use the read window to read from video memory (patch by
Nikolay Nikolov, mantis #16926)

git-svn-id: trunk@15597 -
2010-07-18 09:48:56 +00:00
marco
eead32ac62 * unblock folded into chmls and deleted.
git-svn-id: trunk@15593 -
2010-07-17 11:52:58 +00:00
andrew
0470c544d6 * fixed bug #15838 where chm urls might have a backslash in the url
git-svn-id: trunk@15592 -
2010-07-17 03:33:28 +00:00
marco
e266ea453e * added extractall command to extract all files in a chm.
git-svn-id: trunk@15591 -
2010-07-16 21:05:32 +00:00
michael
28a97035eb * Patch from Dmitry Boyarintsev to improve expression parsing (16931).
git-svn-id: trunk@15590 -
2010-07-16 19:03:47 +00:00
joost
4fc3ef3c18 * Show help-message with default actions when no action is given, IsConsole
is true and there is no OnRun event handler
 * Use TCustumApplication.Log method for logging
 * Because the logger was freed before exceptions were shown, exceptions were
   never logged. Now they are.

git-svn-id: trunk@15588 -
2010-07-16 16:35:47 +00:00
joost
a6542d988e * Forgot to commit OS/2 file in r15586
git-svn-id: trunk@15587 -
2010-07-16 16:16:08 +00:00
joost
8d9f3feafa * Added the ability to un-register the eventlog message-file
git-svn-id: trunk@15586 -
2010-07-16 16:14:29 +00:00
andrew
82c31c7139 * Fixed chm bug that stopped the search db fr ever being written to a file
git-svn-id: trunk@15584 -
2010-07-15 21:42:02 +00:00
Jonas Maebe
517290d09d * fixed pthread_create signature
git-svn-id: trunk@15580 -
2010-07-15 12:02:48 +00:00
marco
55927f4264 * two more changed defaults and default parsing errors.
git-svn-id: trunk@15579 -
2010-07-15 09:45:41 +00:00
marco
526c9e2eaf * more little fixes from initial testing. Mostly errormessages and .hhp defaults.
chmls -n switch

git-svn-id: trunk@15578 -
2010-07-15 08:58:54 +00:00
michael
6f58da1d49 * Removed debug conditional
git-svn-id: trunk@15577 -
2010-07-15 08:24:49 +00:00
Jonas Maebe
13142a17dd * added fcl-web to the unit search path
git-svn-id: trunk@15576 -
2010-07-15 08:02:23 +00:00
Jonas Maebe
869efc9388 * fcl-web/src/webdata/* depends on fcl-process (dbugintf unit)
git-svn-id: trunk@15575 -
2010-07-15 07:28:07 +00:00
sergei
b4b83a7edb * HTML reader, attempt recovery from misplaced '<' characters (another part of Mantis #16916).
git-svn-id: trunk@15574 -
2010-07-15 04:54:14 +00:00
andrew
28041f3e3f * fixed a possible chm compiler crash when a chm without .ht* files is created but full search is enabled.
git-svn-id: trunk@15573 -
2010-07-15 03:28:43 +00:00
michael
2796b58cfd * Always send date/time in fixed format, send used format as well in metadata
git-svn-id: trunk@15572 -
2010-07-14 14:36:30 +00:00
michael
463faef0b6 * Implemented OnParamValue event
git-svn-id: trunk@15571 -
2010-07-14 14:35:36 +00:00
sergei
1a50f3ed26 * The fix in r15551 was not entirely correct. Must handle the case when string ends with a single whitespace.
git-svn-id: trunk@15570 -
2010-07-14 14:35:13 +00:00
michael
a872d84f72 Disabled debug define
git-svn-id: trunk@15569 -
2010-07-14 14:34:33 +00:00
michael
1b20fa6843 * Actually implemented Options (readonly, disable edit/delete/insert
git-svn-id: trunk@15568 -
2010-07-14 14:33:41 +00:00
michael
2397fa8b40 * Implemented ProtocolOptions and OnUnknownRecord to handle unknown FastCGI records
git-svn-id: trunk@15567 -
2010-07-14 14:31:50 +00:00
michael
0ee895f141 * Include trailing path delimiter. Check if session exists; Added some debug statements (in CGIDebug conditional)
git-svn-id: trunk@15566 -
2010-07-14 14:28:41 +00:00
michael
614d5e4858 * Added support for modules that do not have a stream associated with them; they are created with CreateNew
git-svn-id: trunk@15565 -
2010-07-14 14:26:09 +00:00
sergei
7e2f713d09 * HTML parser: in case of malformed input, do not create attributes with invalid names (Mantis #16916).
* Along the way, eliminated one layer of useless converting strings from wide to ansi and back.

git-svn-id: trunk@15564 -
2010-07-14 13:54:09 +00:00
marco
119277166e * fixed a problem in chmreader wrt moment of fwindows creation
* removed a redundant line from chmcmd (leftover from the getopts example)
 * reworking chmls on a getopts basis, like chmcmd, and make it support extracting files. (no wildcards (yet))

git-svn-id: trunk@15563 -
2010-07-13 17:57:49 +00:00
michael
56d3739a03 * Patch from Dmitry Boyarintsev to implement expression parsing. Improved to have operator as enumerated
git-svn-id: trunk@15559 -
2010-07-12 20:56:43 +00:00
marco
3719524cb0 * Improved link scanning, and chmcmd commandline handling
git-svn-id: trunk@15558 -
2010-07-12 20:10:21 +00:00
marco
547f082abc * YOffset-pageswitch moved later into directputpix procedure, since an
intermediate read might otherwise fail (yoffset is a global) mantis #16911

git-svn-id: trunk@15556 -
2010-07-12 08:43:22 +00:00
andrew
9b55d22267 * fixed a bug where the header size was incorrectly reported causing useless chm files
git-svn-id: trunk@15554 -
2010-07-11 18:52:35 +00:00
sergei
83238862f7 * The tag name may be followed by any whitespace char, not only #32 (Mantis #16906)
git-svn-id: trunk@15551 -
2010-07-11 13:21:08 +00:00
marco
05c40669e6 * initial #windows, defaultwindow support
* initially working .hhp support in chmcmd
 * index and toc are not always named default.hh[k/c] anymore, but use the names in the project xml if specified.
 * callback to allow basic output for filewriter/chmcmd

git-svn-id: trunk@15550 -
2010-07-11 12:55:56 +00:00
andrew
532fb57eee * updated copyrights
git-svn-id: trunk@15549 -
2010-07-11 12:46:36 +00:00
andrew
ab10e35fd5 * added basic reading for ms help 2 the successor to chm
git-svn-id: trunk@15548 -
2010-07-11 12:43:38 +00:00
andrew
a0f62a1336 * Fixed a potential bug where a value would not change if a contition wasn't met
* Made TITSFReader friendlier for inherited classes
* Small fix for threaded lzx compressor

git-svn-id: trunk@15547 -
2010-07-11 12:13:36 +00:00
joost
b3ca47e88a * Install the doc and example sourcefiles
* Added ability to specify in which subdir a doc/example sourcefile should be
   installed
 * Replace the at that place unset Prefix fpr baseinstalldir in two locations
 * Removed useless if-then construct

git-svn-id: trunk@15542 -
2010-07-10 11:19:56 +00:00
Jonas Maebe
36e4f3d38b * fixed getting upper byte of "extra field" (patch by Brett, mantis #16887)
git-svn-id: trunk@15537 -
2010-07-09 20:11:19 +00:00
joost
9f071282b3 * Added ALoaded parameter to MessageBox
git-svn-id: trunk@15528 -
2010-07-05 13:59:20 +00:00
marco
7b17aed939 * Remove leading / from LookupTopicByID. Mantis 16688 patch by Zilvinas Ledas.
git-svn-id: trunk@15520 -
2010-07-03 17:10:20 +00:00
joost
37eed41c52 * Map blob to SQL_LONGVARBINARY, MS SQL has a maximum of 8000 bytes for SQL_BINARY types, bug #14907
git-svn-id: trunk@15507 -
2010-07-01 15:50:17 +00:00
joost
64c824cd86 * Make sure that fixed width parameters are really ftFixedChar
git-svn-id: trunk@15506 -
2010-07-01 15:44:21 +00:00
joost
57e39c37ae * Added ability to specify fieldname-quote chars for tests. Usefull for ODBC where these chars can differ
git-svn-id: trunk@15505 -
2010-07-01 15:21:46 +00:00
blikblum
1bf2cfd5e8 * Set Datasize for the unrecognized field types
git-svn-id: trunk@15503 -
2010-06-30 20:25:25 +00:00
joost
32fd85f17e * Revert accidentally commited files in r15499
git-svn-id: trunk@15500 -
2010-06-30 18:32:25 +00:00
joost
f016c79d7a * Patch from Luiz Americo to fix a double pathdelim in filename, bug #16737
git-svn-id: trunk@15499 -
2010-06-30 18:29:41 +00:00
joost
c58e26e25a * Implemented GetTableNames, systemtables=true, bug #13893, by Ladislav Karrach
git-svn-id: trunk@15498 -
2010-06-30 18:17:27 +00:00
michael
accb7032f2 * Applied patch from Luiz Americo to improve speed (const for string params)
git-svn-id: trunk@15496 -
2010-06-30 10:43:18 +00:00
michael
0a4e4d3c62 * Patches for bugs 16815 and 16807 (double type and access violation when accessing non-existent member
git-svn-id: trunk@15495 -
2010-06-30 10:35:04 +00:00
marco
257440153f * fix example that is still in 1.0.x state.
git-svn-id: trunk@15493 -
2010-06-29 18:27:53 +00:00
Jonas Maebe
18542d663e * fixed 16 color vesa get/putpixel offsets (patch by Nikolay Nikolov,
mantis #16806)

git-svn-id: trunk@15490 -
2010-06-29 09:22:09 +00:00
joost
01f11e8ada * Set defailt value for UniDirectional
git-svn-id: trunk@15489 -
2010-06-28 19:17:52 +00:00
Jonas Maebe
469106629c * properly initialise graphresult when setgraphmode is called directly
(patch by Nikolay Nikolov, mantis #16798)

git-svn-id: trunk@15485 -
2010-06-27 12:38:30 +00:00