← Back to team overview

kicad-developers team mailing list archive

data in headers

 



Ki_WorkSheetData        WS_Revision =
{
    WS_REV,
    &WS_SizeSheet,
    BLOCK_REV_X,   BLOCK_REV_Y,
    0,                      0,
    wxT( "Rev: " ),NULL
};



Jean-Pierre,


I noticed in title_block_shapes.h you have data definitions rather than declarations:


  http://www.cprogramming.com/declare_vs_define.html

It is not a common practice, is this just temporary?

The more common practice is to use extern declarations in the header, and define the data
in a *.cpp file.


Why are you doing this?


Dick



Follow ups