forked from aniani/vim
updated for version 7.3.191
Problem: Still some RISC OS stuff to remove. Solution: Remove files and lines. (Hong Xu) Remove the 'osfiletype' option code.
This commit is contained in:
parent
20f90cf99a
commit
b07269a548
1
Filelist
1
Filelist
@ -427,7 +427,6 @@ SRC_EXTRA = \
|
|||||||
$(SRC_VMS) \
|
$(SRC_VMS) \
|
||||||
README_os390.txt \
|
README_os390.txt \
|
||||||
src/Make_mint.mak \
|
src/Make_mint.mak \
|
||||||
src/Make_ro.mak \
|
|
||||||
src/if_sniff.c \
|
src/if_sniff.c \
|
||||||
src/infplist.xml \
|
src/infplist.xml \
|
||||||
src/link.390 \
|
src/link.390 \
|
||||||
|
@ -13,9 +13,6 @@ src/if_sniff.* Interface to SNiFF. If you don't know what SNiFF is,
|
|||||||
|
|
||||||
src/os_amiga.* Files for the Amiga port.
|
src/os_amiga.* Files for the Amiga port.
|
||||||
|
|
||||||
src/gui_riscos.*
|
|
||||||
src/os_riscos.* Files for the RISC OS port.
|
|
||||||
|
|
||||||
src/gui_beos.*
|
src/gui_beos.*
|
||||||
src/os_beos.* Files for the BeOS port.
|
src/os_beos.* Files for the BeOS port.
|
||||||
|
|
||||||
|
27
src/INSTALL
27
src/INSTALL
@ -6,9 +6,8 @@ executable version of Vim, you don't need this.
|
|||||||
Contents:
|
Contents:
|
||||||
1. Generic
|
1. Generic
|
||||||
2. Unix
|
2. Unix
|
||||||
3. RISC OS
|
3. OS/2 (with EMX 0.9b)
|
||||||
4. OS/2 (with EMX 0.9b)
|
4. Atari MiNT
|
||||||
5. Atari MiNT
|
|
||||||
|
|
||||||
See INSTALLami.txt for Amiga
|
See INSTALLami.txt for Amiga
|
||||||
See INSTALLmac.txt for Macintosh
|
See INSTALLmac.txt for Macintosh
|
||||||
@ -174,25 +173,7 @@ And to not search for locally installed headers and libraries at all, use:
|
|||||||
./configure --without-local-dir
|
./configure --without-local-dir
|
||||||
|
|
||||||
|
|
||||||
3. RISC OS
|
3. OS/2
|
||||||
=============
|
|
||||||
|
|
||||||
Much file renaming is needed before you can compile anything.
|
|
||||||
You'll need UnixLib to link against, GCC and GNU make.
|
|
||||||
|
|
||||||
I suggest you get the RISC OS binary distribution, which includes the
|
|
||||||
Templates file and the loader.
|
|
||||||
|
|
||||||
Try here: http://www.ecs.soton.ac.uk/~tal197
|
|
||||||
|
|
||||||
Do
|
|
||||||
:help riscos
|
|
||||||
|
|
||||||
within the editor for more information, or read the
|
|
||||||
../runtime/doc/os_risc.txt help file.
|
|
||||||
|
|
||||||
|
|
||||||
4. OS/2
|
|
||||||
=======
|
=======
|
||||||
|
|
||||||
Summary:
|
Summary:
|
||||||
@ -237,7 +218,7 @@ Prerequisites:
|
|||||||
Check ../runtime/doc/os_os2.txt for additional info on running Vim.
|
Check ../runtime/doc/os_os2.txt for additional info on running Vim.
|
||||||
|
|
||||||
|
|
||||||
5. Atari MiNT
|
4. Atari MiNT
|
||||||
=============
|
=============
|
||||||
|
|
||||||
[NOTE: this is quite old, it might not work anymore]
|
[NOTE: this is quite old, it might not work anymore]
|
||||||
|
135
src/Make_ro.mak
135
src/Make_ro.mak
@ -1,135 +0,0 @@
|
|||||||
#
|
|
||||||
# Makefile for Vim on RISC OS - Andy Wingate
|
|
||||||
#
|
|
||||||
|
|
||||||
GCC = gcc -mthrowback
|
|
||||||
CFLAGS = -DRISCOS -DFEAT_GUI
|
|
||||||
CC = $(GCC) $(CFLAGS) -O2
|
|
||||||
# -DUP_BC_PC_EXTERN for term.c needed as BC defined in termlib.c and term.c
|
|
||||||
|
|
||||||
TERMFLAG = -DUP_BC_PC_EXTERN
|
|
||||||
|
|
||||||
ASMFLAGS = -throwback -objasm -gcc
|
|
||||||
|
|
||||||
OBJS = o.buffer o.charset o.diff o.digraph o.edit o.eval o.ex_cmds o.ex_cmds2 \
|
|
||||||
o.ex_docmd o.ex_eval o.ex_getln o.fileio o.fold o.getchar \
|
|
||||||
o.hardcopy o.hashtab o.main o.mark o.mbyte \
|
|
||||||
o.memfile o.memline o.menu o.message o.misc1 o.misc2 o.move \
|
|
||||||
o.normal o.ops o.option o.popupmnu o.quickfix o.regexp o.screen \
|
|
||||||
o.search \
|
|
||||||
o.spell o.syntax o.tag o.term o.termlib o.ui o.undo o.version \
|
|
||||||
o.window o.os_riscos o.swis o.gui o.gui_riscos
|
|
||||||
|
|
||||||
Vim: $(OBJS)
|
|
||||||
$(GCC) -o Vim $(OBJS)
|
|
||||||
|
|
||||||
install: Vim
|
|
||||||
squeeze -v Vim @.!Vim.Vim
|
|
||||||
|
|
||||||
clean:
|
|
||||||
create o.!fake! 0
|
|
||||||
wipe o.* ~cf
|
|
||||||
remove Vim
|
|
||||||
|
|
||||||
o.swis: s.swis
|
|
||||||
as $(ASMFLAGS) -o o.swis s.swis
|
|
||||||
|
|
||||||
# Rules for object files
|
|
||||||
|
|
||||||
o.%: c.%
|
|
||||||
$(CC) -c $< -o $@
|
|
||||||
|
|
||||||
o.buffer: c.buffer
|
|
||||||
|
|
||||||
o.charset: c.charset
|
|
||||||
|
|
||||||
o.digraph: c.digraph
|
|
||||||
|
|
||||||
o.diff: c.diff
|
|
||||||
|
|
||||||
o.edit: c.edit
|
|
||||||
|
|
||||||
o.eval: c.eval
|
|
||||||
|
|
||||||
o.ex_cmds: c.ex_cmds
|
|
||||||
|
|
||||||
o.ex_cmds2: c.ex_cmds2
|
|
||||||
|
|
||||||
o.ex_docmd: c.ex_docmd
|
|
||||||
|
|
||||||
o.ex_eval: c.ex_eval
|
|
||||||
|
|
||||||
o.ex_getln: c.ex_getln
|
|
||||||
|
|
||||||
o.fileio: c.fileio
|
|
||||||
|
|
||||||
o.fold: c.fold
|
|
||||||
|
|
||||||
o.getchar: c.getchar
|
|
||||||
|
|
||||||
o.hardcopy: c.hardcopy
|
|
||||||
|
|
||||||
o.hashtab: c.hashtab
|
|
||||||
|
|
||||||
o.gui: c.gui
|
|
||||||
|
|
||||||
o.gui_riscos: c.gui_riscos
|
|
||||||
|
|
||||||
o.main: c.main
|
|
||||||
|
|
||||||
o.mark: c.mark
|
|
||||||
|
|
||||||
o.mbyte: c.mbyte
|
|
||||||
|
|
||||||
o.memfile: c.memfile
|
|
||||||
|
|
||||||
o.memline: c.memline
|
|
||||||
|
|
||||||
o.menu: c.menu
|
|
||||||
|
|
||||||
o.message: c.message
|
|
||||||
|
|
||||||
o.misc1: c.misc1
|
|
||||||
|
|
||||||
o.misc2: c.misc2
|
|
||||||
|
|
||||||
o.move: c.move
|
|
||||||
|
|
||||||
o.normal: c.normal
|
|
||||||
|
|
||||||
o.ops: c.ops
|
|
||||||
|
|
||||||
o.option: c.option
|
|
||||||
|
|
||||||
o.os_riscos: c.os_riscos
|
|
||||||
|
|
||||||
o.pty: c.pty
|
|
||||||
|
|
||||||
o.popupmnu: c.popupmnu
|
|
||||||
|
|
||||||
o.quickfix: c.quickfix
|
|
||||||
|
|
||||||
o.regexp: c.regexp
|
|
||||||
|
|
||||||
o.screen: c.screen
|
|
||||||
|
|
||||||
o.search: c.search
|
|
||||||
|
|
||||||
o.spell: c.spell
|
|
||||||
|
|
||||||
o.syntax: c.syntax
|
|
||||||
|
|
||||||
o.tag: c.tag
|
|
||||||
|
|
||||||
o.term: c.term
|
|
||||||
$(CC) $(TERMFLAG) -c c.term -o o.term
|
|
||||||
|
|
||||||
o.termlib: c.termlib
|
|
||||||
|
|
||||||
o.ui: c.ui
|
|
||||||
|
|
||||||
o.undo: c.undo
|
|
||||||
|
|
||||||
o.version: c.version
|
|
||||||
|
|
||||||
o.window: c.window
|
|
10
src/Makefile
10
src/Makefile
@ -29,7 +29,7 @@
|
|||||||
# - Uncomment the line "CONF_OPT_X = --without-x" if you have X11 but
|
# - Uncomment the line "CONF_OPT_X = --without-x" if you have X11 but
|
||||||
# want to disable using X11 libraries. This speeds up starting Vim,
|
# want to disable using X11 libraries. This speeds up starting Vim,
|
||||||
# but the window title will not be set and the X11 selection can not
|
# but the window title will not be set and the X11 selection can not
|
||||||
# used.
|
# be used.
|
||||||
# - Uncomment the line "CONF_OPT_XSMP = --disable-xsmp" if you have the
|
# - Uncomment the line "CONF_OPT_XSMP = --disable-xsmp" if you have the
|
||||||
# X11 Session Management Protocol (XSMP) library (libSM) but do not
|
# X11 Session Management Protocol (XSMP) library (libSM) but do not
|
||||||
# want to use it.
|
# want to use it.
|
||||||
@ -730,12 +730,6 @@ LINT_OPTIONS = -beprxzF
|
|||||||
### USL for Unix Systems Laboratories (SYSV 4.2)
|
### USL for Unix Systems Laboratories (SYSV 4.2)
|
||||||
#EXTRA_DEFS = -DUSL
|
#EXTRA_DEFS = -DUSL
|
||||||
|
|
||||||
### RISCos on MIPS without X11
|
|
||||||
#EXTRA_DEFS = -DMIPS
|
|
||||||
|
|
||||||
### RISCos on MIPS with X11
|
|
||||||
#EXTRA_LIBS = -lsun
|
|
||||||
|
|
||||||
### (6) A/UX 3.1.1 with gcc (Jim Jagielski)
|
### (6) A/UX 3.1.1 with gcc (Jim Jagielski)
|
||||||
#CC= gcc -D_POSIX_SOURCE
|
#CC= gcc -D_POSIX_SOURCE
|
||||||
#CFLAGS= -O2
|
#CFLAGS= -O2
|
||||||
@ -1633,7 +1627,7 @@ PRO_AUTO = \
|
|||||||
RSRC_DIR = os_mac_rsrc
|
RSRC_DIR = os_mac_rsrc
|
||||||
|
|
||||||
PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \
|
PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \
|
||||||
os_mswin.pro os_beos.pro os_vms.pro os_riscos.pro $(PERL_PRO)
|
os_mswin.pro os_beos.pro os_vms.pro $(PERL_PRO)
|
||||||
|
|
||||||
# Default target is making the executable and tools
|
# Default target is making the executable and tools
|
||||||
all: $(VIMTARGET) $(TOOLS) languages $(GUI_BUNDLE)
|
all: $(VIMTARGET) $(TOOLS) languages $(GUI_BUNDLE)
|
||||||
|
@ -1808,9 +1808,6 @@ free_buf_options(buf, free_p_ff)
|
|||||||
#ifdef FEAT_AUTOCMD
|
#ifdef FEAT_AUTOCMD
|
||||||
clear_string_option(&buf->b_p_ft);
|
clear_string_option(&buf->b_p_ft);
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_OSFILETYPE
|
|
||||||
clear_string_option(&buf->b_p_oft);
|
|
||||||
#endif
|
|
||||||
#ifdef FEAT_CINDENT
|
#ifdef FEAT_CINDENT
|
||||||
clear_string_option(&buf->b_p_cink);
|
clear_string_option(&buf->b_p_cink);
|
||||||
clear_string_option(&buf->b_p_cino);
|
clear_string_option(&buf->b_p_cino);
|
||||||
|
@ -12076,9 +12076,6 @@ f_has(argvars, rettv)
|
|||||||
#ifdef FEAT_OLE
|
#ifdef FEAT_OLE
|
||||||
"ole",
|
"ole",
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_OSFILETYPE
|
|
||||||
"osfiletype",
|
|
||||||
#endif
|
|
||||||
#ifdef FEAT_PATH_EXTRA
|
#ifdef FEAT_PATH_EXTRA
|
||||||
"path_extra",
|
"path_extra",
|
||||||
#endif
|
#endif
|
||||||
|
@ -505,15 +505,6 @@
|
|||||||
# define FEAT_WILDMENU
|
# define FEAT_WILDMENU
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* +osfiletype filetype checking in autocommand patterns.
|
|
||||||
* Only on systems that support filetypes (RISC OS).
|
|
||||||
*/
|
|
||||||
#if 0
|
|
||||||
# define FEAT_OSFILETYPE
|
|
||||||
# define DFLT_OFT "Text"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* +viminfo reading/writing the viminfo file. Takes about 8Kbyte
|
* +viminfo reading/writing the viminfo file. Takes about 8Kbyte
|
||||||
* of code.
|
* of code.
|
||||||
|
23
src/option.c
23
src/option.c
@ -140,9 +140,6 @@
|
|||||||
#define PV_MOD OPT_BUF(BV_MOD)
|
#define PV_MOD OPT_BUF(BV_MOD)
|
||||||
#define PV_MPS OPT_BUF(BV_MPS)
|
#define PV_MPS OPT_BUF(BV_MPS)
|
||||||
#define PV_NF OPT_BUF(BV_NF)
|
#define PV_NF OPT_BUF(BV_NF)
|
||||||
#ifdef FEAT_OSFILETYPE
|
|
||||||
# define PV_OFT OPT_BUF(BV_OFT)
|
|
||||||
#endif
|
|
||||||
#ifdef FEAT_COMPL_FUNC
|
#ifdef FEAT_COMPL_FUNC
|
||||||
# define PV_OFU OPT_BUF(BV_OFU)
|
# define PV_OFU OPT_BUF(BV_OFU)
|
||||||
#endif
|
#endif
|
||||||
@ -337,9 +334,6 @@ static int p_ma;
|
|||||||
static int p_mod;
|
static int p_mod;
|
||||||
static char_u *p_mps;
|
static char_u *p_mps;
|
||||||
static char_u *p_nf;
|
static char_u *p_nf;
|
||||||
#ifdef FEAT_OSFILETYPE
|
|
||||||
static char_u *p_oft;
|
|
||||||
#endif
|
|
||||||
static int p_pi;
|
static int p_pi;
|
||||||
#ifdef FEAT_TEXTOBJ
|
#ifdef FEAT_TEXTOBJ
|
||||||
static char_u *p_qe;
|
static char_u *p_qe;
|
||||||
@ -1901,14 +1895,8 @@ static struct vimoption
|
|||||||
(char_u *)NULL, PV_NONE,
|
(char_u *)NULL, PV_NONE,
|
||||||
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
|
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
|
||||||
{"osfiletype", "oft", P_STRING|P_ALLOCED|P_VI_DEF,
|
{"osfiletype", "oft", P_STRING|P_ALLOCED|P_VI_DEF,
|
||||||
#ifdef FEAT_OSFILETYPE
|
|
||||||
(char_u *)&p_oft, PV_OFT,
|
|
||||||
{(char_u *)DFLT_OFT, (char_u *)0L}
|
|
||||||
#else
|
|
||||||
(char_u *)NULL, PV_NONE,
|
(char_u *)NULL, PV_NONE,
|
||||||
{(char_u *)0L, (char_u *)0L}
|
{(char_u *)0L, (char_u *)0L} SCRIPTID_INIT},
|
||||||
#endif
|
|
||||||
SCRIPTID_INIT},
|
|
||||||
{"paragraphs", "para", P_STRING|P_VI_DEF,
|
{"paragraphs", "para", P_STRING|P_VI_DEF,
|
||||||
(char_u *)&p_para, PV_NONE,
|
(char_u *)&p_para, PV_NONE,
|
||||||
{(char_u *)"IPLPPPQPP TPHPLIPpLpItpplpipbp",
|
{(char_u *)"IPLPPPQPP TPHPLIPpLpItpplpipbp",
|
||||||
@ -5282,9 +5270,6 @@ check_buf_options(buf)
|
|||||||
#ifdef FEAT_AUTOCMD
|
#ifdef FEAT_AUTOCMD
|
||||||
check_string_option(&buf->b_p_ft);
|
check_string_option(&buf->b_p_ft);
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_OSFILETYPE
|
|
||||||
check_string_option(&buf->b_p_oft);
|
|
||||||
#endif
|
|
||||||
#if defined(FEAT_SMARTINDENT) || defined(FEAT_CINDENT)
|
#if defined(FEAT_SMARTINDENT) || defined(FEAT_CINDENT)
|
||||||
check_string_option(&buf->b_p_cinw);
|
check_string_option(&buf->b_p_cinw);
|
||||||
#endif
|
#endif
|
||||||
@ -9665,9 +9650,6 @@ get_varp(p)
|
|||||||
case PV_MA: return (char_u *)&(curbuf->b_p_ma);
|
case PV_MA: return (char_u *)&(curbuf->b_p_ma);
|
||||||
case PV_MOD: return (char_u *)&(curbuf->b_changed);
|
case PV_MOD: return (char_u *)&(curbuf->b_changed);
|
||||||
case PV_NF: return (char_u *)&(curbuf->b_p_nf);
|
case PV_NF: return (char_u *)&(curbuf->b_p_nf);
|
||||||
#ifdef FEAT_OSFILETYPE
|
|
||||||
case PV_OFT: return (char_u *)&(curbuf->b_p_oft);
|
|
||||||
#endif
|
|
||||||
case PV_PI: return (char_u *)&(curbuf->b_p_pi);
|
case PV_PI: return (char_u *)&(curbuf->b_p_pi);
|
||||||
#ifdef FEAT_TEXTOBJ
|
#ifdef FEAT_TEXTOBJ
|
||||||
case PV_QE: return (char_u *)&(curbuf->b_p_qe);
|
case PV_QE: return (char_u *)&(curbuf->b_p_qe);
|
||||||
@ -10017,9 +9999,6 @@ buf_copy_options(buf, flags)
|
|||||||
#ifdef FEAT_AUTOCMD
|
#ifdef FEAT_AUTOCMD
|
||||||
/* Don't copy 'filetype', it must be detected */
|
/* Don't copy 'filetype', it must be detected */
|
||||||
buf->b_p_ft = empty_option;
|
buf->b_p_ft = empty_option;
|
||||||
#endif
|
|
||||||
#ifdef FEAT_OSFILETYPE
|
|
||||||
buf->b_p_oft = vim_strsave(p_oft);
|
|
||||||
#endif
|
#endif
|
||||||
buf->b_p_pi = p_pi;
|
buf->b_p_pi = p_pi;
|
||||||
#if defined(FEAT_SMARTINDENT) || defined(FEAT_CINDENT)
|
#if defined(FEAT_SMARTINDENT) || defined(FEAT_CINDENT)
|
||||||
|
@ -984,9 +984,6 @@ enum
|
|||||||
, BV_MOD
|
, BV_MOD
|
||||||
, BV_MPS
|
, BV_MPS
|
||||||
, BV_NF
|
, BV_NF
|
||||||
#ifdef FEAT_OSFILETYPE
|
|
||||||
, BV_OFT
|
|
||||||
#endif
|
|
||||||
#ifdef FEAT_COMPL_FUNC
|
#ifdef FEAT_COMPL_FUNC
|
||||||
, BV_OFU
|
, BV_OFU
|
||||||
#endif
|
#endif
|
||||||
|
@ -123,8 +123,7 @@
|
|||||||
static void initmaster __ARGS((int));
|
static void initmaster __ARGS((int));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Open all ptys with O_NOCTTY, just to be on the safe side
|
* Open all ptys with O_NOCTTY, just to be on the safe side.
|
||||||
* (RISCos mips breaks otherwise)
|
|
||||||
*/
|
*/
|
||||||
#ifndef O_NOCTTY
|
#ifndef O_NOCTTY
|
||||||
# define O_NOCTTY 0
|
# define O_NOCTTY 0
|
||||||
|
@ -1530,9 +1530,6 @@ struct file_buffer
|
|||||||
int b_p_ml_nobin; /* b_p_ml saved for binary mode */
|
int b_p_ml_nobin; /* b_p_ml saved for binary mode */
|
||||||
int b_p_ma; /* 'modifiable' */
|
int b_p_ma; /* 'modifiable' */
|
||||||
char_u *b_p_nf; /* 'nrformats' */
|
char_u *b_p_nf; /* 'nrformats' */
|
||||||
#ifdef FEAT_OSFILETYPE
|
|
||||||
char_u *b_p_oft; /* 'osfiletype' */
|
|
||||||
#endif
|
|
||||||
int b_p_pi; /* 'preserveindent' */
|
int b_p_pi; /* 'preserveindent' */
|
||||||
#ifdef FEAT_TEXTOBJ
|
#ifdef FEAT_TEXTOBJ
|
||||||
char_u *b_p_qe; /* 'quoteescape' */
|
char_u *b_p_qe; /* 'quoteescape' */
|
||||||
|
@ -426,11 +426,6 @@ static char *(features[]) =
|
|||||||
"-ole",
|
"-ole",
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_OSFILETYPE
|
|
||||||
"+osfiletype",
|
|
||||||
#else
|
|
||||||
"-osfiletype",
|
|
||||||
#endif
|
|
||||||
#ifdef FEAT_PATH_EXTRA
|
#ifdef FEAT_PATH_EXTRA
|
||||||
"+path_extra",
|
"+path_extra",
|
||||||
#else
|
#else
|
||||||
@ -714,6 +709,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
191,
|
||||||
/**/
|
/**/
|
||||||
190,
|
190,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user