Commit Graph

33533 Commits

Author SHA1 Message Date
Jonas Maebe
ed1485c33e - reverted r16812 for now because it breaks building some packages
git-svn-id: trunk@16815 -
2011-01-25 21:46:25 +00:00
Jonas Maebe
b0f3fd2533 * completely handle assigned() in pass_1, replaced second_assigned with
internalerror

git-svn-id: trunk@16812 -
2011-01-25 08:01:14 +00:00
sergei
2b6fea065d * Several functions had their results unassigned, fixed.
git-svn-id: trunk@16811 -
2011-01-25 07:32:39 +00:00
sergei
58f37dc952 Improvements to dispinterface property handling:
* Create implicit access methods, which hold type information for property parameters and allow parsing/typechecking occur the same way as for regular (non-dispinterface) properties.
+ Introduce separate proctypeoptions for property access methods. They are translated into correct dispatch call types and used to distinguish property access from regular method calls.
* Bump PPU version because new information has been introduced.
- Code specific to dispinterface properties in expression parser is no longer necessary, removed.
* Allow access to default property with [] for dispinterfaces.
+ Extended the test with basic correctness checks for property dispatching.

git-svn-id: trunk@16810 -
2011-01-24 20:30:48 +00:00
sergei
ba74d47081 * pdecvar.pas, refactoring: don't create storedprocdef unless it is actually required.
+ Added statement to dispose storedprocdef after use, it was missing.

git-svn-id: trunk@16809 -
2011-01-24 17:15:51 +00:00
paul
ae7bfbb578 compiler: don't connect parasyms to procdefinition in tcallnode.derefimpl if procdefinition is not defined (a possible case for a generic method) (fixes issue #0018573)
git-svn-id: trunk@16808 -
2011-01-24 06:42:47 +00:00
paul
a39733a0a2 compiler: extend enumerator support for records:
- search GetEnumerator method in records too (while searching a enumerator for structure)
  - allow enumerator operator return type to be a record
  - copy/adapt enumerator helpers from tobjectdef to tabstractrecorddef
  + test

git-svn-id: trunk@16807 -
2011-01-24 04:13:28 +00:00
paul
8102c480d7 compiler: generate an error message if enumerator operator is declared with return object which has no valid MoveNext method, Current property
git-svn-id: trunk@16806 -
2011-01-24 03:08:22 +00:00
paul
9499692eeb compiler: allow Assignment and Explicit operators for undefined defs (issue #0018567)
git-svn-id: trunk@16805 -
2011-01-24 03:06:27 +00:00
marco
c24997777f patch from #18541 add comments field
git-svn-id: trunk@16804 -
2011-01-23 17:54:58 +00:00
sergei
124487b9b2 * xmlcfg.pp, changed 'exit' to 'break' so that function won't exit without result assigned, Mantis #18589
git-svn-id: trunk@16803 -
2011-01-23 15:52:47 +00:00
florian
af020e8ebc * fix assembling of ljmp mem, resolves #18556
git-svn-id: trunk@16802 -
2011-01-23 12:18:14 +00:00
florian
0be59445f8 + basic i386-embedded implementation for multiboot by Jeppe Johansen, resolves #15676
git-svn-id: trunk@16801 -
2011-01-23 11:18:50 +00:00
florian
197049c221 * updated to version 9
git-svn-id: trunk@16800 -
2011-01-23 11:01:37 +00:00
marco
ba4cb62544 * adapted FFTW licensing. This is a GPL lib, not MIT.
It is _made_ by MIT, and commercially marketed by MIT, it is not MIT _licensed_

git-svn-id: trunk@16798 -
2011-01-21 15:07:44 +00:00
paul
11e4440475 test: add delphi generic test which checks that both generic and regular type declarations with the same identifier are allowed in a unit
git-svn-id: trunk@16797 -
2011-01-21 03:39:21 +00:00
paul
0be10ee19f compiler: fix comments
git-svn-id: trunk@16796 -
2011-01-21 02:21:15 +00:00
Jonas Maebe
9a6f574f06 * removed (already unused, because of never taken branch) handling of
interfacecom in subscriptnodes, because a COM interface cannot have fields
    -> replaced with check (that actually is performed) to give an
    internalerror() should a reference-counted class type be subscripted

git-svn-id: trunk@16786 -
2011-01-19 14:50:17 +00:00
marco
88fe11958b * one letter type fixed, reported by Vincent
git-svn-id: trunk@16783 -
2011-01-19 11:37:17 +00:00
marco
ee3004a350 * moved an \end{description} so that the user manual compiles again.
git-svn-id: trunk@16782 -
2011-01-19 10:59:49 +00:00
paul
731291aee0 compiler: change Addr function to return untyped pointer by Blaise Thorn (issue #0018512), change/add tests
git-svn-id: trunk@16777 -
2011-01-18 15:23:58 +00:00
michael
774978a687 * Minor code cleanup suggested by LacaK <lacak@zoznam.sk>
git-svn-id: trunk@16776 -
2011-01-18 09:31:49 +00:00
michael
ae380229b6 * Applied patch from bug #16493
git-svn-id: trunk@16775 -
2011-01-18 08:36:09 +00:00
marco
49ed563e1d * procedural encode/decode base64. Useful when base64ing hashes to XMLs etc.
git-svn-id: trunk@16772 -
2011-01-16 12:09:35 +00:00
marco
608498c64c * committed the fpc/ hierarchy parts of the patch in mants 18271:
Adding clocale to Solaris.

git-svn-id: trunk@16771 -
2011-01-16 10:37:02 +00:00
Jonas Maebe
e85df4028c * factored out handling of static field accesses
git-svn-id: trunk@16770 -
2011-01-15 20:30:11 +00:00
Jonas Maebe
1d8fcadefb * fixed for 64 bit platforms after r16684
git-svn-id: trunk@16769 -
2011-01-15 20:26:17 +00:00
joost
319c2da797 * Implemented IHTMLDesignable
* Fixed moving an element forward, so that it is inserted before the given element

git-svn-id: trunk@16768 -
2011-01-15 17:55:08 +00:00
Jonas Maebe
8a389c16d7 * fixed indentation
git-svn-id: trunk@16767 -
2011-01-15 14:17:50 +00:00
sergei
caa786af56 * xmlread.pp, fixed condition that was causing an infinite loop in case when a malformed xml contained a null character within whitespace (to be exact, within parts processed by SkipS procedure). Great thanks to alexs75 for finding and supplying such xml file :)
git-svn-id: trunk@16766 -
2011-01-15 07:35:40 +00:00
sekelsenmat
d260e8b2ee Adds a DXF reader and fixes an error in the Canvas output
git-svn-id: trunk@16765 -
2011-01-14 14:45:03 +00:00
sekelsenmat
dcfcce2dfc opps, there was already a viewer. The converter can view
git-svn-id: trunk@16764 -
2011-01-14 13:03:46 +00:00
sekelsenmat
65e29e3984 Starts implementing a fpvectorial viewer
git-svn-id: trunk@16763 -
2011-01-14 12:54:17 +00:00
paul
0c9b40acb7 compiler: record operators
- allow operator also if return type match the structure type (before at least one parameter had to match)
  - search both operands symbol tables for a suitable assignment operator
  - test
based on patch of Blaise Thorn (issue #0018490)

git-svn-id: trunk@16762 -
2011-01-14 02:25:48 +00:00
pierre
8a7b10586d + Use popuperr unit to avoid interactive error window
git-svn-id: trunk@16761 -
2011-01-13 14:45:28 +00:00
pierre
7d5b632896 Use MSWindows instead of Win32 conditional
git-svn-id: trunk@16760 -
2011-01-13 14:43:37 +00:00
pierre
e7dcc27cd9 Add popuperr unit on tests
git-svn-id: trunk@16759 -
2011-01-13 14:19:52 +00:00
pierre
c5b2096f40 Add TEST_BENCH config
git-svn-id: trunk@16758 -
2011-01-13 14:18:14 +00:00
pierre
e3b56a1bcb + TargetHasDosStyleDirectories, TargetAmigaLike,
TargetIsMacOS: New variables, used in new function IsAbsolute.
  SetTargetDirectoriesStyle;, IsMacFullPath, IsAbsolute: New functions.
  CopyFile: Changed from procedure to function returning the
  number of copied chars.
  RunCompiler: Add compilation type for benchmark -D option.
  RunExecutable: Add execution time for benchmark -D option.
  Also report Exitcode on failure if no output is written
  (i.e. CopyFile returns zero written chars).
  HelpScreen function: Order options alphabetically.
  Add new -D benchmark option.

git-svn-id: trunk@16757 -
2011-01-13 14:06:24 +00:00
paul
368c215070 compiler: always derive DispInterface from IDispatch, this solve a problem with assigning dispinterface to IUnknown or IDispatch variables
git-svn-id: trunk@16756 -
2011-01-13 04:43:49 +00:00
paul
dad8313512 compiler: handle dispinterfaces the same way as com interfaces because they are IDispatch descendants: increment/decrement they references in assignments and parameters passing by _AddRef, _Release
git-svn-id: trunk@16755 -
2011-01-13 03:38:45 +00:00
joost
a9b8343a7e * Add .note.GNU-stack section to .or files, so that executables do not get an executable stack, bug #16545
git-svn-id: trunk@16754 -
2011-01-12 12:03:16 +00:00
sergei
3a23a3ebe0 Initial support of parametrized dispinterface properties:
* When parsing dispinterface properties, pass parameter/index nodes to translate_disp_call() instead of dropping them.
* Distinguish property getters from regular method calls and generate appropriate call descriptors.

git-svn-id: trunk@16753 -
2011-01-12 00:39:11 +00:00
ivost
97e700bbcc * enhanced date/time parser
git-svn-id: trunk@16752 -
2011-01-11 23:47:16 +00:00
ivost
1a66fb6f9b * splitted xmlxsd.pas into xmlxsd.pas and xmlxsdparser.pas
* now it's possible to use the xsd type parser without using libxml2

git-svn-id: trunk@16751 -
2011-01-11 23:09:00 +00:00
Jonas Maebe
bbf0e35a51 + Support for ARM CPS/CPSIE/CPSID instructions and mode flag bitfield
operand (patch by Jeppe Johansen, mantis #18334)

git-svn-id: trunk@16750 -
2011-01-11 16:02:51 +00:00
Jonas Maebe
d76ddcabe6 * don't give an internalerror when trying to explicitly apply an invalid
typecast to an array-of-const (mantis #18267)

git-svn-id: trunk@16749 -
2011-01-11 15:47:56 +00:00
joost
1e92e576dd * Use TDebugInfoDwarf2.appenddef_object's DoAppend also for writing the
debuginfo for standard classes in the Dwarf-3 format. (No changes for -gw2
   debuginfo. -gw3 debuginfo is changed)

git-svn-id: trunk@16748 -
2011-01-11 10:28:35 +00:00
paul
f9f316ac45 compiler: don't set a structure to routine if it accidentally match some (bug #0018452)
git-svn-id: trunk@16747 -
2011-01-11 02:00:27 +00:00
nickysn
fb943ef00b * do not hog the CPU while waiting for an event under Win32
git-svn-id: trunk@16746 -
2011-01-10 15:18:14 +00:00