{"action":"created","issue":{"url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/22","repository_url":"https://api.github.com/repos/Phreak87/LeptonicaSharp","labels_url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/22/comments","events_url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/22/events","html_url":"https://github.com/Phreak87/LeptonicaSharp/issues/22","id":365460426,"node_id":"MDU6SXNzdWUzNjU0NjA0MjY=","number":22,"title":"Code Comments","user":{"login":"fdncred","id":343840,"node_id":"MDQ6VXNlcjM0Mzg0MA==","avatar_url":"https://avatars2.githubusercontent.com/u/343840?v=4","gravatar_id":"","url":"https://api.github.com/users/fdncred","html_url":"https://github.com/fdncred","followers_url":"https://api.github.com/users/fdncred/followers","following_url":"https://api.github.com/users/fdncred/following{/other_user}","gists_url":"https://api.github.com/users/fdncred/gists{/gist_id}","starred_url":"https://api.github.com/users/fdncred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdncred/subscriptions","organizations_url":"https://api.github.com/users/fdncred/orgs","repos_url":"https://api.github.com/users/fdncred/repos","events_url":"https://api.github.com/users/fdncred/events{/privacy}","received_events_url":"https://api.github.com/users/fdncred/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-01T13:25:33Z","updated_at":"2018-10-04T12:34:26Z","closed_at":"2018-10-02T10:16:59Z","author_association":"COLLABORATOR","body":"This is something to think about. Your typical code comment looks like this:\r\n```vb\r\n' SRC\\pix1.c (282, 1)\r\n' setPixMemoryManager()\r\n' setPixMemoryManager(alloc_fn, dealloc_fn) as void\r\n''' <summary>\r\n''' Notes\r\n''' (1) Use this to change the alloc and/or dealloc functions;\r\n''' e.g., setPixMemoryManager(my_malloc, my_free).\r\n''' (2) The C99 standard (section 6.7.5.3, par. 8) says\r\n''' A declaration of a parameter as \"function returning type\"\r\n''' shall be adjusted to \"pointer to function returning type\"\r\n''' so that it can be in either of these two forms\r\n''' (a) type (function-ptr(type, ...))\r\n''' (b) type ((function-ptr)(type, ...))\r\n''' because form (a) is implictly converted to form (b), as in the\r\n''' definition of struct PixMemoryManager above.  So, for example,\r\n''' we should be able to declare either of these\r\n''' (a) void (allocator(size_t))\r\n''' (b) void ((allocator)(size_t))\r\n''' However, MSVC++ only accepts the second version.\r\n'''  </summary>\r\n'''  <param name=\"allocator\">[in][optional] - use NULL to skip</param>\r\n'''  <param name=\"deallocator\">[in][optional] - use NULL to skip</param>\r\n```\r\n![tooltip1](https://user-images.githubusercontent.com/343840/46291182-6eff9080-c553-11e8-8c96-47b21bad0922.png)\r\nIt shows up in visual studio as a run on sentence with no line breaks.  Since xml comments do not support  traditional line breaks, you might want to change the comments to something like this:\r\n```vb\r\n' SRC\\pix1.c (282, 1)\r\n' setPixMemoryManager()\r\n' setPixMemoryManager(alloc_fn, dealloc_fn) as void\r\n''' <summary>\r\n''' Notes<para/>\r\n''' (1) Use this to change the alloc and/or dealloc functions;\r\n''' e.g., setPixMemoryManager(my_malloc, my_free).<para/>\r\n''' (2) The C99 standard (section 6.7.5.3, par. 8) says\r\n''' A declaration of a parameter as \"function returning type\"\r\n''' shall be adjusted to \"pointer to function returning type\"\r\n''' so that it can be in either of these two forms\r\n''' (a) type (function-ptr(type, ...))\r\n''' (b) type ((function-ptr)(type, ...))\r\n''' because form (a) is implictly converted to form (b), as in the\r\n''' definition of struct PixMemoryManager above.  So, for example,\r\n''' we should be able to declare either of these\r\n''' (a) void (allocator(size_t))\r\n''' (b) void ((allocator)(size_t))<para/>\r\n''' However, MSVC++ only accepts the second version.<para/>\r\n'''  </summary>\r\n'''  <param name=\"allocator\">[in][optional] - use NULL to skip</param>\r\n'''  <param name=\"deallocator\">[in][optional] - use NULL to skip</param>\r\n```\r\nEverywhere you put ```<para/>``` it inserts a line break and a new line. Not a perfect solution but it may be better than 1 run on sentence.\r\n![tooltip2](https://user-images.githubusercontent.com/343840/46291212-7c1c7f80-c553-11e8-9746-bc3c578c2476.png)"},"comment":{"url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/comments/427001481","html_url":"https://github.com/Phreak87/LeptonicaSharp/issues/22#issuecomment-427001481","issue_url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/22","id":427001481,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzAwMTQ4MQ==","user":{"login":"fdncred","id":343840,"node_id":"MDQ6VXNlcjM0Mzg0MA==","avatar_url":"https://avatars2.githubusercontent.com/u/343840?v=4","gravatar_id":"","url":"https://api.github.com/users/fdncred","html_url":"https://github.com/fdncred","followers_url":"https://api.github.com/users/fdncred/followers","following_url":"https://api.github.com/users/fdncred/following{/other_user}","gists_url":"https://api.github.com/users/fdncred/gists{/gist_id}","starred_url":"https://api.github.com/users/fdncred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdncred/subscriptions","organizations_url":"https://api.github.com/users/fdncred/orgs","repos_url":"https://api.github.com/users/fdncred/repos","events_url":"https://api.github.com/users/fdncred/events{/privacy}","received_events_url":"https://api.github.com/users/fdncred/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T12:34:26Z","updated_at":"2018-10-04T12:34:26Z","author_association":"COLLABORATOR","body":"```<para/>``` changes are working"}}
{"actor":{"display_login":"fdncred"}}