<blockquote>
<p>Changing anything that returns memory back to Geany from g_* to malloc means the frees inside Geany need to be changed from g_free() tofree() since you can't mix them (according to the Glib description section) It is going to be confusing if some memory in geany needs to be g_freed and some plain freed. And I hope none of that gets to the plugin API.</p>
</blockquote>

<p>There are no frees of ctags values inside Geany - we copy the values from ctags tag entries and let ctags handle the memory management of its values. This shouldn't be a problem. </p>

<blockquote>
<p>g_strerror() is different to POSIX in that its guaranteed UTF-8 whereas POSIX is locale dependent. That means it needs conversion if its to be displayed in the UI. OT not all g_ string changes were part of a global change <g-emoji alias="grin" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f601.png">😁</g-emoji></p>
</blockquote>

<p>This is in an error reporting function and from what I could see the new uctags code allows registering custom reporting function which we should do. So this shouldn't be a problem either.</p>

<blockquote>
<p>I believe g_stat etc work around much windows weirdness, which would have to be solved if the Glib version was not used. (BTW why don't these get <a href="https://github.com/geany/geany/issues/605" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/605" data-id="100036929" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#605</a> type problems?)</p>
</blockquote>

<p>Those are coming from the dead code (for Geany) anyway so it doesn't matter much. And ctags supports Windows natively so I suppose they solve various platform-specific quirks anyway.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1160#issuecomment-237534564">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJzBsMcmQfLRpRM8gyVMZGXn1fuiVks5qcdaOgaJpZM4JbITK">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ__wn6J1kNlNC0HafB8Re4ZpW4r1ks5qcdaOgaJpZM4JbITK.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/1160#issuecomment-237534564"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/modules/aws/aws-bg.jpg","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@techee in #1160: \u003e Changing anything that returns memory back to Geany from g_* to malloc means the frees inside Geany need to be changed from g_free() tofree() since you can't mix them (according to the Glib description section) It is going to be confusing if some memory in geany needs to be g_freed and some plain freed. And I hope none of that gets to the plugin API.\r\n\r\nThere are no frees of ctags values inside Geany - we copy the values from ctags tag entries and let ctags handle the memory management of its values. This shouldn't be a problem. \r\n\r\n\u003e g_strerror() is different to POSIX in that its guaranteed UTF-8 whereas POSIX is locale dependent. That means it needs conversion if its to be displayed in the UI. OT not all g_ string changes were part of a global change 😁\r\n\r\nThis is in an error reporting function and from what I could see the new uctags code allows registering custom reporting function which we should do. So this shouldn't be a problem either.\r\n\r\n\u003e I believe g_stat etc work around much windows weirdness, which would have to be solved if the Glib version was not used. (BTW why don't these get #605 type problems?)\r\n\r\nThose are coming from the dead code (for Geany) anyway so it doesn't matter much. And ctags supports Windows natively so I suppose they solve various platform-specific quirks anyway."}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany/pull/1160#issuecomment-237534564"}}}</script>