Age | Commit message (Collapse) | Author |
|
"Looks fine." deraadt@
|
|
ereply removal.
ok jasper@ florian@
|
|
When the startup file contains (start-kbd-macro) mg crashes when
executing "start-kbd-macro" two times in the running mg.
The problem is that execline() is cleaning up behind our backs.
Finish the cleanup and make sure mg doesn't think we are in the
middle of a macro definition.
Problem found, tracked down and diff by gsoares@
Tweaked & OK by me.
Committing on request of gsoares@ who currently doesn't have good net
to commit.
|
|
XCHAR and XSHORT have always been defined to be int. Just make them int.
We don't need to care about making better code for whatever non-VAX
machines were being used in 1986.
ok florian@
|
|
NO_DPROMPT has been around since the import of mg2a and it has never been
considered a "(Common) compile-time option" in the Makefile.
Assume everyone has been running mg this way since at least 2000 if not
already in the 90s.
Same with GOSREC. Has always been there but it looks like no one noticed
it (and no one was running with it). Indeed, the mg tutorial appears to be
oblivious to GOSREC being an option.
With this commit there are no more #ifndef blocks in mg. Only a couple of
#ifdef blocks remain.
ok lum@
|
|
No one is defining their own METABIT so remove the #ifndef around it.
ok florian@
|
|
supported a lot of systems and nothing was standardized. But now it only
4 defines. Move those defines into def.h since ttydef.h is only sourced in
def.h
While here, MAKEBACKUP has the same #ifdef dance that LINENOMODE had. Set
it directly to TRUE and remove the #ifdef block.
ok florian@
|
|
This fixes a segfault reported by and tracked down by Kaspars
Bankovskis kaspars at bankovskis dot net, thanks!
OK bcallah@
|
|
unifdef -UMOVE_STANDOUT -- we had it under an '#ifdef undef' in ttydef.h
also remove those lines from ttydef.h
Set linenos = TRUE instead of an odd #ifdef dance that isn't used anywhere
else.
ok florian@
|
|
termios.h so we don't need the code for when it is not defined.
ok reyk@
|
|
-UDIRED_XMAPS and -UFUND_XMAPS: you can't build mg the other way.
-DTIOCGWINSZ: you have this if you have term.h
Remove a #define TERMCAP which isn't being used.
Remove defines for NDIRED_XMAPS, NFUND_XMAPS, and IMAPEXT. They are all
defined to be 0 and are only ever used in addition. We don't need to add 0.
Simply lines that were using those defines.
ok florian@
|
|
This does the following:
Moves all POSIX headers from sysdef.h into the individual .c files so that
each file now only includes what it needs. All headers are properly sorted.
Moves the remainder of sysdef.h to other files (mostly def.h) and deletes
sysdef.h now that it's no longer contains anything.
Tweak a comment that references sysdef.h so that it no longer does that.
ok florian@
|
|
the original spirit of those sentences.
ok jasper@
|
|
enforce that and remove the options.
Mostly mechanical diff from unifdef with bonus removal of comments that no
longer have any relevance.
ok florian@
|
|
|
|
function of the same name in term.h. This is the first step towards
cleaning up mg's includes. No user-visible changes.
ok florian@
|
|
|
|
from Kamil Rytarowski. ok bcallah
|
|
ok deraadt@ jasper@
|
|
STARTUP.
|
|
|
|
recent clang.
ok schwarze@ lum@
|
|
ok tedu@
|
|
|
|
and pull in <limits.h> for *_MAX constants.
inspired on a diff from Kamil Rytarowski (n54 (at) gmx.com)
ok bcallah@
|
|
comments to reflect that
based on a diff from Kamil Rytarowski (n54 (at) gmx.com)
|
|
diff from Kamil Rytarowski (n54 (at) gmx.com)
|
|
macro does the cast internally like getc() does, so its return should be
put an in int for the same reason.
based on a diff from Kamil Rytarowski (n54 (at) gmx.com)
|
|
from Kamil Rytarowski (n54 (at) gmx.com)
|
|
from Kamil Rytarowski (n54 (at) gmx.com)
|
|
unused MALLOCROUND define.
No binary change.
From Martin Natano (natano AT natano DOT net).
OK lum@
|
|
From: Kaspars Bankovskis
ok lum
|
|
tutorial, next to the C-l (recenter) command description. This also
removes confusion if you read the tutorial on a screen larger than 24
lines. Input jmc@ ok florian@
|
|
oddly if it reaches the end of buffer before completing all
iterations. This diff makes the kill-paragraph and forward-paragraph
commands stop once they can go no further. ok florian@
|
|
in the region, but my time is limited...
|
|
|
|
buffer. ok florian@
|
|
a paragraph, it jumps to the start of the previous paragraph if you
press M-{. Input and fix to my diff from florian@
|
|
Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.
ok deraadt@
|
|
|
|
|
|
Emacs does.
ok florian@
|
|
Merge the new if into a single line, requested by florian@
ok matthew@ florian@
|
|
so that an revisiting the buffer the correct line number is
displayed.
Found by jasper@
OK lum@
|
|
amusingly, theo phrased this with considerably more restraint than i did.
|
|
They gave Theo another chance to be happy.
|
|
|
|
|
|
|
|
|