[mythtv-commits] Ticket #4546: Avoid exporting global variables (functions only)

MythTV mythtv at cvs.mythtv.org
Tue Jan 29 04:45:20 UTC 2008


#4546: Avoid exporting global variables (functions only)
-----------------------------+----------------------------------------------
 Reporter:  andrei at tanas.ca  |       Owner:  ijr 
     Type:  patch            |      Status:  new 
 Priority:  minor            |   Milestone:  0.21
Component:  mythtv           |     Version:  head
 Severity:  medium           |     Mlocked:  0   
-----------------------------+----------------------------------------------
 Win32 (sorry, again) doesn't like exported global variables and segfaults
 when accessing gContext and g_SSDP.
 The attached patch is very raw, I'm not suggesting to commit it as is, I'm
 just asking for opinion. If this will be considered a good idea, I'll hunt
 down other globals as well and submit another patch.

 For better effect, CreateMythContext (introduced in this patch) can be
 combined with mandatory gContext->Init.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4546>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list