aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorDan Nicolaescu2008-07-31 05:33:56 +0000
committerDan Nicolaescu2008-07-31 05:33:56 +0000
commit7c2fb837ec2f0e0a509f22ccc35f9b43476a6119 (patch)
tree7ec796ef1f109e43c8be2cc8cfb8dc579cfa8033 /lib-src
parent69ab3201ca6f6ef1414d678fd9cb13dd4d6f6b95 (diff)
downloademacs-7c2fb837ec2f0e0a509f22ccc35f9b43476a6119.tar.gz
emacs-7c2fb837ec2f0e0a509f22ccc35f9b43476a6119.zip
* bitmaps/README:
* xfns.c: * termcap.c: * term.c: * syswait.h: * systty.h: * systime.h: * syssignal.h: * sysdep.c: * process.h: * process.c: * print.c: * ndir.h: * lread.c: * keyboard.c: * getpagesize.h: * floatfns.c: * fileio.c: * emacs.c: * doc.c: * dispnew.c: * dired.c: * data.c: * callproc.c: * buffer.c: * README: * Makefile.in: * s/template.h: * s/msdos.h: * m/vax.h: Remove VMS support. * s/vms.h: * vlimit.h: * uaf.h: * temacs.opt: * param.h: * ioctl.h: Remove file. * descrip.mms: * compile.com: Remove file. * Create.c: Remove VMS support. * message.el (Module): * gnus-start.el (Module): * gnus-registry.el (Module): * textmodes/texinfmt.el: * nxml/nxml-enc.el: * mail/feedmail.el: * international/mule.el: * international/latexenc.el: * emulation/viper-util.el: * emulation/viper-init.el: * emulation/viper-ex.el: * emacs-lisp/bytecomp.el: * version.el: * subr.el: * startup.el: * sort.el: * shadowfile.el: * recentf.el: * printing.el: * paths.el: * minibuffer.el: * ls-lisp.el: * loadup.el: * hippie-exp.el: * finder.el: * files.el: * ediff-util.el: * ediff-ptch.el: * ediff-init.el: * ediff-diff.el: * dired.el: * dired-aux.el: * cus-edit.el: * bindings.el: * arc-mode.el: * add-log.el: Remove VMS support. * obsolete/vmsproc.el: * obsolete/vms-pmail.el: * obsolete/vms-patch.el: Remove file. * etags.c: * emacsclient.c: Remove VMS support. * termcap.src: Remove file. * README: * PROBLEMS: * MACHINES: Remove VMS info. * ediff.texi: Remove VMS support. * os.texi: * intro.texi: * files.texi: Remove VMS support. * emacs.texi: Remove VMS support. * make-dist: * README: Remove VMS support. * vms: Remove directory.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/emacsclient.c4
-rw-r--r--lib-src/etags.c154
3 files changed, 7 insertions, 156 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 375b5e332a3..97421befeb3 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,8 @@
12008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * etags.c:
4 * emacsclient.c: Remove VMS support.
5
12008-07-27 Dan Nicolaescu <dann@ics.uci.edu> 62008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 Remove support for Mac Carbon. 8 Remove support for Mac Carbon.
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 279dd40b864..8f0231db540 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -64,15 +64,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
64#include <unistd.h> 64#include <unistd.h>
65#endif 65#endif
66 66
67#ifdef VMS
68# include "vms-pwd.h"
69#else /* not VMS */
70#ifdef WINDOWSNT 67#ifdef WINDOWSNT
71# include <io.h> 68# include <io.h>
72#else /* not WINDOWSNT */ 69#else /* not WINDOWSNT */
73# include <pwd.h> 70# include <pwd.h>
74#endif /* not WINDOWSNT */ 71#endif /* not WINDOWSNT */
75#endif /* not VMS */
76#include <sys/stat.h> 72#include <sys/stat.h>
77 73
78#include <signal.h> 74#include <signal.h>
diff --git a/lib-src/etags.c b/lib-src/etags.c
index f577c751a28..56a84d6e0de 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -172,13 +172,8 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38";
172 extern void exit __P((int)); 172 extern void exit __P((int));
173 extern void free __P((void *)); 173 extern void free __P((void *));
174 extern void *memmove __P((void *, const void *, unsigned long)); 174 extern void *memmove __P((void *, const void *, unsigned long));
175# ifdef VMS 175# define EXIT_SUCCESS 0
176# define EXIT_SUCCESS 1 176# define EXIT_FAILURE 1
177# define EXIT_FAILURE 0
178# else /* no VMS */
179# define EXIT_SUCCESS 0
180# define EXIT_FAILURE 1
181# endif
182# endif 177# endif
183#endif /* !WINDOWSNT */ 178#endif /* !WINDOWSNT */
184 179
@@ -1094,131 +1089,6 @@ Relative ones are stored relative to the output file's directory.\n");
1094} 1089}
1095 1090
1096 1091
1097#ifdef VMS /* VMS specific functions */
1098
1099#define EOS '\0'
1100
1101/* This is a BUG! ANY arbitrary limit is a BUG!
1102 Won't someone please fix this? */
1103#define MAX_FILE_SPEC_LEN 255
1104typedef struct {
1105 short curlen;
1106 char body[MAX_FILE_SPEC_LEN + 1];
1107} vspec;
1108
1109/*
1110 v1.05 nmm 26-Jun-86 fn_exp - expand specification of list of file names
1111 returning in each successive call the next file name matching the input
1112 spec. The function expects that each in_spec passed
1113 to it will be processed to completion; in particular, up to and
1114 including the call following that in which the last matching name
1115 is returned, the function ignores the value of in_spec, and will
1116 only start processing a new spec with the following call.
1117 If an error occurs, on return out_spec contains the value
1118 of in_spec when the error occurred.
1119
1120 With each successive file name returned in out_spec, the
1121 function's return value is one. When there are no more matching
1122 names the function returns zero. If on the first call no file
1123 matches in_spec, or there is any other error, -1 is returned.
1124*/
1125
1126#include <rmsdef.h>
1127#include <descrip.h>
1128#define OUTSIZE MAX_FILE_SPEC_LEN
1129static short
1130fn_exp (out, in)
1131 vspec *out;
1132 char *in;
1133{
1134 static long context = 0;
1135 static struct dsc$descriptor_s o;
1136 static struct dsc$descriptor_s i;
1137 static bool pass1 = TRUE;
1138 long status;
1139 short retval;
1140
1141 if (pass1)
1142 {
1143 pass1 = FALSE;
1144 o.dsc$a_pointer = (char *) out;
1145 o.dsc$w_length = (short)OUTSIZE;
1146 i.dsc$a_pointer = in;
1147 i.dsc$w_length = (short)strlen(in);
1148 i.dsc$b_dtype = DSC$K_DTYPE_T;
1149 i.dsc$b_class = DSC$K_CLASS_S;
1150 o.dsc$b_dtype = DSC$K_DTYPE_VT;
1151 o.dsc$b_class = DSC$K_CLASS_VS;
1152 }
1153 if ((status = lib$find_file(&i, &o, &context, 0, 0)) == RMS$_NORMAL)
1154 {
1155 out->body[out->curlen] = EOS;
1156 return 1;
1157 }
1158 else if (status == RMS$_NMF)
1159 retval = 0;
1160 else
1161 {
1162 strcpy(out->body, in);
1163 retval = -1;
1164 }
1165 lib$find_file_end(&context);
1166 pass1 = TRUE;
1167 return retval;
1168}
1169
1170/*
1171 v1.01 nmm 19-Aug-85 gfnames - return in successive calls the
1172 name of each file specified by the provided arg expanding wildcards.
1173*/
1174static char *
1175gfnames (arg, p_error)
1176 char *arg;
1177 bool *p_error;
1178{
1179 static vspec filename = {MAX_FILE_SPEC_LEN, "\0"};
1180
1181 switch (fn_exp (&filename, arg))
1182 {
1183 case 1:
1184 *p_error = FALSE;
1185 return filename.body;
1186 case 0:
1187 *p_error = FALSE;
1188 return NULL;
1189 default:
1190 *p_error = TRUE;
1191 return filename.body;
1192 }
1193}
1194
1195#ifndef OLD /* Newer versions of VMS do provide `system'. */
1196system (cmd)
1197 char *cmd;
1198{
1199 error ("%s", "system() function not implemented under VMS");
1200}
1201#endif
1202
1203#define VERSION_DELIM ';'
1204char *massage_name (s)
1205 char *s;
1206{
1207 char *start = s;
1208
1209 for ( ; *s; s++)
1210 if (*s == VERSION_DELIM)
1211 {
1212 *s = EOS;
1213 break;
1214 }
1215 else
1216 *s = lowcase (*s);
1217 return start;
1218}
1219#endif /* VMS */
1220
1221
1222int 1092int
1223main (argc, argv) 1093main (argc, argv)
1224 int argc; 1094 int argc;
@@ -1231,9 +1101,6 @@ main (argc, argv)
1231 int current_arg, file_count; 1101 int current_arg, file_count;
1232 linebuffer filename_lb; 1102 linebuffer filename_lb;
1233 bool help_asked = FALSE; 1103 bool help_asked = FALSE;
1234#ifdef VMS
1235 bool got_err;
1236#endif
1237 char *optstring; 1104 char *optstring;
1238 int opt; 1105 int opt;
1239 1106
@@ -1441,21 +1308,7 @@ main (argc, argv)
1441 analyse_regex (argbuffer[i].what); 1308 analyse_regex (argbuffer[i].what);
1442 break; 1309 break;
1443 case at_filename: 1310 case at_filename:
1444#ifdef VMS
1445 while ((this_file = gfnames (argbuffer[i].what, &got_err)) != NULL)
1446 {
1447 if (got_err)
1448 {
1449 error ("can't find file %s\n", this_file);
1450 argc--, argv++;
1451 }
1452 else
1453 {
1454 this_file = massage_name (this_file);
1455 }
1456#else
1457 this_file = argbuffer[i].what; 1311 this_file = argbuffer[i].what;
1458#endif
1459 /* Input file named "-" means read file names from stdin 1312 /* Input file named "-" means read file names from stdin
1460 (one per line) and use them. */ 1313 (one per line) and use them. */
1461 if (streq (this_file, "-")) 1314 if (streq (this_file, "-"))
@@ -1468,9 +1321,6 @@ main (argc, argv)
1468 } 1321 }
1469 else 1322 else
1470 process_file_name (this_file, lang); 1323 process_file_name (this_file, lang);
1471#ifdef VMS
1472 }
1473#endif
1474 break; 1324 break;
1475 case at_stdin: 1325 case at_stdin:
1476 this_file = argbuffer[i].what; 1326 this_file = argbuffer[i].what;