Re: [fpc-pascal] Parameter Checking in fpjsonrpc

2020-02-01 Thread Simon Ameis
Hello Michael, as the bugtracker is still not reachable, I'll send you my patch via the mailing list. As you suggested, there is a new option jroIgnoreExtraFields to ignore extra fields in the parameter objets. Objects in arrays are now validated against ParamDefs the same way a single object is

Re: [fpc-pascal] Parameter Checking in fpjsonrpc

2020-01-28 Thread Simon Ameis
> It is mising, but not forgotten; I have it on my todo list still, > together > with some other items for JSON-RPC > If you feel like implementing some rudimentary checks, please feel free. Let me see, what I can do next week. At least some checks if a parameter object has the required parameter

[fpc-pascal] Parameter Checking in fpjsonrpc

2020-01-27 Thread Simon Ameis
Hello all, is it correct, that TJSONRPCHandler only checks for parameter beeing object or array (according to TJSONRPCHandler.Options) or should it also check for individual parameters according to ParamDefs? For the latter I didn't find any implementation, so it is missing? Regards Simon _

Re: [fpc-pascal] pas2js: registering jQuery Mobile event callback

2019-07-17 Thread Simon Ameis
Am 17.07.2019 um 23:46 schrieb Michael Van Canneyt: > Several ways, but > TJSOBject(JQuery('#elementid'))['onhide']:=@yourfunction; >  should work. Thanks for the hint to the libjquery unit. This helps to resolve $('#elementid'). However I couldn't find any information on how to access the non-st

[fpc-pascal] pas2js: registering jQuery Mobile event callback

2019-07-17 Thread Simon Ameis
ting an external class for the jQuery object $("#elementid")? Regards Simon Ameis ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using constants in constant record definition

2019-06-15 Thread Simon Ameis
Am 13.06.2019 um 09:34 schrieb Dejan Boras: > It's not a bug. There's no support in FPC/Pascal for using constants > with a defined type in other declarations. > Define your MYINTEGERCONST without a type, and it should work. Thanks all. It was a bit late and while working with existent code, I did

[fpc-pascal] Using constants in constant record definition

2019-06-12 Thread Simon Ameis
nded or should I fill in a bug report? If it's intendet, I'm wondering why? Regards Simon Ameis ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] AVR Busy Wait implementation

2016-01-23 Thread Simon Ameis
Would it be possible to issue a hint why a procedure can't be inlined at a specific call? This could change with the compiler and the user knows what to change for inlining. Where do I find documentation/examples on how to define a compiler intrinsic procedure? Am 23.01.2016 um 11:53 schrieb Flor

Re: [fpc-pascal] AVR Busy Wait implementation

2016-01-18 Thread Simon Ameis
all types used by variables inside the procedure and must be visible at the calling point; this also disallows unit private types (but procedure local types are okay). Am 17.01.2016 um 23:56 schrieb Jeppe Johansen: > > On 01/17/2016 11:15 PM, Florian Klämpfl wrote: >> Am 17.01.2016 um 22:

Re: [fpc-pascal] AVR Busy Wait implementation

2016-01-17 Thread Simon Ameis
lay_loop_2(ticks_word) else delay_loop_1(lo(ticks_word)); end; Am 14.01.2016 um 21:33 schrieb Simon Ameis: > In general I already know these documents; what I'm looking for is an > implementation of a busy wait, not how to use it. > For C/C++ it's easy to get the code files.

Re: [fpc-pascal] AVR Busy Wait implementation

2016-01-15 Thread Simon Ameis
Am 15.01.2016 um 10:38 schrieb Michael Schnell: > The Linux sleep system call provides a microsecond "busy" wait ,but > only when used with root privilege . Nice to know, but I asked for an AVR implementation. Although I've seen a report describing an ARM emulation on AVR running Linux I don't thin

Re: [fpc-pascal] AVR Busy Wait implementation

2016-01-15 Thread Simon Ameis
Am 14.01.2016 um 23:57 schrieb Marc Santhoff: > On Do, 2016-01-14 at 21:33 +0100, Simon Ameis wrote: >> In general I already know these documents; what I'm looking for is an >> implementation of a busy wait, not how to use it. >> For C/C++ it's easy to get the code f

Re: [fpc-pascal] AVR Busy Wait implementation

2016-01-14 Thread Simon Ameis
ation of the cpu cycles. The C implementation uses floating point arithmetics wich is evaluated at compile time. It doesn't work with wait times which are calculated at runtime. Am 12.01.2016 um 14:54 schrieb Marc Santhoff: > On Mo, 2016-01-11 at 23:19 +0100, Simon Ameis wrote: >> He

[fpc-pascal] AVR Busy Wait implementation

2016-01-11 Thread Simon Ameis
nd regards Simon Ameis ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal