gcc 4.2.1 compatibility: change char * to const char *
This commit is contained in:
parent
c4f1a36a8a
commit
53c3ddd363
|
@ -184,7 +184,7 @@ void CreatePadsShapesSection( FILE* file, BOARD* pcb )
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
D_PAD* pad, ** padlist, ** pad_list_base;
|
D_PAD* pad, ** padlist, ** pad_list_base;
|
||||||
char* pad_type;
|
const char* pad_type;
|
||||||
int memsize, ii, dx, dy;
|
int memsize, ii, dx, dy;
|
||||||
D_PAD* old_pad = NULL;
|
D_PAD* old_pad = NULL;
|
||||||
int pad_name_number;
|
int pad_name_number;
|
||||||
|
@ -322,10 +322,10 @@ void CreateShapesSection( FILE* file, BOARD* pcb )
|
||||||
{
|
{
|
||||||
MODULE* module;
|
MODULE* module;
|
||||||
D_PAD* pad;
|
D_PAD* pad;
|
||||||
char* layer;
|
const char* layer;
|
||||||
int orient;
|
int orient;
|
||||||
wxString pinname;
|
wxString pinname;
|
||||||
char* mirror = "0";
|
const char* mirror = "0";
|
||||||
|
|
||||||
fputs( "$SHAPES\n", file );
|
fputs( "$SHAPES\n", file );
|
||||||
|
|
||||||
|
@ -378,13 +378,13 @@ void CreateComponentsSection( FILE* file, BOARD* pcb )
|
||||||
* Composants cote CUIVRE:
|
* Composants cote CUIVRE:
|
||||||
* Les formes sont donnees avec l'option "FLIP", c.a.d.:
|
* Les formes sont donnees avec l'option "FLIP", c.a.d.:
|
||||||
* - ils sont decrits en vue normale (comme s'ils etaient sur cote COMPOSANT)
|
* - ils sont decrits en vue normale (comme s'ils etaient sur cote COMPOSANT)
|
||||||
* - leur orientation est donnée comme s'ils etaient cote composant.
|
* - leur orientation est donn<EFBFBD>e comme s'ils etaient cote composant.
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
MODULE* module = pcb->m_Modules;
|
MODULE* module = pcb->m_Modules;
|
||||||
TEXTE_MODULE* PtTexte;
|
TEXTE_MODULE* PtTexte;
|
||||||
char* mirror;
|
const char* mirror;
|
||||||
char* flip;
|
const char* flip;
|
||||||
int ii;
|
int ii;
|
||||||
|
|
||||||
fputs( "$COMPONENTS\n", file );
|
fputs( "$COMPONENTS\n", file );
|
||||||
|
|
|
@ -356,7 +356,7 @@ void WinEDA_PcbFrame::GenModuleReport( wxCommandEvent& event )
|
||||||
layer = 1;
|
layer = 1;
|
||||||
if( pad->m_Masque_Layer & CMP_LAYER )
|
if( pad->m_Masque_Layer & CMP_LAYER )
|
||||||
layer |= 2;
|
layer |= 2;
|
||||||
char* layer_name[4] = { "??? ", "copper", "component", "all" };
|
const char* layer_name[4] = { "??? ", "copper", "component", "all" };
|
||||||
sprintf( Line, "Layer %s\n", layer_name[layer] );
|
sprintf( Line, "Layer %s\n", layer_name[layer] );
|
||||||
fputs( Line, rptfile );
|
fputs( Line, rptfile );
|
||||||
fprintf( rptfile, "$EndPAD\n" );
|
fprintf( rptfile, "$EndPAD\n" );
|
||||||
|
|
Loading…
Reference in New Issue