joe/joe-codecleanup.patch
Daniel Rahn f7544adc66 Accepting request 312384 from home:thehejik:branches:editors
- Version update to 4.0:
  - JOE now has pop-up shell windows with full terminal emulation
    and shell commands that can control the editor. Hit F1 - F4 to bring up a shell window.
  - See Pop-up shell feature for a full description.
  - The status command (^K SPACE) can now be customized using the same syntax
    as the status bar. Look for smsg and zmsg in joerc to see how to do this.
    parserr (the error parser) will parse only the highlighted block if it's set.
    Before it always parsed the entire buffer.
  - Now there is a per-buffer concept of current directory. This was added to
    make the pop-up shell windows work better, but it's useful in general.
  - At file prompts you can begin a new anchored path without having to delete
    the old one. It means that ~jhallen/foo//etc/passwd is translated to /etc/passwd.
  - Prompt windows are now highighted to indicate which parts of the path are
    being dropped. There is a syntax file for this: filename.jsf
  - The error parser now ignores ANSI sequences (some versions of grep
    color their results, now JOE can still parse it).
  - Temporary messages are now dismissed by keyboard input only. Before, they
    could also be dismissed by shell input.
  - Tags search now supports multiple matches. ^K ; can be configured to
    either provide a menu of the matches or to cycle through them.
  - Tags search will now match on the member name part of member functions
    ('fred' will match 'myclass::fred').
  - Tags search will prepend the path to the tags file file name in the tags
    file. This is important when JOE finds the tags file via the TAGS
    environment variable.
  - Remove ` as quote character from incremental search.
  - Clean up documentation, convert much of it to Markdown.
- Cleanup with spec-cleaner
- Drop languages as they don't work at all
- refreshed patches:

OBS-URL: https://build.opensuse.org/request/show/312384
OBS-URL: https://build.opensuse.org/package/show/editors/joe?expand=0&rev=20
2015-07-08 07:36:46 +00:00

41 lines
1.8 KiB
Diff

Index: joe-4.0/joe/b.c
===================================================================
--- joe-4.0.orig/joe/b.c
+++ joe-4.0/joe/b.c
@@ -2327,13 +2327,13 @@ unsigned char *parsens(unsigned char *s,
#if HAVE_LONG_LONG
if (n[x + 1] == 'x' || n[x + 1] == 'X')
- sscanf((char *)(n + x + 2), "%llx", &skipr);
+ sscanf((char *)(n + x + 2), "%llx", (long long unsigned int *)skipr);
else if (n[x + 1] == '0' && (n[x + 2] == 'x' || n[x + 2] == 'X'))
- sscanf((char *)(n + x + 3), "%llx", &skipr);
+ sscanf((char *)(n + x + 3), "%llx", (long long unsigned int *)skipr);
else if (n[x + 1] == '0')
- sscanf((char *)(n + x + 1), "%llo", &skipr);
+ sscanf((char *)(n + x + 1), "%llo", (long long unsigned int *)skipr);
else
- sscanf((char *)(n + x + 1), "%llu", &skipr);
+ sscanf((char *)(n + x + 1), "%llu", (long long int *)skipr);
#else
if (n[x + 1] == 'x' || n[x + 1] == 'X')
sscanf((char *)(n + x + 2), "%lx", &skipr);
@@ -2353,13 +2353,13 @@ unsigned char *parsens(unsigned char *s,
*amnt = *skip;
#ifdef HAVE_LONG_LONG
if (n[x + 1] == 'x' || n[x + 1] == 'X')
- sscanf((char *)(n + x + 2), "%llx", &skipr);
+ sscanf((char *)(n + x + 2), "%llx", (long long unsigned int *)&skipr);
else if (n[x + 1] == '0' && (n[x + 2] == 'x' || n[x + 2] == 'X'))
- sscanf((char *)(n + x + 3), "%llx", &skipr);
+ sscanf((char *)(n + x + 3), "%llx", (long long unsigned int *)skipr);
else if (n[x + 1] == '0')
- sscanf((char *)(n + x + 1), "%llo", &skipr);
+ sscanf((char *)(n + x + 1), "%llo", (long long unsigned int *)skipr);
else
- sscanf((char *)(n + x + 1), "%llu", &skipr);
+ sscanf((char *)(n + x + 1), "%llu", (long long int *)skipr);
#else
if (n[x + 1] == 'x' || n[x + 1] == 'X')
sscanf((char *)(n + x + 2), "%lx", &skipr);