public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
* Bugfix for sorting problem in the symbol browser
@ 2001-04-23  3:04 Khamis Abuelkomboz (UUNET)
  2001-04-23  3:06 ` Khamis Abuelkomboz (UUNET)
  0 siblings, 1 reply; 5+ messages in thread
From: Khamis Abuelkomboz (UUNET) @ 2001-04-23  3:04 UTC (permalink / raw)
  To: sourcenav

This patch applies to SN5.0 and SN4.52.

The whole file is located at http://home.knuut.de/sn/compare.c
Please notice that it uses the same compare conditions like the
column sorting...
You can download the binaries with this change for windows platforms:
http://home.knuut.de/sn/sn452/hyper.exe
http://home.knuut.de/sn/sn50/hyper.exe

PATCH-Output for the fixed file <SRC>/snavigator/hyper/compare.c:

+++ compare.c   Mon Apr 23 09:46:47 2001
@@ -23,8 +23,10 @@

  */

+#include <config.h>
  #include <ctype.h>
  #include "tclInt.h"
+#include "tkInt.h"

  /*
   *----------------------------------------------------------------------
@@ -79,44 +81,12 @@
      right++;
    }

-  for ( ; (*left != '\0') && (*right != '\0'); left++, right++) {
-    if (*left == *right) {
-      continue;
-    }
-
-    leftCh = toupper(*left);
-    rightCh = toupper(*right);
-
-    if (leftCh < rightCh) {
-      Tcl_SetIntObj(Tcl_GetObjResult(interp), -1);
-      return TCL_OK;
-    } else if (rightCh < leftCh) {
-      Tcl_SetIntObj(Tcl_GetObjResult(interp), 1);
-      return TCL_OK;
-    } else {
-      /* `A' is less than `a'. */
-      if (isupper(*left) && islower(*right)) {
-       Tcl_SetIntObj(Tcl_GetObjResult(interp), -1);
-       return TCL_OK;
-      }
-      /* `a' is greater than `A'. */
-      if (islower(*left) && isupper(*right)) {
-       Tcl_SetIntObj(Tcl_GetObjResult(interp), 1);
-       return TCL_OK;
-      }
-    }
-  }
-
-  if (*left == '\0') {
-    if (*right == '\0') {
-      Tcl_SetIntObj(Tcl_GetObjResult(interp), 0);
-    } else {
-      Tcl_SetIntObj(Tcl_GetObjResult(interp), -1);
+  dummy = (tolower(*left) - tolower(*right));
+  if (dummy == 0 && *left != '\0')
+    {
+      dummy = strcasecmp (left + 1, right + 1);
      }
-  } else {
-    Tcl_SetIntObj(Tcl_GetObjResult(interp), 1);
-  }
-
+  Tcl_SetIntObj(Tcl_GetObjResult(interp), dummy);
    return TCL_OK;
  }

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bugfix for sorting problem in the symbol browser
  2001-04-23  3:04 Bugfix for sorting problem in the symbol browser Khamis Abuelkomboz (UUNET)
@ 2001-04-23  3:06 ` Khamis Abuelkomboz (UUNET)
  2001-04-26  5:24   ` Using Nedit, gvim, etc Editors with Snav 4.x Bill Munday
  0 siblings, 1 reply; 5+ messages in thread
From: Khamis Abuelkomboz (UUNET) @ 2001-04-23  3:06 UTC (permalink / raw)
  To: Khamis Abuelkomboz (UUNET); +Cc: sourcenav

Ups, the URLS are

Khamis Abuelkomboz (UUNET) wrote:

> The whole file is located at http://home.knuut.de/sn/compare.c
http://home.knuut.de/khamis/sn/compare.c

> http://home.knuut.de/sn/sn452/hyper.exe
> http://home.knuut.de/sn/sn50/hyper.exe

http://home.knuut.de/khamis/sn/sn452/hyper.exe
http://home.knuut.de/khamis/sn/sn50/hyper.exe


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Using Nedit, gvim, etc Editors with Snav 4.x
  2001-04-23  3:06 ` Khamis Abuelkomboz (UUNET)
@ 2001-04-26  5:24   ` Bill Munday
  2001-04-26 16:08     ` Ian Roxborough
  2001-04-26 18:36     ` Mo DeJong
  0 siblings, 2 replies; 5+ messages in thread
From: Bill Munday @ 2001-04-26  5:24 UTC (permalink / raw)
  To: egcs; +Cc: sourcenav

Hi,

Up till now I have been happy with SN Editor until recently where it has
started to mess up syntax highlighting, an nor can it highlight sam files.

How do I use another editor and still maintain the jumping to errors
during the build step?

As changing the Preferences - EDIT = external editor does not give a clean
integration.

Thanks
Bill

PS How comes no one aswered my previous emails?
PS2 Have you thought about docking the windows like Microsoft VC6

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using Nedit, gvim, etc Editors with Snav 4.x
  2001-04-26  5:24   ` Using Nedit, gvim, etc Editors with Snav 4.x Bill Munday
@ 2001-04-26 16:08     ` Ian Roxborough
  2001-04-26 18:36     ` Mo DeJong
  1 sibling, 0 replies; 5+ messages in thread
From: Ian Roxborough @ 2001-04-26 16:08 UTC (permalink / raw)
  To: Bill Munday; +Cc: sourcenav

Bill Munday wrote:
> Up till now I have been happy with SN Editor until recently where it has
> started to mess up syntax highlighting, an nor can it highlight sam files.

SN doesn't know anything about sam files (I don't either for that matter).
However, if you can produce a short reproducible test case for the
highlighting problem, then it's a step closer to being fixed.

> How do I use another editor and still maintain the jumping to errors
> during the build step?

Emacs is meant to have that level of integration, however it's
possible that the Emacs integration is broken.  Current, I don't
think there are any other editors that could work like that.
 
> As changing the Preferences - EDIT = external editor does not give a clean
> integration.

Yeah, that level of integration would require adding an editor interface
layer that can control either an existing SN editor or be ported to
control 3rd party editors.

> PS How comes no one aswered my previous emails?

I didn't have a good answer.

Ian.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using Nedit, gvim, etc Editors with Snav 4.x
  2001-04-26  5:24   ` Using Nedit, gvim, etc Editors with Snav 4.x Bill Munday
  2001-04-26 16:08     ` Ian Roxborough
@ 2001-04-26 18:36     ` Mo DeJong
  1 sibling, 0 replies; 5+ messages in thread
From: Mo DeJong @ 2001-04-26 18:36 UTC (permalink / raw)
  To: sourcenav

On Thu, 26 Apr 2001, Bill Munday wrote:

> Hi,
> 
> Up till now I have been happy with SN Editor until recently where it has
> started to mess up syntax highlighting, an nor can it highlight sam files.
> 
> How do I use another editor and still maintain the jumping to errors
> during the build step?

I think that is covered here:

http://sources.redhat.com/sourcenav/online-docs/userguide/editor.html#pgfId-1075901

> As changing the Preferences - EDIT = external editor does not give a clean
> integration.

Could you explain what you mean by that? An external editor is by
definition not integrated.

Mo

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-04-26 18:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-23  3:04 Bugfix for sorting problem in the symbol browser Khamis Abuelkomboz (UUNET)
2001-04-23  3:06 ` Khamis Abuelkomboz (UUNET)
2001-04-26  5:24   ` Using Nedit, gvim, etc Editors with Snav 4.x Bill Munday
2001-04-26 16:08     ` Ian Roxborough
2001-04-26 18:36     ` Mo DeJong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).