<div dir="ltr"><div>Cool.<br><br></div>Reviewed-by: Jasper St. Pierre <<a href="mailto:jstpierre@mecheye.net">jstpierre@mecheye.net</a>><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 29, 2013 at 9:51 PM, Alan Coopersmith <span dir="ltr"><<a href="mailto:alan.coopersmith@oracle.com" target="_blank">alan.coopersmith@oracle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Alan Coopersmith <<a href="mailto:alan.coopersmith@oracle.com">alan.coopersmith@oracle.com</a>><br>
---<br>
utils.c | 59 -----------------------------------------------------------<br>
utils.h | 60 ------------------------------------------------------------<br>
xkbcomp.c | 1 -<br>
3 files changed, 120 deletions(-)<br>
<br>
diff --git a/utils.c b/utils.c<br>
index 55efbe1..541c33e 100644<br>
--- a/utils.c<br>
+++ b/utils.c<br>
@@ -88,65 +88,6 @@ uFree(Opaque ptr)<br>
}<br>
<br>
/***====================================================================***/<br>
-/*** FUNCTION ENTRY TRACKING ***/<br>
-/***====================================================================***/<br>
-<br>
-static FILE *entryFile = NULL;<br>
-int uEntryLevel;<br>
-<br>
-Boolean<br>
-uSetEntryFile(char *name)<br>
-{<br>
- if ((entryFile != NULL) && (entryFile != stderr))<br>
- {<br>
- fprintf(entryFile, "switching to %s\n", name ? name : "stderr");<br>
- fclose(entryFile);<br>
- }<br>
- if (name != NullString)<br>
- entryFile = fopen(name, "w");<br>
- else<br>
- entryFile = stderr;<br>
- if (entryFile == NULL)<br>
- {<br>
- entryFile = stderr;<br>
- return (False);<br>
- }<br>
- return (True);<br>
-}<br>
-<br>
-void<br>
-uEntry(int l, char *s, ...)<br>
-{<br>
- int i;<br>
- va_list args;<br>
-<br>
- for (i = 0; i < uEntryLevel; i++)<br>
- {<br>
- putc(' ', entryFile);<br>
- }<br>
- va_start(args, s);<br>
- vfprintf(entryFile, s, args);<br>
- va_end(args);<br>
- uEntryLevel += l;<br>
-}<br>
-<br>
-void<br>
-uExit(int l, char *rtVal)<br>
-{<br>
- int i;<br>
-<br>
- uEntryLevel -= l;<br>
- if (uEntryLevel < 0)<br>
- uEntryLevel = 0;<br>
- for (i = 0; i < uEntryLevel; i++)<br>
- {<br>
- putc(' ', entryFile);<br>
- }<br>
- fprintf(entryFile, "---> %p\n", rtVal);<br>
- return;<br>
-}<br>
-<br>
-/***====================================================================***/<br>
/*** PRINT FUNCTIONS ***/<br>
/***====================================================================***/<br>
<br>
diff --git a/utils.h b/utils.h<br>
index b00067d..62c9f2f 100644<br>
--- a/utils.h<br>
+++ b/utils.h<br>
@@ -277,64 +277,4 @@ extern<br>
#define uDEBUG_NOI5(f,s,a,b,c,d,e)<br>
#endif<br>
<br>
- extern Boolean uSetEntryFile(char *name);<br>
- extern void uEntry(int /* l */ ,<br>
- char * /* s */ , ...<br>
- ) _X_ATTRIBUTE_PRINTF(2, 3);<br>
-<br>
- extern void uExit(int l, char *rtVal);<br>
-#ifdef ENTRY_TRACKING_ON<br>
-#define ENTRY_BIT 0x10<br>
-#define LOW_ENTRY_BIT 0x1000<br>
-#define ENTER (DEBUG_VAR&ENTRY_BIT)<br>
-#define FLAG(fLag) (DEBUG_VAR&(fLag))<br>
-<br>
- extern int uEntryLevel;<br>
-<br>
-#define uENTRY(s) { if (ENTER) uEntry(1,s);}<br>
-#define uENTRY1(s,a) { if (ENTER) uEntry(1,s,a);}<br>
-#define uENTRY2(s,a,b) { if (ENTER) uEntry(1,s,a,b);}<br>
-#define uENTRY3(s,a,b,c) { if (ENTER) uEntry(1,s,a,b,c);}<br>
-#define uENTRY4(s,a,b,c,d) { if (ENTER) uEntry(1,s,a,b,c,d);}<br>
-#define uENTRY5(s,a,b,c,d,e) { if (ENTER) uEntry(1,s,a,b,c,d,e);}<br>
-#define uENTRY6(s,a,b,c,d,e,f) { if (ENTER) uEntry(1,s,a,b,c,d,e,f);}<br>
-#define uENTRY7(s,a,b,c,d,e,f,g) { if (ENTER) uEntry(1,s,a,b,c,d,e,f,g);}<br>
-#define uRETURN(v) { if (ENTER) uEntryLevel--; return(v); }<br>
-#define uVOIDRETURN { if (ENTER) uEntryLevel--; return; }<br>
-<br>
-#define uFLAG_ENTRY(w,s) { if (FLAG(w)) uEntry(0,s);}<br>
-#define uFLAG_ENTRY1(w,s,a) { if (FLAG(w)) uEntry(0,s,a);}<br>
-#define uFLAG_ENTRY2(w,s,a,b) { if (FLAG(w)) uEntry(0,s,a,b);}<br>
-#define uFLAG_ENTRY3(w,s,a,b,c) { if (FLAG(w)) uEntry(0,s,a,b,c);}<br>
-#define uFLAG_ENTRY4(w,s,a,b,c,d) { if (FLAG(w)) uEntry(0,s,a,b,c,d);}<br>
-#define uFLAG_ENTRY5(w,s,a,b,c,d,e) { if (FLAG(w)) uEntry(0,s,a,b,c,d,e);}<br>
-#define uFLAG_ENTRY6(w,s,a,b,c,d,e,f) { if (FLAG(w)) uEntry(0,s,a,b,c,d,e,f);}<br>
-#define uFLAG_ENTRY7(w,s,a,b,c,d,e,f,g) { if(FLAG(w))uEntry(0,s,a,b,c,d,e,f,g);}<br>
-#define uFLAG_RETURN(v) { return(v);}<br>
-#define uFLAG_VOIDRETURN { return; }<br>
-#else<br>
-#define uENTRY(s)<br>
-#define uENTRY1(s,a)<br>
-#define uENTRY2(s,a1,a2)<br>
-#define uENTRY3(s,a1,a2,a3)<br>
-#define uENTRY4(s,a1,a2,a3,a4)<br>
-#define uENTRY5(s,a1,a2,a3,a4,a5)<br>
-#define uENTRY6(s,a1,a2,a3,a4,a5,a6)<br>
-#define uENTRY7(s,a1,a2,a3,a4,a5,a6,a7)<br>
-#define uRETURN(v) { return(v); }<br>
-#define uVOIDRETURN { return; }<br>
-<br>
-#define uFLAG_ENTRY(f,s)<br>
-#define uFLAG_ENTRY1(f,s,a)<br>
-#define uFLAG_ENTRY2(f,s,a,b)<br>
-#define uFLAG_ENTRY3(f,s,a,b,c)<br>
-#define uFLAG_ENTRY4(f,s,a,b,c,d)<br>
-#define uFLAG_ENTRY5(f,s,a,b,c,d,e)<br>
-#define uFLAG_ENTRY6(f,s,a,b,c,d,e,g)<br>
-#define uFLAG_ENTRY7(f,s,a,b,c,d,e,g,h)<br>
-#define uFLAG_RETURN(v) { return(v);}<br>
-#define uFLAG_VOIDRETURN { return; }<br>
-#endif<br>
-<br>
-<br>
#endif /* UTILS_H */<br>
diff --git a/xkbcomp.c b/xkbcomp.c<br>
index fb5dec2..a4ee359 100644<br>
--- a/xkbcomp.c<br>
+++ b/xkbcomp.c<br>
@@ -881,7 +881,6 @@ main(int argc, char *argv[])<br>
Status status;<br>
<br>
scan_set_file(stdin);<br>
- uSetEntryFile(NullString);<br>
uSetDebugFile(NullString);<br>
uSetErrorFile(NullString);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
1.7.9.2<br>
<br>
_______________________________________________<br>
<a href="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</a>: X.Org development<br>
Archives: <a href="http://lists.x.org/archives/xorg-devel" target="_blank">http://lists.x.org/archives/xorg-devel</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg-devel" target="_blank">http://lists.x.org/mailman/listinfo/xorg-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br> Jasper<br>
</div>