summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-05-10 16:41:25 +0200
committerBram Moolenaar <Bram@vim.org>2011-05-10 16:41:25 +0200
commite60acc180b1886825246d194a2b9ce5d9bb91b2c (patch)
treef5ab918ed519ca9ae21ef5d9ebf86649393b6200 /src
parent536681be5deba615f5ebe3edc3ce85ef01830876 (diff)
downloadvim-git-e60acc180b1886825246d194a2b9ce5d9bb91b2c.tar.gz
updated for version 7.3.187v7.3.187
Problem: The RISC OS port has obvious errors and is not being maintained. Solution: Remove the RISC OS files and code.
Diffstat (limited to 'src')
-rw-r--r--src/ascii.h9
-rw-r--r--src/eval.c3
-rw-r--r--src/ex_cmds.c26
-rw-r--r--src/ex_cmds2.c12
-rw-r--r--src/ex_docmd.c14
-rw-r--r--src/fileio.c64
-rw-r--r--src/globals.h2
-rw-r--r--src/gui.c23
-rw-r--r--src/gui.h17
-rw-r--r--src/main.c5
-rw-r--r--src/memfile.c2
-rw-r--r--src/memline.c42
-rw-r--r--src/misc1.c20
-rw-r--r--src/proto.h6
-rw-r--r--src/quickfix.c13
-rw-r--r--src/search.c13
-rw-r--r--src/structs.h5
-rw-r--r--src/term.c71
-rw-r--r--src/termlib.c2
-rw-r--r--src/version.c5
-rw-r--r--src/vim.h7
21 files changed, 40 insertions, 321 deletions
diff --git a/src/ascii.h b/src/ascii.h
index b920d41af..5256fc32d 100644
--- a/src/ascii.h
+++ b/src/ascii.h
@@ -183,11 +183,6 @@ extern char MetaCharTable[];
# define PATHSEP psepc
# define PATHSEPSTR pseps
#else
-# ifdef RISCOS
-# define PATHSEP '.'
-# define PATHSEPSTR "."
-# else
-# define PATHSEP '/'
-# define PATHSEPSTR "/"
-# endif
+# define PATHSEP '/'
+# define PATHSEPSTR "/"
#endif
diff --git a/src/eval.c b/src/eval.c
index 8a021941e..ee2af100d 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -11818,9 +11818,6 @@ f_has(argvars, rettv)
#ifdef __QNX__
"qnx",
#endif
-#ifdef RISCOS
- "riscos",
-#endif
#ifdef UNIX
"unix",
#endif
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 2acb8edd1..9d2bdc798 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -899,9 +899,6 @@ free_prev_shellcmd()
* Handle the ":!cmd" command. Also for ":r !cmd" and ":w !cmd"
* Bangs in the argument are replaced with the previously entered command.
* Remember the argument.
- *
- * RISCOS: Bangs only replaced when followed by a space, since many
- * pathnames contain one.
*/
void
do_bang(addr_count, eap, forceit, do_in, do_out)
@@ -980,11 +977,7 @@ do_bang(addr_count, eap, forceit, do_in, do_out)
trailarg = NULL;
while (*p)
{
- if (*p == '!'
-#ifdef RISCOS
- && (p[1] == ' ' || p[1] == NUL)
-#endif
- )
+ if (*p == '!')
{
if (p > newcmd && p[-1] == '\\')
STRMOVE(p - 1, p);
@@ -1578,14 +1571,8 @@ make_filter_cmd(cmd, itmp, otmp)
if (p != NULL)
*p = NUL;
}
-# ifdef RISCOS
- STRCAT(buf, " { < "); /* Use RISC OS notation for input. */
- STRCAT(buf, itmp);
- STRCAT(buf, " } ");
-# else
STRCAT(buf, " <"); /* " < " causes problems on Amiga */
STRCAT(buf, itmp);
-# endif
if (*p_shq == NUL)
{
p = vim_strchr(cmd, '|');
@@ -1634,16 +1621,9 @@ append_redir(buf, buflen, opt, fname)
else
vim_snprintf((char *)end, (size_t)(buflen - (end - buf)),
#ifdef FEAT_QUICKFIX
-# ifndef RISCOS
- opt != p_sp ? " %s%s" :
-# endif
" %s %s",
#else
-# ifndef RISCOS
" %s%s", /* " > %s" causes problems on Amiga */
-# else
- " %s %s", /* But is needed for 'shellpipe' and RISC OS */
-# endif
#endif
(char *)opt, (char *)fname);
}
@@ -1844,11 +1824,7 @@ write_viminfo(file, forceit)
#ifdef VMS
(char_u *)"-tmp",
#else
-# ifdef RISCOS
- (char_u *)"/tmp",
-# else
(char_u *)".tmp",
-# endif
#endif
FALSE);
if (tempname == NULL) /* out of memory */
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 78460fbf6..0fe9b32f6 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -500,18 +500,10 @@ dbg_parsearg(arg, gap)
/* Expand the file name in the same way as do_source(). This means
* doing it twice, so that $DIR/file gets expanded when $DIR is
* "~/dir". */
-#ifdef RISCOS
- q = mch_munge_fname(p);
-#else
q = expand_env_save(p);
-#endif
if (q == NULL)
return FAIL;
-#ifdef RISCOS
- p = mch_munge_fname(q);
-#else
p = expand_env_save(q);
-#endif
vim_free(q);
if (p == NULL)
return FAIL;
@@ -2940,11 +2932,7 @@ do_source(fname, check_other, is_vimrc)
proftime_T wait_start;
#endif
-#ifdef RISCOS
- p = mch_munge_fname(fname);
-#else
p = expand_env_save(fname);
-#endif
if (p == NULL)
return retval;
fname_exp = fix_fname(p);
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index d90e96442..49aadd358 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -9702,14 +9702,7 @@ eval_vars(src, srcstart, usedlen, lnump, errormsg, escaped)
valid = 0; /* Must have ":p:h" to be valid */
}
else
-#ifdef RISCOS
- /* Always use the full path for RISC OS if possible. */
- result = curbuf->b_ffname;
- if (result == NULL)
- result = curbuf->b_fname;
-#else
result = curbuf->b_fname;
-#endif
break;
case SPEC_HASH: /* '#' or "#99": alternate file */
@@ -9854,11 +9847,7 @@ eval_vars(src, srcstart, usedlen, lnump, errormsg, escaped)
if (src[*usedlen] == '<') /* remove the file name extension */
{
++*usedlen;
-#ifdef RISCOS
- if ((s = vim_strrchr(result, '/')) != NULL && s >= gettail(result))
-#else
if ((s = vim_strrchr(result, '.')) != NULL && s >= gettail(result))
-#endif
resultlen = (int)(s - result);
}
#ifdef FEAT_MODIFY_FNAME
@@ -10875,8 +10864,7 @@ get_view_file(c)
else if (vim_ispathsep(*p))
{
*s++ = '=';
-#if defined(BACKSLASH_IN_FILENAME) || defined(AMIGA) || defined(RISCOS) \
- || defined(VMS)
+#if defined(BACKSLASH_IN_FILENAME) || defined(AMIGA) || defined(VMS)
if (*p == ':')
*s++ = '-';
else
diff --git a/src/fileio.c b/src/fileio.c
index 11b5045a4..b4fbdfbac 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -504,18 +504,11 @@ readfile(fname, sfname, from, lines_to_skip, lines_to_read, eap, flags)
if (newfile && !read_stdin && !read_buffer)
{
- /* Remember time of file.
- * For RISCOS, also remember the filetype.
- */
+ /* Remember time of file. */
if (mch_stat((char *)fname, &st) >= 0)
{
buf_store_time(curbuf, &st, fname);
curbuf->b_mtime_read = curbuf->b_mtime;
-
-#if defined(RISCOS) && defined(FEAT_OSFILETYPE)
- /* Read the filetype into the buffer local filetype option. */
- mch_read_filetype(fname);
-#endif
#ifdef UNIX
/*
* Use the protection bits of the original file for the swap file.
@@ -557,7 +550,6 @@ readfile(fname, sfname, from, lines_to_skip, lines_to_read, eap, flags)
/*
* for UNIX: check readonly with perm and mch_access()
- * for RISCOS: same as Unix, otherwise file gets re-datestamped!
* for MSDOS and Amiga: check readonly by trying to open the file for writing
*/
file_readonly = FALSE;
@@ -3804,13 +3796,7 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
/* make sure we have a valid backup extension to use */
if (*p_bex == NUL)
- {
-#ifdef RISCOS
- backup_ext = (char_u *)"/bak";
-#else
backup_ext = (char_u *)".bak";
-#endif
- }
else
backup_ext = p_bex;
@@ -4724,11 +4710,6 @@ restore_backup:
#endif
if (perm >= 0) /* set perm. of new file same as old file */
(void)mch_setperm(wfname, perm);
-#ifdef RISCOS
- if (!append && !filtering)
- /* Set the filetype after writing the file. */
- mch_set_filetype(wfname, buf->b_p_oft);
-#endif
#ifdef HAVE_ACL
/* Probably need to set the ACL before changing the user (can't set the
* ACL on a file the user doesn't own). */
@@ -6262,19 +6243,17 @@ buf_modname(shortname, fname, ext, prepend_dot)
*/
for (ptr = retval + fnamelen; ptr > retval; mb_ptr_back(retval, ptr))
{
-#ifndef RISCOS
if (*ext == '.'
-# ifdef USE_LONG_FNAME
+#ifdef USE_LONG_FNAME
&& (!USE_LONG_FNAME || shortname)
-# else
-# ifndef SHORT_FNAME
+#else
+# ifndef SHORT_FNAME
&& shortname
-# endif
# endif
+#endif
)
if (*ptr == '.') /* replace '.' by '_' */
*ptr = '_';
-#endif
if (vim_ispathsep(*ptr))
{
++ptr;
@@ -6309,23 +6288,14 @@ buf_modname(shortname, fname, ext, prepend_dot)
if (fname == NULL || *fname == NUL
|| vim_ispathsep(fname[STRLEN(fname) - 1]))
{
-#ifdef RISCOS
- if (*ext == '/')
-#else
if (*ext == '.')
-#endif
*s++ = '_';
}
/*
* If the extension starts with '.', truncate the base name at 8
* characters
*/
-#ifdef RISCOS
- /* We normally use '/', but swap files are '_' */
- else if (*ext == '/' || *ext == '_')
-#else
else if (*ext == '.')
-#endif
{
if ((size_t)(s - ptr) > (size_t)8)
{
@@ -6337,13 +6307,8 @@ buf_modname(shortname, fname, ext, prepend_dot)
* If the extension doesn't start with '.', and the file name
* doesn't have an extension yet, append a '.'
*/
-#ifdef RISCOS
- else if ((e = vim_strchr(ptr, '/')) == NULL)
- *s++ = '/';
-#else
else if ((e = vim_strchr(ptr, '.')) == NULL)
*s++ = '.';
-#endif
/*
* If the extension doesn't start with '.', and there already is an
* extension, it may need to be truncated
@@ -6371,23 +6336,14 @@ buf_modname(shortname, fname, ext, prepend_dot)
/*
* Prepend the dot.
*/
- if (prepend_dot && !shortname && *(e = gettail(retval)) !=
-#ifdef RISCOS
- '/'
-#else
- '.'
-#endif
+ if (prepend_dot && !shortname && *(e = gettail(retval)) != '.'
#ifdef USE_LONG_FNAME
&& USE_LONG_FNAME
#endif
)
{
STRMOVE(e + 1, e);
-#ifdef RISCOS
- *e = '/';
-#else
*e = '.';
-#endif
}
#endif
@@ -10205,19 +10161,11 @@ file_pat_to_reg_pat(pat, pat_end, allow_dirs, no_bslash)
++p;
break;
case '.':
-#ifdef RISCOS
- if (allow_dirs != NULL)
- *allow_dirs = TRUE;
- /* FALLTHROUGH */
-#endif
case '~':
reg_pat[i++] = '\\';
reg_pat[i++] = *p;
break;
case '?':
-#ifdef RISCOS
- case '#':
-#endif
reg_pat[i++] = '.';
break;
case '\\':
diff --git a/src/globals.h b/src/globals.h
index 4b5544686..2c7f257a2 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1513,7 +1513,7 @@ EXTERN char_u e_readerrf[] INIT(= N_("E47: Error while reading errorfile"));
EXTERN char_u e_sandbox[] INIT(= N_("E48: Not allowed in sandbox"));
#endif
EXTERN char_u e_secure[] INIT(= N_("E523: Not allowed here"));
-#if defined(AMIGA) || defined(MACOS) || defined(MSWIN) || defined(RISCOS) \
+#if defined(AMIGA) || defined(MACOS) || defined(MSWIN) \
|| defined(UNIX) || defined(VMS) || defined(OS2)
EXTERN char_u e_screenmode[] INIT(= N_("E359: Screen mode setting not supported"));
#endif
diff --git a/src/gui.c b/src/gui.c
index 041d6339c..4255607a7 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -2156,7 +2156,7 @@ gui_outstr_nowrap(s, len, flags, fg, bg, back)
if (highlight_mask & (HL_INVERSE | HL_STANDOUT))
{
-#if defined(AMIGA) || defined(RISCOS)
+#if defined(AMIGA)
gui_mch_set_colors(bg_color, fg_color);
#else
gui_mch_set_fg_color(bg_color);
@@ -2165,7 +2165,7 @@ gui_outstr_nowrap(s, len, flags, fg, bg, back)
}
else
{
-#if defined(AMIGA) || defined(RISCOS)
+#if defined(AMIGA)
gui_mch_set_colors(fg_color, bg_color);
#else
gui_mch_set_fg_color(fg_color);
@@ -2193,7 +2193,7 @@ gui_outstr_nowrap(s, len, flags, fg, bg, back)
if (back != 0 && ((draw_flags & DRAW_BOLD) || (highlight_mask & HL_ITALIC)))
return FAIL;
-#if defined(RISCOS) || defined(FEAT_GUI_GTK)
+#if defined(FEAT_GUI_GTK)
/* If there's no italic font, then fake it.
* For GTK2, we don't need a different font for italic style. */
if (hl_mask_todo & HL_ITALIC)
@@ -2985,26 +2985,11 @@ button_set:
did_clip = TRUE;
}
/* Allow the left button to start the selection */
- else if (button ==
-# ifdef RISCOS
- /* Only start a drag on a drag event. Otherwise
- * we don't get a release event. */
- MOUSE_DRAG
-# else
- MOUSE_LEFT
-# endif
- )
- {
- clip_start_selection(X_2_COL(x), Y_2_ROW(y), repeated_click);
- did_clip = TRUE;
- }
-# ifdef RISCOS
else if (button == MOUSE_LEFT)
{
- clip_clear_selection();
+ clip_start_selection(X_2_COL(x), Y_2_ROW(y), repeated_click);
did_clip = TRUE;
}
-# endif
/* Always allow pasting */
if (button != MOUSE_MIDDLE)
diff --git a/src/gui.h b/src/gui.h
index 149603c89..8db9238af 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -52,10 +52,6 @@
# include <SegLoad.h>*/
#endif
-#ifdef RISCOS
-# include "gui_riscos.h"
-#endif
-
#ifdef FEAT_GUI_PHOTON
# include <Ph.h>
# include <Pt.h>
@@ -151,7 +147,7 @@
#define DRAW_BOLD 0x02 /* draw bold text */
#define DRAW_UNDERL 0x04 /* draw underline text */
#define DRAW_UNDERC 0x08 /* draw undercurl text */
-#if defined(RISCOS) || defined(FEAT_GUI_GTK)
+#if defined(FEAT_GUI_GTK)
# define DRAW_ITALIC 0x10 /* draw italic text */
#endif
#define DRAW_CURSOR 0x20 /* drawing block cursor (win32) */
@@ -219,9 +215,6 @@ typedef struct GuiScrollbar
#ifdef FEAT_GUI_MAC
ControlHandle id; /* A handle to the scrollbar */
#endif
-#ifdef RISCOS
- int id; /* Window handle of scrollbar window */
-#endif
#ifdef FEAT_GUI_PHOTON
PtWidget_t *id;
#endif
@@ -450,14 +443,6 @@ typedef struct Gui
int visibility; /* Is window partially/fully obscured? */
#endif
-#ifdef RISCOS
- int window_handle;
- char_u *window_title;
- int window_title_size;
- int fg_colour; /* in 0xBBGGRR format */
- int bg_colour;
-#endif
-
#ifdef FEAT_GUI_PHOTON
PtWidget_t *vimWindow; /* PtWindow */
PtWidget_t *vimTextArea; /* PtRaw */
diff --git a/src/main.c b/src/main.c
index a296cd448..5d3e69920 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3276,11 +3276,6 @@ usage()
main_msg(_("+reverse\t\tDon't use reverse video (also: +rv)"));
main_msg(_("-xrm <resource>\tSet the specified resource"));
#endif /* FEAT_GUI_X11 */
-#if defined(FEAT_GUI) && defined(RISCOS)
- mch_msg(_("\nArguments recognised by gvim (RISC OS version):\n"));
- main_msg(_("--columns <number>\tInitial width of window in columns"));
- main_msg(_("--rows <number>\tInitial height of window in rows"));
-#endif
#ifdef FEAT_GUI_GTK
mch_msg(_("\nArguments recognised by gvim (GTK+ version):\n"));
main_msg(_("-font <font>\t\tUse <font> for normal text (also: -fn)"));
diff --git a/src/memfile.c b/src/memfile.c
index 8769dbc1e..c87b98113 100644
--- a/src/memfile.c
+++ b/src/memfile.c
@@ -1307,7 +1307,7 @@ mf_do_open(mfp, fname, flags)
* fname cannot be NameBuff, because it must have been allocated.
*/
mf_set_ffname(mfp);
-#if defined(MSDOS) || defined(MSWIN) || defined(RISCOS)
+#if defined(MSDOS) || defined(MSWIN)
/*
* A ":!cd e:xxx" may change the directory without us knowning, use the
* full pathname always. Careful: This frees fname!
diff --git a/src/memline.c b/src/memline.c
index f70e8e32b..547b55089 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -748,7 +748,7 @@ ml_open_file(buf)
continue;
if (mf_open_file(mfp, fname) == OK) /* consumes fname! */
{
-#if defined(MSDOS) || defined(MSWIN) || defined(RISCOS)
+#if defined(MSDOS) || defined(MSWIN)
/*
* set full pathname for swap file now, because a ":!cd dir" may
* change directory without us knowing it.
@@ -933,7 +933,7 @@ set_b0_fname(b0p, buf)
b0p->b0_fname[0] = NUL;
else
{
-#if defined(MSDOS) || defined(MSWIN) || defined(AMIGA) || defined(RISCOS)
+#if defined(MSDOS) || defined(MSWIN) || defined(AMIGA)
/* Systems that cannot translate "~user" back into a path: copy the
* file name unmodified. Do use slashes instead of backslashes for
* portability. */
@@ -1103,7 +1103,7 @@ ml_recover()
fname = (char_u *)"";
len = (int)STRLEN(fname);
if (len >= 4 &&
-#if defined(VMS) || defined(RISCOS)
+#if defined(VMS)
STRNICMP(fname + len - 4, "_s" , 2)
#else
STRNICMP(fname + len - 4, ".s" , 2)
@@ -1773,11 +1773,7 @@ recover_names(fname, list, nr, fname_out)
#ifdef VMS
names[0] = vim_strsave((char_u *)"*_sw%");
#else
-# ifdef RISCOS
- names[0] = vim_strsave((char_u *)"*_sw#");
-# else
names[0] = vim_strsave((char_u *)"*.sw?");
-# endif
#endif
#if defined(UNIX) || defined(WIN3264)
/* For Unix names starting with a dot are special. MS-Windows
@@ -1804,11 +1800,7 @@ recover_names(fname, list, nr, fname_out)
#ifdef VMS
names[0] = concat_fnames(dir_name, (char_u *)"*_sw%", TRUE);
#else
-# ifdef RISCOS
- names[0] = concat_fnames(dir_name, (char_u *)"*_sw#", TRUE);
-# else
names[0] = concat_fnames(dir_name, (char_u *)"*.sw?", TRUE);
-# endif
#endif
#if defined(UNIX) || defined(WIN3264)
/* For Unix names starting with a dot are special. MS-Windows
@@ -1877,7 +1869,7 @@ recover_names(fname, list, nr, fname_out)
char_u *swapname;
swapname = modname(fname_res,
-#if defined(VMS) || defined(RISCOS)
+#if defined(VMS)
(char_u *)"_swp", FALSE
#else
(char_u *)".swp", TRUE
@@ -2176,11 +2168,7 @@ recov_file_names(names, path, prepend_dot)
#ifdef VMS
names[num_names] = concat_fnames(path, (char_u *)"_sw%", FALSE);
#else
-# ifdef RISCOS
- names[num_names] = concat_fnames(path, (char_u *)"_sw#", FALSE);
-# else
names[num_names] = concat_fnames(path, (char_u *)".sw?", FALSE);
-# endif
#endif
if (names[num_names] == NULL)
goto end;
@@ -2207,11 +2195,7 @@ recov_file_names(names, path, prepend_dot)
#ifdef VMS
names[num_names] = modname(path, (char_u *)"_sw%", FALSE);
#else
-# ifdef RISCOS
- names[num_names] = modname(path, (char_u *)"_sw#", FALSE);
-# else
names[num_names] = modname(path, (char_u *)".sw?", FALSE);
-# endif
#endif
if (names[num_names] == NULL)
goto end;
@@ -3205,7 +3189,8 @@ ml_delete_int(buf, lnum, message)
mf_free(mfp, hp); /* free the data block */
buf->b_ml.ml_locked = NULL;
- for (stack_idx = buf->b_ml.ml_stack_top - 1; stack_idx >= 0; --stack_idx)
+ for (stack_idx = buf->b_ml.ml_stack_top - 1; stack_idx >= 0;
+ --stack_idx)
{
buf->b_ml.ml_stack_top = 0; /* stack is invalid when failing */
ip = &(buf->b_ml.ml_stack[stack_idx]);
@@ -3956,14 +3941,9 @@ makeswapname(fname, ffname, buf, dir_name)
#else
(buf->b_p_sn || buf->b_shortname),
#endif
-#ifdef RISCOS
- /* Avoid problems if fname has special chars, eg <Wimp$Scrap> */
- ffname,
-#else
fname_res,
-#endif
(char_u *)
-#if defined(VMS) || defined(RISCOS)
+#if defined(VMS)
"_swp",
#else
".swp",
@@ -4427,14 +4407,6 @@ findswapname(buf, dirp, old_fname)
}
close(fd);
}
-#ifdef RISCOS
- else
- /* Can't open swap file, though it does exist.
- * Assume that the user is editing two files with
- * the same name in different directories. No error.
- */
- differ = TRUE;
-#endif
/* give the ATTENTION message when there is an old swap file
* for the current file, and the buffer was not recovered. */
diff --git a/src/misc1.c b/src/misc1.c
index d42606f8d..f1ab84879 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -4589,25 +4589,21 @@ get_past_head(path)
vim_ispathsep(c)
int c;
{
-#ifdef RISCOS
- return (c == '.' || c == ':');
-#else
-# ifdef UNIX
+#ifdef UNIX
return (c == '/'); /* UNIX has ':' inside file names */
-# else
-# ifdef BACKSLASH_IN_FILENAME
+#else
+# ifdef BACKSLASH_IN_FILENAME
return (c == ':' || c == '/' || c == '\\');
-# else
-# ifdef VMS
+# else
+# ifdef VMS
/* server"user passwd"::device:[full.path.name]fname.extension;version" */
return (c == ':' || c == '[' || c == ']' || c == '/'
|| c == '<' || c == '>' || c == '"' );
-# else /* Amiga */
+# else
return (c == ':' || c == '/');
-# endif /* VMS */
-# endif
+# endif /* VMS */
# endif
-#endif /* RISC OS */
+#endif
}
#if defined(FEAT_SEARCHPATH) || defined(PROTO)
diff --git a/src/proto.h b/src/proto.h
index 40fb2a99a..7e6b67a84 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -62,9 +62,6 @@ extern int _stricoll __ARGS((char *a, char *b));
# ifdef __BEOS__
# include "os_beos.pro"
# endif
-# ifdef RISCOS
-# include "os_riscos.pro"
-# endif
# ifdef __QNX__
# include "os_qnx.pro"
# endif
@@ -245,9 +242,6 @@ extern char *vim_SelFile __ARGS((Widget toplevel, char *prompt, char *init_path,
# ifdef FEAT_GUI_X11
# include "gui_x11.pro"
# endif
-# ifdef RISCOS
-# include "gui_riscos.pro"
-# endif
# ifdef FEAT_GUI_PHOTON
# include "gui_photon.pro"
# endif
diff --git a/src/quickfix.c b/src/quickfix.c
index 1876093f8..9308d4b1e 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -1182,21 +1182,17 @@ qf_get_fnum(directory, fname)
if (fname == NULL || *fname == NUL) /* no file name */
return 0;
{
-#ifdef RISCOS
- /* Name is reported as `main.c', but file is `c.main' */
- return ro_buflist_add(fname);
-#else
char_u *ptr;
int fnum;
-# ifdef VMS
+#ifdef VMS
vms_remove_version(fname);
-# endif
-# ifdef BACKSLASH_IN_FILENAME
+#endif
+#ifdef BACKSLASH_IN_FILENAME
if (directory != NULL)
slash_adjust(directory);
slash_adjust(fname);
-# endif
+#endif
if (directory != NULL && !vim_isAbsName(fname)
&& (ptr = concat_fnames(directory, fname, TRUE)) != NULL)
{
@@ -1221,7 +1217,6 @@ qf_get_fnum(directory, fname)
return fnum;
}
return buflist_add(fname, 0);
-#endif
}
}
diff --git a/src/search.c b/src/search.c
index fc820b908..acd4c8da4 100644
--- a/src/search.c
+++ b/src/search.c
@@ -4581,9 +4581,6 @@ find_pattern_in_path(ptr, dir, len, whole, skip_comments,
char_u *already = NULL;
char_u *startp = NULL;
char_u *inc_opt = NULL;
-#ifdef RISCOS
- int previous_munging = __riscosify_control;
-#endif
#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
win_T *curwin_save = NULL;
#endif
@@ -4596,11 +4593,6 @@ find_pattern_in_path(ptr, dir, len, whole, skip_comments,
if (file_line == NULL)
return;
-#ifdef RISCOS
- /* UnixLib knows best how to munge c file names - turn munging back on. */
- int __riscosify_control = 0;
-#endif
-
if (type != CHECK_PATH && type != FIND_DEFINE
#ifdef FEAT_INS_EXPAND
/* when CONT_SOL is set compare "ptr" with the beginning of the line
@@ -5228,11 +5220,6 @@ fpip_end:
vim_free(regmatch.regprog);
vim_free(incl_regmatch.regprog);
vim_free(def_regmatch.regprog);
-
-#ifdef RISCOS
- /* Restore previous file munging state. */
- __riscosify_control = previous_munging;
-#endif
}
static void
diff --git a/src/structs.h b/src/structs.h
index b514c1e85..2954035e3 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -2366,11 +2366,6 @@ struct VimMenu
MenuHandle menu_handle;
MenuHandle submenu_handle;
#endif
-#ifdef RISCOS
- int *id; /* Not used, but gui.c needs it */
- int greyed_out; /* Flag */
- int hidden;
-#endif
#ifdef FEAT_GUI_PHOTON
PtWidget_t *id;
PtWidget_t *submenu_id;
diff --git a/src/term.c b/src/term.c
index f41c477c4..77387e099 100644
--- a/src/term.c
+++ b/src/term.c
@@ -52,7 +52,7 @@
/*
* Here are the builtin termcap entries. They are not stored as complete
- * Tcarr structures, as such a structure is too big.
+ * structures with all entries, as such a structure is too big.
*
* The entries are compact, therefore they normally are included even when
* HAVE_TGETENT is defined. When HAVE_TGETENT is defined, the builtin entries
@@ -199,71 +199,6 @@ static struct builtin_term builtin_termcaps[] =
#endif
#ifndef NO_BUILTIN_TCAPS
-# if defined(RISCOS) || defined(ALL_BUILTIN_TCAPS)
-/*
- * Default for the Acorn.
- */
- {(int)KS_NAME, "riscos"},
- {(int)KS_CL, "\014"}, /* Cls and Home Cursor */
- {(int)KS_CM, "\001%d\001%d\002"}, /* Position cursor */
-
- {(int)KS_CCO, "16"}, /* Allow 16 colors */
-
- {(int)KS_CAF, "\001%d\021"}, /* Set foreground colour */
- {(int)KS_CAB, "\001%d\022"}, /* Set background colour */
-
-
- {(int)KS_ME, "\004"}, /* Normal mode */
- {(int)KS_MR, "\005"}, /* Reverse */
-
- {(int)KS_VI, "\016"}, /* Cursor invisible */
- {(int)KS_VE, "\017"}, /* Cursor visible */
- {(int)KS_VS, "\020"}, /* Cursor very visible */
-
- {(int)KS_CS, "\001%d\001%d\003"}, /* Set scroll region */
- {(int)KS_SR, "\023"}, /* Scroll text down */
- {K_UP, "\217"},
- {K_DOWN, "\216"},
- {K_LEFT, "\214"},
- {K_RIGHT, "\215"},
- {K_S_UP, "\237"},
- {K_S_DOWN, "\236"},
- {K_S_LEFT, "\234"},
- {K_S_RIGHT, "\235"},
-
- {K_F1, "\201"},
- {K_F2, "\202"},
- {K_F3, "\203"},
- {K_F4, "\204"},
- {K_F5, "\205"},
- {K_F6, "\206"},
- {K_F7, "\207"},
- {K_F8, "\210"},
- {K_F9, "\211"},
- {K_F10, "\312"},
- {K_F11, "\313"},
- {K_F12, "\314"},
- {K_S_F1, "\221"},
- {K_S_F2, "\222"},
- {K_S_F3, "\223"},
- {K_S_F4, "\224"},
- {K_S_F5, "\225"},
- {K_S_F6, "\226"},
- {K_S_F7, "\227"},
- {K_S_F8, "\230"},
- {K_S_F9, "\231"},
- {K_S_F10, "\332"},
- {K_S_F11, "\333"},
- {K_S_F12, "\334"},
- {K_BS, "\010"},
- {K_INS, "\315"},
- {K_DEL, "\177"},
- {K_HOME, "\036"},
- {K_END, "\213"},
- {K_PAGEUP, "\237"},
- {K_PAGEDOWN, "\236"},
-# endif /* Acorn terminal */
-
# if defined(AMIGA) || defined(ALL_BUILTIN_TCAPS)
/*
@@ -1399,10 +1334,6 @@ static struct builtin_term builtin_termcaps[] =
/*
* DEFAULT_TERM is used, when no terminal is specified with -T option or $TERM.
*/
-#ifdef RISCOS
-# define DEFAULT_TERM (char_u *)"riscos"
-#endif
-
#ifdef AMIGA
# define DEFAULT_TERM (char_u *)"amiga"
#endif
diff --git a/src/termlib.c b/src/termlib.c
index 2a9a26757..ed605e906 100644
--- a/src/termlib.c
+++ b/src/termlib.c
@@ -13,7 +13,7 @@
#include "vim.h"
#include "termlib.pro"
-#if !defined(AMIGA) && !defined(VMS) && !defined(MACOS) && !defined(RISCOS)
+#if !defined(AMIGA) && !defined(VMS) && !defined(MACOS)
# include <sgtty.h>
#endif
diff --git a/src/version.c b/src/version.c
index 1dfb092a6..1d14392ca 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 187,
+/**/
186,
/**/
185,
@@ -1205,9 +1207,6 @@ list_version()
# endif
#endif
-#ifdef RISCOS
- MSG_PUTS(_("\nRISC OS version"));
-#endif
#ifdef VMS
MSG_PUTS(_("\nOpenVMS version"));
# ifdef HAVE_PATHDEF
diff --git a/src/vim.h b/src/vim.h
index 229e6dc41..490206a7e 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -184,9 +184,6 @@
# define SIZEOF_INT 2
# endif
#endif
-#ifdef RISCOS
-# define SIZEOF_INT 4
-#endif
#include "feature.h" /* #defines for optionals and features */
@@ -340,10 +337,6 @@
# include "os_mac.h"
#endif
-#ifdef RISCOS
-# include "os_riscos.h"
-#endif
-
#ifdef __QNX__
# include "os_qnx.h"
#endif