Commit Graph

66496 Commits

Author SHA1 Message Date
mattias
c1f3960388 rtl: added overload GetClass(UnitName,ClassName), implemented UnregisterClass, overload TStream.WriteComponent(Instance,WriteUnitName) 2023-01-08 15:46:49 +01:00
wsherman
ed894b40c9 * minor updates to googleapiconv helper scripts (ref #40094) 2023-01-08 00:33:07 -08:00
wsherman
3224f2c8b5 * more fixes to googleapiconv (ref #40094)
(googlediscoverytopas)
  -Fix unit clause and "uses" for generated units

(googleapiconv)
  -Add --version parameter
  -Fix logging messages
  -Set OutputUnitName so units have correct clause

(restbase)
  -Add #todo notes for follow up
  -Move function RFC3339ToDateTime next to related functions
2023-01-08 00:33:07 -08:00
wsherman
731fd94b8c * bash scripts for testing and running googleapiconv (ref #40094) 2023-01-08 00:33:07 -08:00
wsherman
ab3aae149b * googleapiconv fixes and cleanup (ref #40094)
- Add updated URL for google api discovery
  - Fix incorrect usage / help messages and put options in alpha order
  - Replace "with .. do" statement with a local variable for clarity
  - Add missing DiscoveryJSONToPas.Execute so output files are not empty
  - Add FreeAndNil(Application) to clear a memory leak
    (it now has a clean Heaptrc)
  - Minor fix to .lpi file which had incorrect dependency.
2023-01-08 00:33:07 -08:00
wsherman
fba7595bb1 * Fix dynamic array (managed types) handling in restbase.pp (Ref #40094)
Fixes code in method TBaseObject.SetArrayProperty
  and removes private method SetArrayElements

  This fixes AVs and memory leaks.
2023-01-08 00:30:51 -08:00
florian
4deb23ba58 * makefile regenerated with current fpcmake, resolves #40092 2023-01-07 22:52:01 +01:00
mattias
b0f5d5a4e1 rtl: TBinaryObjectWriter.Version 2023-01-07 10:19:29 +01:00
mattias
b641c564c6 rtl: TReader: FindComponentClass using field name and classname 2023-01-07 10:19:29 +01:00
florian
899bdc0016 * first approach to fix tfrldexp on i386-win32 2023-01-06 23:03:40 +01:00
Kevin Jesshope
05f5e9ad12 Update file fpwebfile.pp 2023-01-06 13:08:33 +00:00
Kevin Jesshope
cee45ea6fc The test for '' after getting the location into BaseDir should test BaseDir not BaseURL. 2023-01-06 13:08:33 +00:00
wsherman
ea91170a81 * Add opensslsockets to uses so googleapiconv works with HTTPS 2023-01-05 11:04:03 -08:00
Karoly Balogh
459dc68ab9 m68k: more boiler plate and refactor for a future internal assembler 2023-01-05 13:32:34 +01:00
Karoly Balogh
f2d6b4d530 m68k: added a helper function to check if a register is an FPU register 2023-01-05 13:32:33 +01:00
wsherman
17fab24221 * Reorganize packages/googleapi/ directory.
Separate hand coded files to a new directory "src/base"
     (googlebase.pp, googleservice.pp, googleclient.pp)
   Move generated api files to a new directory "src/bindings"
   Move the the bindings generator program out of /examples to /generator
   Move the unit googlediscoverytopas.pp to /generator
   Fix paths in /generator/googleapiconv.lpi
   Regenerate Makefile (using fpcmake -w -Tall)
   Edit fpmake.pp
     - remove src path
     - add src/base path
     - add src/bindings path
     - fix bad path for unit googleadexchangebuyer.pp
     - do not include unit googlediscoverytopas.pp (commented out)
       (add this later if the generator is setup to be
       included in the build)
2023-01-04 22:45:55 +00:00
florian
9889a81062 * patch by Rika: Improve SinH and TanH, resolves #40086 2023-01-04 19:04:40 +01:00
florian
96eb5da939 * patch by Bart B: Implement sinh(), cosh() and tanh() for single, double and extended parameters, resolves #40083 2023-01-04 17:04:10 +01:00
florian
a260f1987c * patch by Rika: Improve Math.CotH, resolves #40084 2023-01-03 23:13:33 +01:00
Jonas Maebe
a641860fa8 Implicit specialisation: use regular array parameters for array constructors
Fixes compilation of test/timpfuncspez5 with LLVM and debug info, as the LLVM
debug info writer internalerror's when you try to generate debug info for
an array constructor (since those types should never appear as parameter/
variable types).

Replace them with reusable regular array types, so that multiple invocations
of the same generic function with array constructors of the same type and
number of elements are collapsed into the same specialisation
2023-01-03 21:44:44 +01:00
marcoonthegit
84ea64e59c * timespan unit based on Delphi documentation declarations and an own implementation based on Microsoft documentation. 2023-01-03 19:37:52 +01:00
Marcus Sackrow
aced88e43c Amiga: 32 bit set color functions for OS 1.x 2023-01-02 19:51:20 +01:00
Pierre Muller
cd8aa3f0e0 Avoid generation of invalid 'cb(n)z sp,label' instruction 2023-01-02 18:22:49 +00:00
florian
cfbdf90ab0 * patch by Rika to optimize ArcCos, resolves #40078 2023-01-02 18:56:41 +01:00
Michaël Van Canneyt
9998104048 * Add PATCH method to router 2023-01-02 16:09:13 +01:00
florian
60c80a45a0 * patch by Bart B to complete missing functions in the math unit, resolves #40055 2023-01-01 22:52:57 +01:00
florian
6c5f9537b3 * avoid to generate bt [mem], reg, resolves #40039 2022-12-31 18:27:27 +01:00
Tomas Hajny
1bb4003984 * messages regenerated after fixing #40008 2022-12-31 17:31:31 +01:00
Tomas Hajny
baf950bf76 * improved consistency as suggested in bug #40008 2022-12-31 17:27:06 +01:00
Tomas Hajny
abbec0eb9b * fixed test program - bug #40072 2022-12-31 15:26:00 +01:00
Tomas Hajny
45b15c5750 * fixed test program - bug #40072 2022-12-31 15:17:58 +01:00
Tomas Hajny
092bc17cb2 * fixed test program - bug #40072 2022-12-31 15:10:44 +01:00
Tomas Hajny
c631d86122 * fixed test program - bug #40072 2022-12-31 15:06:44 +01:00
Tomas Hajny
e9ce3be110 * fix for bug #40071 (corrected integer size redefined due to use of objfpc) 2022-12-31 14:18:57 +01:00
Jonas Maebe
32f8dc7ef5 symcreat: add hidden high parameters in create_procdef_alias
No longer happens automatically for pc_bareproc procdef copies
2022-12-31 11:59:05 +01:00
J. Gareth "Curious Kit" Moreton
a1abe51f2a * Refactor of is_cyclic to use a linked list on the stack instead of a dynamic array 2022-12-31 09:04:02 +00:00
Sven/Sarah Barth
4b659175d9 - remove no longer required readonly functionality from tparasymtable 2022-12-30 23:32:00 +01:00
Sven/Sarah Barth
e1288897f3 * fix #40031: with support for inline specializations it no longer makes sense to make the parameter symtable of a procedure variable type readonly as there *are* defs that are added to it
+ add adjusted test
2022-12-30 23:32:00 +01:00
Sven/Sarah Barth
b6b2785b66 * also skip high parameters when pc_normal_no_hidden is given to tprocdef.getcopyas 2022-12-30 23:32:00 +01:00
Sven/Sarah Barth
430bcac389 * ensure that all hidden parameter symbols are removed when adding an anonymous function to a capturer (they'll be added again later on) 2022-12-30 23:32:00 +01:00
Sven/Sarah Barth
d7d65fe0d7 * fix typo in comment 2022-12-30 23:32:00 +01:00
Sven/Sarah Barth
4510945465 * fix #40062: ensure that Self is only added to anonymous functions when dealing with method pointers
+ added test
2022-12-30 23:32:00 +01:00
Sven/Sarah Barth
d410deb7ae * when assigning an anonymous function to a method pointer move the function to the normal function level to avoid potential problems when accessing other variables 2022-12-30 23:32:00 +01:00
Sven/Sarah Barth
a6ddea87b7 * don't free the old, captured Self symbol as that does not belong to the anonymous function 2022-12-30 23:32:00 +01:00
Sven/Sarah Barth
1d73dab2b0 * a callnode for an anonymous function can have its procdefinition fixed, thus avoid the need to check for overloads 2022-12-30 23:32:00 +01:00
Sven/Sarah Barth
5d7e3ca240 * fix #40060: ensure that Self is not added for anonymous functions that are part of a static class method
+ added test
2022-12-30 23:32:00 +01:00
Sven/Sarah Barth
4c6338207f * fix #40061: the Self of types that aren't implicit pointers (recods, TP-style objects, primitive types (for helpers)) needs to be stored as a Pointer in the Capturer so that modifications are correctly visible
+ added tests
2022-12-30 23:32:00 +01:00
florian
7bd5613954 * fix error on win64 and concerns about pulling math into the windows unit by a local arctan2 copy 2022-12-30 22:28:49 +01:00
florian
7affd78904 * do not throw an internal error on typed constants with wrong element count, resolves #40066 2022-12-30 21:53:04 +01:00
marcoonthegit
5fb88cef00 * Tpoint.Angle initial version using arctan2 2022-12-30 19:34:03 +01:00