Commit Graph

94 Commits

Author SHA1 Message Date
marco
043e9b2ec2 * Trunk version to 2.7.1
git-svn-id: trunk@18075 -
2011-08-03 13:59:33 +00:00
marco
39d7bb511d * Regenned all makefiles before 2.6.x branching.
git-svn-id: trunk@18073 -
2011-08-03 13:41:52 +00:00
Jonas Maebe
d8627f24f4 + UIAlertView.inc
git-svn-id: trunk@17139 -
2011-03-15 17:43:13 +00:00
Jonas Maebe
a11709658c - removed outdated versions (superceded by the ones under
utils/uikit-skel/src)

git-svn-id: trunk@16986 -
2011-02-23 12:34:35 +00:00
Jonas Maebe
e8ca4b8b84 - removed icons and aedatamodel units (they're not supported on iOS nor
required for compilation)

git-svn-id: trunk@16978 -
2011-02-22 18:23:38 +00:00
Jonas Maebe
9d033909df * forgot to commit (part of r16923)
git-svn-id: trunk@16977 -
2011-02-22 17:49:12 +00:00
Jonas Maebe
11d780e62f * properly update the current enum value ("auto_increment") in case it
is assigned a particular value in the C header

git-svn-id: trunk@16963 -
2011-02-21 19:43:27 +00:00
Jonas Maebe
06ae2896ea * reparsed with latest script version, which adds "optional" sections to
protocols where required

git-svn-id: trunk@16924 -
2011-02-16 18:48:22 +00:00
Jonas Maebe
b3ee4ea4eb + support for parsing docsets to add documentation to the parsed headers
* re-enabled support for ignoring certain methods, but removed all ignored
    methods because all of them are handled correctly with the current version
  - disabled adding the script version and time stamp to the generated headers,
    so not all headers change every time they are re-parsed
  + support for optional/required sections in protocols
  + documentation from Ryan

git-svn-id: trunk@16923 -
2011-02-16 18:46:26 +00:00
Jonas Maebe
bbe5b792af - removed version header/timestamp to prevent all files from changing every
time they are parsed

git-svn-id: trunk@16922 -
2011-02-16 18:34:01 +00:00
Jonas Maebe
c1385b6446 * whitespace fixes from Ryan
+ some comments from Ryan

git-svn-id: trunk@16919 -
2011-02-15 20:53:03 +00:00
Jonas Maebe
c87a7c3d3b + forgot to commit (part of r16908)
git-svn-id: trunk@16909 -
2011-02-12 12:38:16 +00:00
Jonas Maebe
d6e7023038 * automatically comment out methods that take blocks as parameters or return
them
  * handle inline protocol definitions in parameter lists (replace id<protocol>
    with protocol, and class<protocol[,protocol,..]> with class), and made
    some fixes to this support for fields (many "id" fields/parameters are
    now protocols)
  * fix from Phil Hess for parsing some read-only properties
  * also translate ..._BUT_DEPRECATED macros (without any "_IN_VERSION..."
    coming after it) into "deprecated" modifiers
  * several fixes for handling deprecation macros (in several cases, half the
    macro was mangled into the name of the symbol itself)
  * default now to parsing the iOS 4.2 SDK headers, and fixed passing an
    alternate SDK on the command line to make-ios-headers.sh
  * updated Cocoa headers as parsed by the new parser, and with the headers
    from Mac OS X 10.6.5/Safari 5.0.2 (contains some WebKit updates)

git-svn-id: trunk@16908 -
2011-02-11 21:26:24 +00:00
Jonas Maebe
9e3a0282ce + NSLog() declaration
git-svn-id: trunk@16907 -
2011-02-11 20:53:12 +00:00
Jonas Maebe
06bd860e62 + new header file for WebKit 3.x (DOMBlob)
git-svn-id: trunk@16906 -
2011-02-11 20:15:56 +00:00
Jonas Maebe
8143a009fd * moved to correct location so it's used by the conversion script
git-svn-id: trunk@16903 -
2011-02-09 21:07:29 +00:00
Jonas Maebe
3ca3276400 * changed syntax of external objcclasses (see wiki/FPC_PasCocoa). Another
change is that it is now also allowed to specify an external name for
    formal external class definitions, but if they are later mixed with
    regular class definitions the external names have to match.
   o because the "external" status of methods is now set while parsing the
     class rather than afterwards, some procdir compatibility checks had to
     be inlined because they only have to be performed for 
  * also adapted the syntax for external cppclasses in the same way
  * fixed return type of NSObject.retainCount and NSObject.hash
    (NSUInteger instead of cint)
  * moved "patches" directory from cocoaint/src to cocoaint/utils/cocoa-skel
    so they are used by the conversion script when re-parsing the headers
  * updated Objective-C header parser script to
   o use the new external class syntax
   o not write inheritance information for root classes (NSObject, NSProxy)
   o use internal translation tables for some conflicting method names that
    are named specially in objcbase.pp
   and updated parsed headers
  * fixed rtl/inc/objcbase.pp and tests to conform to the new external class
    syntax

git-svn-id: trunk@16684 -
2011-01-02 14:50:46 +00:00
Jonas Maebe
482a244f30 * version 2.13 of the parser, by Ryan Joseph: mainly restructuring and
cleanup

git-svn-id: trunk@16666 -
2010-12-30 23:28:02 +00:00
Jonas Maebe
9410f7d5d3 - obsolete, removed (handled by regular script)
git-svn-id: trunk@16532 -
2010-12-10 10:13:55 +00:00
Jonas Maebe
a880603816 * updated version of the conversion script, used to generate the previously
committed cocoa unit conversions, and which can also be used to translate
    the iOS SDK 3.2 headers
  + scripts (make-cocoa-headers.sh, make-ios-headers.sh) to (re)build the
    Cocoa/iOS headers, along with skeleton directories that contain the
    necessary helper files and a few required patches
  + frameworks.xml used by the conversion script
  * updated build instructions

git-svn-id: trunk@16522 -
2010-12-08 21:12:27 +00:00
Jonas Maebe
c132727caf * updated to Mac OS X 10.6 SDK
* generated with version 2.1.2 of the conversion script, with many
    improvements (script and instructions to regenerate headers will
    be committed separately)
   o QuartzCore framework translation
   o categories are no longer merged into classes, but separate
   o corrected several C->Pascal type definitions
   o handle pointer types for parameters, return types and property types 
   o handle struct/class fields that are arrays or pointers
   o handle pointers to id
   o handle external functions that return "void *" (they were parsed as
     procedures)
   o handle anonymous classes (@class NSAnonType, such as CIImage) using
     the "NSAnonType = objcclass; external;" syntax
   o corrected handling of opaque structs
   o fixed parsing of function pointer types
   o instance-bitfields that do not appear in a struct are now recognised
   o bitpacked structs are now translated into bitpacked records (but only
     if they only contain bitpacked fields)
   o C macros indicating deprecation are now translated into "deprecated"
     modifiers for methods/variables/functions/properties
   o no longer ignore deprecated categories, because some categories are
     deprecated in Mac OS X 10.5/10.6, and we want to support writing code
     for older systems too
   o several fixes to property and enum parsing

git-svn-id: trunk@16521 -
2010-12-08 11:27:05 +00:00
mazen
b127fc154a * Fixed spell error revealed by lintian.
git-svn-id: trunk@16094 -
2010-10-06 20:33:57 +00:00
Jonas Maebe
8b0301409a + i386/iphonesim target for the new iPhoneSimulator in Xcode 3.2.4 and
later: the same as i386/darwin, except
      a) uses the non-fragile Objective-C ABI/runtime
      b) does not require stubs for direct calls/jumps (not required for
         i386/darwin under 10.6 and later either, but still generated
         there for backwards compatibility)
      c) only the same packages are enabled as for ARM/Darwin
      d) MacOSAll is compiled specifically for the iPhoneSimulator SDK
    This target also defines the symbol "darwin" apart from the target
    name "iphonesim" for source code compatibility reasons.

git-svn-id: trunk@16065 -
2010-09-29 21:56:47 +00:00
mazen
6863b0ab46 * Removed svn:executable property from source files.
git-svn-id: trunk@16059 -
2010-09-28 21:40:50 +00:00
Jonas Maebe
351d110507 * replaced dependency on MacOSAll with individual units (based on
information provided by Scott Knapp)
  - removed CFErrorRef declaration from UndefinedTypes since the CFError
    headers are available in the current univint translations

git-svn-id: trunk@15468 -
2010-06-21 15:43:34 +00:00
Jonas Maebe
293d51a277 * fixed "fast enumeration" types and methods
git-svn-id: trunk@15458 -
2010-06-20 12:06:55 +00:00
Jonas Maebe
87849e1fc6 + added missing NSApp declaration
* fixed NSAllocateMemoryPages declaration

git-svn-id: trunk@14473 -
2009-12-24 09:34:06 +00:00
josef
b99a49d982 * Added missing UndefinedClasses.inc to /uikit
* Changed the PHP variable which was causing the parser to not produce iphone headers
  * Added /utils/iphone directory which is the last safe version of the parser. This is because future versions of the parser will likely break the iphone parsing ability before it can be fully restored.

git-svn-id: trunk@14454 -
2009-12-20 14:29:12 +00:00
mazen
4c3cb51ea8 * Removed executable tag from source file.
git-svn-id: trunk@14430 -
2009-12-12 22:59:05 +00:00
Jonas Maebe
919cf1151b * fixed C->Pascal type translations
git-svn-id: trunk@14429 -
2009-12-12 20:58:21 +00:00
pierre
55cffbef12 * Update Makefiles
git-svn-id: trunk@14385 -
2009-12-10 08:36:52 +00:00
Jonas Maebe
1900d12a0c * fixed definition of NSInteger and NSUInteger for 64 bit (fix by
Gorazd Krosl)

git-svn-id: trunk@14231 -
2009-11-20 22:35:55 +00:00
Jonas Maebe
f339276179 * fixed 64 bit compilation
git-svn-id: trunk@14086 -
2009-11-06 17:27:27 +00:00
josef
36e6e452d2 * NSString constants are parsed in WebKit
* Fixed parameters erroneously suffixed with "Pointer" in WebKit
  + Added IBMacros.pp for InterfaceBuilder macros

git-svn-id: branches/objc@13831 -
2009-10-10 01:48:37 +00:00
Jonas Maebe
1be734afdf * compile new WebKit and CoreData units
git-svn-id: branches/objc@13797 -
2009-10-03 17:12:10 +00:00
josef
ca6ef63ad2 * NSRange is defined correctly
+ Added CoreData framework
  + Added WebKit framework

git-svn-id: branches/objc@13796 -
2009-10-03 10:32:49 +00:00
Jonas Maebe
0cec8832f7 - removed svn:executable flags
git-svn-id: branches/objc@13792 -
2009-10-02 13:04:57 +00:00
Jonas Maebe
d5bc9c09c6 * fixed CGFloat definition after r13786
git-svn-id: branches/objc@13790 -
2009-10-02 08:34:24 +00:00
josef
a2c6e6e65d * User patches are now working
* Pointers to classes are no longer untyped.

git-svn-id: branches/objc@13786 -
2009-10-01 14:44:45 +00:00
josef
602d0ffa54 * Parser was ignoring -root input in previous version.
git-svn-id: branches/objc@13772 -
2009-09-28 13:11:23 +00:00
josef
5a669ebd54 * Procedures with varargs are parsed properly.
* Fixed macro that was causing CFString constants to fail.
  * Removed MacOSAll dependency from iPhoneAll.pas.
  * More enumerations are parsed in all frameworks.
  * Properties that returned values in iPhone headers are now fixed.
  * Properties from categories are included now.
  + Users can add hand parsed patches by putting them in the patches directory and they will be included during parsing.

git-svn-id: branches/objc@13770 -
2009-09-28 10:39:28 +00:00
Jonas Maebe
b6c841b338 * added missing NSSTR() implementation (fix by Dmitry)
git-svn-id: branches/objc@13755 -
2009-09-22 14:30:21 +00:00
josef
d07a901c10 + Parser support for UIKit has been added and iPhoneAll.pas
* Pass by reference arguments are translated as pointers instead of var
  * Variable length arguments are parsed with the varargs keyword instead of array of const
  + Added IVarSize.pas which prints the size of ivar's in all AppKit/Foundation classes.
  + There are now "null" defined macros for IBOutlet and IBAction like in Cocoa. Use these instead of comments and they may become useful in the future for InterfaceBuilder support.
  + Foundation.pas is included which can be used for command line tools without AppKit.

git-svn-id: branches/objc@13754 -
2009-09-22 01:03:50 +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