Bug #368

oml2_scaffold generates code which can't be included in more than one file

Added by Max Ott over 1 year ago. Updated over 1 year ago.

Status:Closed Start date:26/08/2010
Priority:Normal Due date:
Assignee:Jolyon White % Done:

100%

Category:tools
Target version:2.4.0

Description

Reported by Ofir Amir:

When using oml2_scaffold it generates the following code that's not compiling in the case we include OML in more than a single source file.

       #ifndef OML_FROM_MAIN
       oml_mps_t* g_oml_mps;
       #else

I changed it to generate the following code:
       #ifndef OML_FROM_MAIN
       extern oml_mps_t* g_oml_mps;
       #else

History

Updated by Jolyon White over 1 year ago

  • Category set to tools
  • Status changed from New to Closed
  • Assignee set to Jolyon White
  • Target version set to 2.4.0
  • % Done changed from 0 to 100

Committed to 'master'. This change will be part of OML 2.4.0.

Also available in: Atom PDF