[Github-comments] [geany] Gboxed types (#839)

Colomban Wendling notifications at xxxxx
Tue Dec 22 21:20:02 UTC 2015


> @@ -35,6 +35,14 @@
>  #include "tm_source_file.h"
>  #include "tm_tag.h"
>  
> +typedef struct
> +{
> +	TMSourceFile public;
> +	gint refcount;
> +} TMSourceFilePriv;
> +
> +#define SOURCE_FILE_NEW(S) ((S) = g_slice_new(TMSourceFilePriv))
> +#define SOURCE_FILE_FREE(S) g_slice_free(TMSourceFilePriv, (TMSourceFilePriv *) S)

these two macros might not be sensible, tmtag is like that but I'm not quite sure it helps at anything as we have only 1 call site for each, so it only adds indirection

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/839/files#r48299305
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151222/516cb4b5/attachment.html>


More information about the Github-comments mailing list