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
8d604456
Commit
8d604456
authored
May 24, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor cleanup
parent
654045f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
19 deletions
+7
-19
pcbnew.cpp
pcbnew/pcbnew.cpp
+5
-5
pcbnew.h
pcbnew/pcbnew.h
+0
-8
ratsnest.cpp
pcbnew/ratsnest.cpp
+2
-6
No files found.
pcbnew/pcbnew.cpp
View file @
8d604456
...
...
@@ -40,9 +40,10 @@ bool g_TwoSegmentTrackBuild = TRUE;
bool
g_HightLigt_Status
;
extern
PARAM_CFG_BASE
*
ParamCfgList
[];
char
*
buf_work
=
NULL
;
/* pointeur sur le buffer de travail */
char
*
adr_lowmem
=
NULL
;
/* adresse de base memoire de calcul disponible*/
char
*
adr_max
=
NULL
;
/* adresse haute maxi utilisee pour la memoire */
/* A buffer used in some computations (will be removed in next cleanup code,
* DO NOT use) */
#define BUFMEMSIZE 256000
/* buffer size (in bytes) */
char
*
adr_lowmem
=
NULL
;
int
Angle_Rot_Module
;
int
ModuleSegmentWidth
;
...
...
@@ -141,8 +142,7 @@ Changing extension to .brd." ),
/* allocation de la memoire pour le fichier et autres buffers: */
/* On reserve BUFMEMSIZE octets de ram pour calcul */
buf_work
=
adr_lowmem
=
(
char
*
)
MyZMalloc
(
BUFMEMSIZE
);
/* adresse de la zone de calcul */
adr_max
=
adr_lowmem
;
adr_lowmem
=
(
char
*
)
MyZMalloc
(
BUFMEMSIZE
);
/* adresse de la zone de calcul */
if
(
adr_lowmem
==
NULL
)
{
...
...
pcbnew/pcbnew.h
View file @
8d604456
...
...
@@ -82,14 +82,6 @@ extern bool Segments_45_Only;
extern
wxString
g_Shapes3DExtBuffer
;
extern
wxString
g_DocModulesFileName
;
/* A buffer used in some computations (will be removed in next cleanup code,
* do not use) */
#define BUFMEMSIZE 256000
/* buffer size (in bytes) */
extern
char
*
buf_work
;
/* pointeur sur le buffer de travail */
extern
char
*
adr_lowmem
;
/* adresse de base memoire de calcul disponible*/
extern
char
*
adr_himem
;
/* adresse haute limite de la memoire disponible*/
extern
char
*
adr_max
;
/* adresse haute maxi utilisee pour la memoire */
/* Variables used in footprint handling */
extern
int
Angle_Rot_Module
;
extern
wxSize
ModuleTextSize
;
/* Default footprint texts size */
...
...
pcbnew/ratsnest.cpp
View file @
8d604456
...
...
@@ -13,6 +13,8 @@
#include "protos.h"
extern
char
*
adr_lowmem
;
/* adresse de base memoire de calcul disponible */
/* exported variables */
CHEVELU
*
g_pt_chevelu
;
CHEVELU
*
local_liste_chevelu
;
// Buffer address for local ratsnest
...
...
@@ -566,7 +568,6 @@ void WinEDA_BasePcbFrame::Build_Board_Ratsnest( wxDC* DC )
m_Pcb
->
m_NbNoconnect
=
noconn
;
m_Pcb
->
m_Status_Pcb
|=
LISTE_CHEVELU_OK
;
adr_lowmem
=
buf_work
;
// erase the ratsnest displayed on screen if needed
CHEVELU
*
Chevelu
=
(
CHEVELU
*
)
m_Pcb
->
m_Ratsnest
;
...
...
@@ -1002,8 +1003,6 @@ void WinEDA_BasePcbFrame::build_liste_pads()
}
}
adr_lowmem
=
buf_work
;
if
(
m_Pcb
->
m_Ratsnest
)
{
MyFree
(
m_Pcb
->
m_Ratsnest
);
...
...
@@ -1247,9 +1246,6 @@ calcul_chevelu_ext:
local_chevelu
++
;
}
/* return the new free memory buffer address, in the general buffer */
adr_max
=
MAX
(
adr_max
,
(
char
*
)
(
local_chevelu
+
1
)
);
return
(
char
*
)
(
local_chevelu
+
1
);
/* the struct pointed by local_chevelu is used
in temporary computations, so we skip it
*/
...
...
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