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
Hide 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 )
*/
{
D_PAD
*
pad
,
**
padlist
,
**
pad_list_base
;
char
*
pad_type
;
c
onst
c
har
*
pad_type
;
int
memsize
,
ii
,
dx
,
dy
;
D_PAD
*
old_pad
=
NULL
;
int
pad_name_number
;
...
...
@@ -320,12 +320,12 @@ void CreateShapesSection( FILE* file, BOARD* pcb )
* $ENDSHAPES
*/
{
MODULE
*
module
;
D_PAD
*
pad
;
char
*
layer
;
int
orient
;
wxString
pinname
;
char
*
mirror
=
"0"
;
MODULE
*
module
;
D_PAD
*
pad
;
c
onst
c
har
*
layer
;
int
orient
;
wxString
pinname
;
c
onst
c
har
*
mirror
=
"0"
;
fputs
(
"$SHAPES
\n
"
,
file
);
...
...
@@ -378,13 +378,13 @@ void CreateComponentsSection( FILE* file, BOARD* pcb )
* Composants cote CUIVRE:
* Les formes sont donnees avec l'option "FLIP", c.a.d.:
* - 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
;
TEXTE_MODULE
*
PtTexte
;
c
har
*
mirror
;
c
har
*
flip
;
c
onst
char
*
mirror
;
c
onst
char
*
flip
;
int
ii
;
fputs
(
"$COMPONENTS
\n
"
,
file
);
...
...
pcbnew/gen_modules_placefile.cpp
View file @
53c3ddd3
...
...
@@ -356,7 +356,7 @@ void WinEDA_PcbFrame::GenModuleReport( wxCommandEvent& event )
layer
=
1
;
if
(
pad
->
m_Masque_Layer
&
CMP_LAYER
)
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
]
);
fputs
(
Line
,
rptfile
);
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