[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (8edbb89218afc6c035357c04738233cd92767eea)
The branch, master has been updated
via 8edbb89218afc6c035357c04738233cd92767eea (commit)
from 46a84d5baee66bc03dd72adb03083ec7c92b64d3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/file.c | 6 +++++-
src/parse_l.l | 4 ++++
2 files changed, 9 insertions(+), 1 deletions(-)
=================
Commit Messages
=================
commit 8edbb89218afc6c035357c04738233cd92767eea
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>
Wrap more messages in debug
Messages about where fonts were found, or how many milliseconds
it takes to load a file, are not normally needed. Wrap them in
DEBUG conditionals.
:100644 100644 97412b2... 6893379... M src/file.c
:100644 100644 8aa754c... 9163fde... M src/parse_l.l
=========
Changes
=========
commit 8edbb89218afc6c035357c04738233cd92767eea
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>
Wrap more messages in debug
Messages about where fonts were found, or how many milliseconds
it takes to load a file, are not normally needed. Wrap them in
DEBUG conditionals.
diff --git a/src/file.c b/src/file.c
index 97412b2..6893379 100644
--- a/src/file.c
+++ b/src/file.c
@@ -352,10 +352,12 @@ LoadPCB (char *Filename)
{
PCBTypePtr newPCB = CreateNewPCB (false);
bool units_mm;
- clock_t start, end;
double elapsed;
+#ifdef DEBUG
+ clock_t start, end;
start = clock ();
+#endif
/* new data isn't added to the undo list */
if (!ParsePCB (newPCB, Filename))
@@ -401,10 +403,12 @@ LoadPCB (char *Filename)
hid_action ("PCBChanged");
+#ifdef DEBUG
end = clock ();
elapsed = ((double) (end - start)) / CLOCKS_PER_SEC;
gui->log ("Loading file %s took %f seconds of CPU time\n",
Filename, elapsed);
+#endif
return (0);
}
diff --git a/src/parse_l.l b/src/parse_l.l
index 8aa754c..9163fde 100644
--- a/src/parse_l.l
+++ b/src/parse_l.l
@@ -342,11 +342,15 @@ int ParseFont(FontTypePtr Ptr, char *Filename)
for (p = strtok (path, PCB_PATH_DELIMETER); p && *p;
p = strtok (NULL, PCB_PATH_DELIMETER))
{
+#ifdef DEBUG
Message ("Looking for %s in %s\n", Filename, p);
+#endif
r = Parse(Settings.FontCommand, p, Filename, NULL);
if (r == 0)
{
+#ifdef DEBUG
Message ("Found %s in %s\n", Filename, p);
+#endif
break;
}
}
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs