Commit Graph

31208 Commits

Author SHA1 Message Date
joost
45b20dac4e * Added the global variable CustomApplication. If this variable is set
when a Application-object is initialized, other units can access this
   Application-object without knowing its exact type or unit it is 
   defined in.

git-svn-id: trunk@13747 -
2009-09-20 12:42:25 +00:00
olivier
2e8a93da16 * tune new variable TerminalSupportsBold and TerminalSupportsHighIntensityColors
for BeOS and Haiku.
  * BeOS : the terminal is very limited. Disabling both give best result.
  * Haiku : Haiku's terminal claims to be xterm but has it's own problems.

git-svn-id: trunk@13741 -
2009-09-19 16:10:36 +00:00
andrew
5c64c75dd7 * fixed bug #14595
* small speed improvements

git-svn-id: trunk@13740 -
2009-09-19 01:19:35 +00:00
Jonas Maebe
c1305f046e * fixed hint for unused _cmd parameters after r13737
git-svn-id: branches/objc@13739 -
2009-09-18 11:58:17 +00:00
Jonas Maebe
4c57a5f504 + support multiple inheritance for obj-c protocols
* don't allocate tobjectdef.implementedinterfaces for corba interfaces
    since the compiler doesn't support multiple inheritance for them
  * extended/corrected related tobjc22 test
  * increased ppu version, because implementedinterfaces is now
    present in different cases

git-svn-id: branches/objc@13738 -
2009-09-18 11:35:13 +00:00
Jonas Maebe
e41c06391b * fixed class cast error
git-svn-id: branches/objc@13737 -
2009-09-18 10:42:09 +00:00
Jonas Maebe
2db72437e8 * fixed range check errors
git-svn-id: trunk@13736 -
2009-09-18 10:34:06 +00:00
joost
b52af4cd53 * Introduced TCustomWebApplication.DoHandleRequest
git-svn-id: trunk@13735 -
2009-09-18 09:34:05 +00:00
Jonas Maebe
5bda2aa648 + added warning that TImplementedInterface.getcopy is completely broken
git-svn-id: trunk@13732 -
2009-09-17 19:24:20 +00:00
Jonas Maebe
d942c99921 + support for obj-c protocols implemented in Pascal (based on patch by
Dmitry Boyarintsev, mantis #14609)

git-svn-id: branches/objc@13731 -
2009-09-17 14:24:01 +00:00
Jonas Maebe
c9a6e32f16 * implemented objcprotocol for now with a call to objc_GetProtocol()
git-svn-id: branches/objc@13730 -
2009-09-17 14:21:28 +00:00
sergei
fc34dc84ff domunit.pp:
+ Added TDOMTestBase.LoadStringData method, allows loading documents from string.
* Don't return empty string from GetResourceURI when file doesn't exist. Thus we can see the problematic filename in the test output.

+ Added extras.pp, contains a few tests not present in w3.org test suite.
+ Added extras2.pp, contains some tests ported by hand because no automatic conversion possible yet. It addresses namespace fixup during serialization and canonical-form issues.

README_DOM.txt: updated to reflect the added units.

git-svn-id: trunk@13729 -
2009-09-17 09:58:15 +00:00
marco
56e15073bb * sha1test demo + fpmake
git-svn-id: trunk@13728 -
2009-09-16 20:32:07 +00:00
florian
ce773b759d + sha1 unit by Sergei Gorelkin, resolves #14604
git-svn-id: trunk@13727 -
2009-09-16 20:24:40 +00:00
florian
07ef0c33df o another linux console patch by Nikolay Nikolov:
* disabled linux VCSA output in UTF-8 mode, because it does not do any translation 
  and assumes that the font is cp437, or similar, which looks horrible on fonts 
  (like fedora's default latarcyrheb-sun16), which are designed only for unicode 
  support and have no similarity at all to cp437. We already can display all the 
  cp437 characters in UTF-8 mode (including the low 32 characters), in case the 
  font is cp437, and the UTF-8 translation provides better approximation (e.g. 
  for the line drawing characters) if the font is not cp437.
* do not "restore" the linux system font in SysDoneVideo in UTF-8 mode, 
  since we didn't change the font on startup
* added try_grab_vcsa to try harder to open VCSA in the linux IDE user 
  screen restore code. While VCSA is no longer needed in the video unit on 
  UTF-8 systems, the IDE still needs it, because it's the only way to provide 
  the "restore user screen" functionality on the linux virtual console.

git-svn-id: trunk@13726 -
2009-09-16 19:58:42 +00:00
florian
24889df6ed * fixed breakage by r13718
git-svn-id: trunk@13725 -
2009-09-16 19:42:56 +00:00
Jonas Maebe
5128a6726c * fixed type compatibility checking for classrefs and id
* modified test for this

git-svn-id: branches/objc@13724 -
2009-09-16 19:02:05 +00:00
Jonas Maebe
341708b95d * write all parameters using the order of procdef.paras, eliminates the
special treatment required to put self as the first parameter in the
    debug info
  + added Apple-specific Objective-C related DWARF attributes
  * properly emit debug information for Objective-C classes and methods
  * fixed some typos in comments
  * properly mark "absolute" local variables mapped to parameters as
    variables in the debug info rather than as parameters (gdb expects one
    parameter to be passed when calling functions from inside gdb per
    parameter mentioned in the debug info, even if multiple parameters
    have the same stack address) 

git-svn-id: branches/objc@13723 -
2009-09-16 18:46:15 +00:00
Jonas Maebe
eb2dc7a674 * set type of self for obj-c instance methods to the type of the
class instead of to ID (gcc-compatible)

git-svn-id: branches/objc@13722 -
2009-09-16 18:40:15 +00:00
Jonas Maebe
ef2fbe7ed6 * use precalculated mangled name when writing classdef instead of
calculating it again (+ sanity check that it is really defined)

git-svn-id: branches/objc@13721 -
2009-09-16 16:44:26 +00:00
Jonas Maebe
fb2a523976 * fixed handling function results of inherited obj-c calls
(test program by Gorazd Krosl)

git-svn-id: branches/objc@13720 -
2009-09-16 13:00:50 +00:00
ivost
d9099daa9c * fixed InitializeSqlite and ReleaseSqlite functions (segfault after a call
to ReleaseSqlite with refcount=0)
* changed all shortstrings to ansistrings ({$h+})

git-svn-id: trunk@13719 -
2009-09-16 08:50:42 +00:00
florian
daa5984212 * fix by Michael Vadymovitch Denisenko for r13712
git-svn-id: trunk@13718 -
2009-09-15 21:06:29 +00:00
marco
be6322be9e * note about location win32 dll
git-svn-id: trunk@13715 -
2009-09-15 11:10:34 +00:00
marco
4eeeb3298e * enabled gmp for Win32 after verification
git-svn-id: trunk@13714 -
2009-09-15 11:10:20 +00:00
marco
33d09f97e6 * gmp disabled for go32v2
git-svn-id: trunk@13713 -
2009-09-15 10:59:32 +00:00
florian
02eeb3dad6 o update by Michael Denisenko for case <string> of
* memory management fixed
  * idention fixed

git-svn-id: trunk@13712 -
2009-09-14 21:44:11 +00:00
Jonas Maebe
14797e0ddb * fixed start compilation with FPC 2.2.4
git-svn-id: branches/objc@13709 -
2009-09-13 22:39:47 +00:00
Jonas Maebe
da7fdf76d5 * always put parameters in left-to-right order in rtti (Delphi-compatible)
* adapted test (and removed BOM)

git-svn-id: trunk@13708 -
2009-09-13 20:56:22 +00:00
marco
47e90bbdf3 * typo corrected as per #14578
git-svn-id: trunk@13707 -
2009-09-13 20:20:02 +00:00
Jonas Maebe
dac2903107 * prefetch next items in TLinkedList.clear, removes most l2 cache misses
git-svn-id: trunk@13706 -
2009-09-13 15:30:53 +00:00
Jonas Maebe
9d038943f5 * incorporated most Objective-C 1 run time functions in objc1 from
packages/objcrtl/src/objcrtl10.pas (so that if {$modeswitch objectivec1}
    is used, you don't have to include objcrtl anymore, because that unit
    declares some identifiers with the same name as in objc1, such as id,
    causing type clashes)

git-svn-id: branches/objc@13705 -
2009-09-13 15:13:14 +00:00
marco
abda06eb20 * enabled gmp for Linux,FreeBSD and Darwin (Mischi tested)
git-svn-id: trunk@13704 -
2009-09-13 14:00:06 +00:00
Jonas Maebe
92ff07deaf * several fixes by Pierre Pede (parts of his patch to mantis #12492)
o fixed gprof under linux/i386
    o fixed pic-compilation of the linux/i386 rtl
    o initialisation of linux shared libraries is now possible with pic-code

git-svn-id: trunk@13703 -
2009-09-12 21:57:41 +00:00
Jonas Maebe
61e6545483 * message changes belonging to r13701
git-svn-id: branches/objc@13702 -
2009-09-12 17:44:41 +00:00
Jonas Maebe
f238f7c74b + allow defining classrefdefs for objcclasses. Note, this happens using the
"class" keyword like for regular Object Pascal classes, not using the
    "objcclass" keyword. E.g.: NSObjectClass = class of NSObject;
  * modified tobjc18 to test this functionality

git-svn-id: branches/objc@13701 -
2009-09-12 16:46:41 +00:00
Jonas Maebe
8e81477fcf * make hidden '_cmd' (selector) parameter available in Objective-C methods
* don't give a hint if this hidden _cmd parameter is unused

git-svn-id: branches/objc@13700 -
2009-09-12 14:04:44 +00:00
Jonas Maebe
b2d66522d5 * extended test to check fix from r13695/13698
git-svn-id: branches/objc@13699 -
2009-09-12 12:48:50 +00:00
Jonas Maebe
85f5cd603e Merged revisions 13694-13695 via svnmerge from
svn+ssh://jonas@svn.freepascal.org/FPC/svn/fpc/trunk

git-svn-id: branches/objc@13698 -
2009-09-12 12:47:50 +00:00
Jonas Maebe
ed9656d1e6 Merged revisions 13627-13631,13637-13638,13640,13642-13648,13650-13653,13656-13658,13660,13664-13667,13672-13675,13680,13682,13687 via svnmerge from
svn+ssh://jonas@svn.freepascal.org/FPC/svn/fpc/trunk

git-svn-id: branches/objc@13697 -
2009-09-12 12:42:38 +00:00
Jonas Maebe
9fd38c2115 * build cocoaint for darwin/i386 and darwin/ppc (forgot to commit)
git-svn-id: branches/objc@13696 -
2009-09-12 12:25:51 +00:00
Jonas Maebe
cc5aeb09de * fixed handling the result value of functions where the result type is
forced to something else by the compiler (internal rtl functions etc),
    necessary for the objc branch
  * fixed adding all used function result registers to the list of
    registers that may need to be saved before a function call

git-svn-id: trunk@13695 -
2009-09-12 12:21:34 +00:00
marco
66240c1204 * fixes that I though were committed
git-svn-id: trunk@13694 -
2009-09-12 11:13:19 +00:00
Jonas Maebe
ba5a0204a8 * libname is a declared constant indicating the library name, not a string
(was wrong in declaration of class_getName, but didn't cause problems
     since darwin ignores it)

git-svn-id: branches/objc@13693 -
2009-09-11 17:57:16 +00:00
Jonas Maebe
6fcd29c190 * fixed the parameter order of self/_cmd relative to the hidden function
result parameter (cosmetic, since those parameter were not actually used)
  * fixed calling obj-c methods where the result is returned via a hidden
    parameter: since the hidden result remains hidden in the newly constructed
    objc_msgSendStret*() variant, it is inserted again by the new callnode
    -> remove the one inserted by the original callnode

git-svn-id: branches/objc@13692 -
2009-09-11 17:54:53 +00:00
Jonas Maebe
a36f888a17 * use the objextname rather than the declared type name for generating
class references in vmtaddrnode's for obj-c

git-svn-id: branches/objc@13691 -
2009-09-11 17:50:52 +00:00
Jonas Maebe
e835b05d49 * use an existing class as external name (NSZone is not a class)
git-svn-id: branches/objc@13690 -
2009-09-11 17:48:02 +00:00
Jonas Maebe
b76def10b2 + check whether selector names are valid when they are specified in a class
delcaration (instead of only for objcselector() nodes)
  * also print the wrong selector itself when it's wrong

git-svn-id: branches/objc@13689 -
2009-09-11 16:12:27 +00:00
Jonas Maebe
912fbbec79 + Cocoa interfaces and parser by Ryan Joseph
git-svn-id: branches/objc@13688 -
2009-09-10 18:50:01 +00:00
Jonas Maebe
1aa1686778 * fixed varbyref in variant conversion helpers (patch+test by Paul Ishenin,
mantis #14536)

git-svn-id: trunk@13687 -
2009-09-10 16:57:06 +00:00