Clear memory through g_auto macros
Follow-up of !524 (comment 1706408)
I asked in the GTK matrix channel and got the reply below. Copying the conversation here for the record. I'd be happy to start looking into this, but it is quite a lot of repetitive annoying work. So I'd first like confirmation from maintainers that this is fine before getting into it :)
Pablo Correa Gomez
Hi, I know some people here sometimes compile GTK apps for windows.
Is MVSC a requirement for that? Or is there some other reliable compiler in windows?
Asking in regards of https://gitlab.gnome.org/GNOME/evince/-/merge_requests/524#note_1706408
Company
we have CI builders for msvc and msys
Pablo Correa Gomez
Does msys support the g_auto macros?
Company
and there's also cross-compilation that can be done
yes, msys is using gcc - it's basically the old cygwin pipeline
Pablo Correa Gomez
Wonderful, thanks a lot!
Company
the problem on Windows is development - there is no good IDE for developing GTK/Gnome stuff,
it's all jsut tools to build executables
and when they don't work, nobody is gonna debug them
and the closest you get can to that is via MSVC
* and the closest you get to an IDE that can to that is via MSVC
Pablo Correa Gomez
That's fine. We're not going to do development on Windows,
but Evince maintainer might at some point want to do Windows releases
And I just wanted to make sure that we could add g_auto macros
Company
Windows releases are not gonna be useful unless you debug issues in them
Pablo Correa Gomez
Fair enough
Company
like, if you get a bug "if i click a link in a PDF it doesn't open.
I'm on Windows", you need a developer on Windows
but: if you let that stop you from using g_autoptr is of course a valid question
especially because by the time you do do a serious Windows build, things might have changed again
like, Microsoft has been looking at llvm/clang for building and there are other IDEs
I know hergertme is always dreaming about getting builder to run on Windows
Pablo Correa Gomez
Yeah, exactly. The wonder right now is if it closes the door to windows builds,
which looks like it doesn't
Company
nope, building stuff works with autoptrs
Edited by Pablo Correa Gomez