Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Add comments #40

Merged
merged 7 commits into from
Mar 2, 2018
Merged

Add comments #40

merged 7 commits into from
Mar 2, 2018

Conversation

Therzok
Copy link
Contributor

@Therzok Therzok commented Mar 2, 2018

No description provided.

sundermann
sundermann previously approved these changes Mar 2, 2018
@@ -50,6 +50,16 @@ static void GenerateImport (this ICallable callable, IGeneratable parent, Indent
var retType = GetReturnCSharpType (callable, writer);

var (typesAndNames, names) = BuildParameters (callable, writer.Options, appendInstanceParameters: true);

// TODO: Better than using the constant string, insert a custom generatable which contains the import string as a constant.
// Also, glib-2.0.gir is problematic, it contains 2 library names :(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually everything is in the first specified library

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I even talked about that issue with the gi devs and they said the same.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, we can do that.

// Public API delegate which uses managed types.
writer.WriteLine ("[UnmanagedFunctionPointer (CallingConvention.Cdecl)]");
writer.WriteLine ($"public delegate {returnType} {Name} PARAMS");
writer.WriteLine ();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote this for now, need to hack out the import definition out of ICallable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And a callback is not really a member, it's a type.

decriptor
decriptor previously approved these changes Mar 2, 2018
@Therzok Therzok dismissed stale reviews from decriptor and sundermann via 24622cb March 2, 2018 18:48
@Therzok
Copy link
Contributor Author

Therzok commented Mar 2, 2018

Should be better now.

@Therzok Therzok merged commit e0bbba6 into master Mar 2, 2018
@Therzok Therzok deleted the add-comments branch March 2, 2018 23:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants