Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
53c3ddd3
Commit
53c3ddd3
authored
Nov 08, 2007
by
f3nix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc 4.2.1 compatibility: change char * to const char *
parent
c4f1a36a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
export_gencad.cpp
pcbnew/export_gencad.cpp
+10
-10
gen_modules_placefile.cpp
pcbnew/gen_modules_placefile.cpp
+1
-1
No files found.
pcbnew/export_gencad.cpp
View file @
53c3ddd3
...
@@ -184,7 +184,7 @@ void CreatePadsShapesSection( FILE* file, BOARD* pcb )
...
@@ -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
;
c
onst
c
har
*
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 )
...
@@ -322,10 +322,10 @@ void CreateShapesSection( FILE* file, BOARD* pcb )
{
{
MODULE
*
module
;
MODULE
*
module
;
D_PAD
*
pad
;
D_PAD
*
pad
;
char
*
layer
;
c
onst
c
har
*
layer
;
int
orient
;
int
orient
;
wxString
pinname
;
wxString
pinname
;
char
*
mirror
=
"0"
;
c
onst
c
har
*
mirror
=
"0"
;
fputs
(
"$SHAPES
\n
"
,
file
);
fputs
(
"$SHAPES
\n
"
,
file
);
...
@@ -378,13 +378,13 @@ void CreateComponentsSection( FILE* file, BOARD* pcb )
...
@@ -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
�e
comme s'ils etaient cote composant.
*/
*/
{
{
MODULE
*
module
=
pcb
->
m_Modules
;
MODULE
*
module
=
pcb
->
m_Modules
;
TEXTE_MODULE
*
PtTexte
;
TEXTE_MODULE
*
PtTexte
;
c
har
*
mirror
;
c
onst
char
*
mirror
;
c
har
*
flip
;
c
onst
char
*
flip
;
int
ii
;
int
ii
;
fputs
(
"$COMPONENTS
\n
"
,
file
);
fputs
(
"$COMPONENTS
\n
"
,
file
);
...
...
pcbnew/gen_modules_placefile.cpp
View file @
53c3ddd3
...
@@ -356,7 +356,7 @@ void WinEDA_PcbFrame::GenModuleReport( wxCommandEvent& event )
...
@@ -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"
};
c
onst
c
har
*
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
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment