Mercurial > vim
comparison src/ex_cmds.c @ 2823:8bd38abda314 v7.3.187
updated for version 7.3.187
Problem: The RISC OS port has obvious errors and is not being maintained.
Solution: Remove the RISC OS files and code.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 10 May 2011 16:41:25 +0200 |
parents | 9c8dffc62a41 |
children | 8470ac4679c1 |
comparison
equal
deleted
inserted
replaced
2822:7b62cd406330 | 2823:8bd38abda314 |
---|---|
897 | 897 |
898 /* | 898 /* |
899 * Handle the ":!cmd" command. Also for ":r !cmd" and ":w !cmd" | 899 * Handle the ":!cmd" command. Also for ":r !cmd" and ":w !cmd" |
900 * Bangs in the argument are replaced with the previously entered command. | 900 * Bangs in the argument are replaced with the previously entered command. |
901 * Remember the argument. | 901 * Remember the argument. |
902 * | |
903 * RISCOS: Bangs only replaced when followed by a space, since many | |
904 * pathnames contain one. | |
905 */ | 902 */ |
906 void | 903 void |
907 do_bang(addr_count, eap, forceit, do_in, do_out) | 904 do_bang(addr_count, eap, forceit, do_in, do_out) |
908 int addr_count; | 905 int addr_count; |
909 exarg_T *eap; | 906 exarg_T *eap; |
978 * previous command. "\!" is replaced by "!" (this is vi compatible). | 975 * previous command. "\!" is replaced by "!" (this is vi compatible). |
979 */ | 976 */ |
980 trailarg = NULL; | 977 trailarg = NULL; |
981 while (*p) | 978 while (*p) |
982 { | 979 { |
983 if (*p == '!' | 980 if (*p == '!') |
984 #ifdef RISCOS | |
985 && (p[1] == ' ' || p[1] == NUL) | |
986 #endif | |
987 ) | |
988 { | 981 { |
989 if (p > newcmd && p[-1] == '\\') | 982 if (p > newcmd && p[-1] == '\\') |
990 STRMOVE(p - 1, p); | 983 STRMOVE(p - 1, p); |
991 else | 984 else |
992 { | 985 { |
1576 { | 1569 { |
1577 p = vim_strchr(buf, '|'); | 1570 p = vim_strchr(buf, '|'); |
1578 if (p != NULL) | 1571 if (p != NULL) |
1579 *p = NUL; | 1572 *p = NUL; |
1580 } | 1573 } |
1581 # ifdef RISCOS | |
1582 STRCAT(buf, " { < "); /* Use RISC OS notation for input. */ | |
1583 STRCAT(buf, itmp); | |
1584 STRCAT(buf, " } "); | |
1585 # else | |
1586 STRCAT(buf, " <"); /* " < " causes problems on Amiga */ | 1574 STRCAT(buf, " <"); /* " < " causes problems on Amiga */ |
1587 STRCAT(buf, itmp); | 1575 STRCAT(buf, itmp); |
1588 # endif | |
1589 if (*p_shq == NUL) | 1576 if (*p_shq == NUL) |
1590 { | 1577 { |
1591 p = vim_strchr(cmd, '|'); | 1578 p = vim_strchr(cmd, '|'); |
1592 if (p != NULL) | 1579 if (p != NULL) |
1593 { | 1580 { |
1632 (char *)opt, (char *)fname); | 1619 (char *)opt, (char *)fname); |
1633 } | 1620 } |
1634 else | 1621 else |
1635 vim_snprintf((char *)end, (size_t)(buflen - (end - buf)), | 1622 vim_snprintf((char *)end, (size_t)(buflen - (end - buf)), |
1636 #ifdef FEAT_QUICKFIX | 1623 #ifdef FEAT_QUICKFIX |
1637 # ifndef RISCOS | |
1638 opt != p_sp ? " %s%s" : | |
1639 # endif | |
1640 " %s %s", | 1624 " %s %s", |
1641 #else | 1625 #else |
1642 # ifndef RISCOS | |
1643 " %s%s", /* " > %s" causes problems on Amiga */ | 1626 " %s%s", /* " > %s" causes problems on Amiga */ |
1644 # else | |
1645 " %s %s", /* But is needed for 'shellpipe' and RISC OS */ | |
1646 # endif | |
1647 #endif | 1627 #endif |
1648 (char *)opt, (char *)fname); | 1628 (char *)opt, (char *)fname); |
1649 } | 1629 } |
1650 | 1630 |
1651 #ifdef FEAT_VIMINFO | 1631 #ifdef FEAT_VIMINFO |
1842 #endif | 1822 #endif |
1843 fname, | 1823 fname, |
1844 #ifdef VMS | 1824 #ifdef VMS |
1845 (char_u *)"-tmp", | 1825 (char_u *)"-tmp", |
1846 #else | 1826 #else |
1847 # ifdef RISCOS | |
1848 (char_u *)"/tmp", | |
1849 # else | |
1850 (char_u *)".tmp", | 1827 (char_u *)".tmp", |
1851 # endif | |
1852 #endif | 1828 #endif |
1853 FALSE); | 1829 FALSE); |
1854 if (tempname == NULL) /* out of memory */ | 1830 if (tempname == NULL) /* out of memory */ |
1855 break; | 1831 break; |
1856 | 1832 |