HomePhabricator

about half way there for pointer return args:

Authored by hww3.

Description

about half way there for pointer return args:

if an argument to a method is a pointer, we assume it's intended to be
available on the return, so the return type of any method which has one
or more pointer arguments will be an array. the first value in the returned
array is the return value of the method. the subsequent values in the array
will be the n-1th arguments.

right now, we don't set the values of pointer arguments going in.
additionally, these values are optional and don't need to be provided.

eventually, we will set the ingoing values.

currently, only char, int and id arguments are returned in this manner.
additional types will be added once this proves to be a workable technique.

for an example, see:

[NSWorkspace getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:]

also, readded _sprintf() to objects so we can see what they look like.

Details

Committed
hww3Jan 3 2008, 11:20 PM
Parents
R81:db01fb960146: make the compiler happy for less warnings in util.m.
Branches
Unknown
Tags
Unknown

Event Timeline