diff options
| author | Juanma Barranquero | 2011-06-24 23:25:22 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-06-24 23:25:22 +0200 |
| commit | cd3520a41df21d80a9d894c58af2daba23c8dd24 (patch) | |
| tree | 945eaef322c65471833954ddce161a7a913ee3c8 /src/process.c | |
| parent | 7d0da90e7b98f5c09df82be9985cc27d30adea07 (diff) | |
| download | emacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.tar.gz emacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.zip | |
Move DEFSYM to lisp.h and use everywhere.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 243 |
1 files changed, 83 insertions, 160 deletions
diff --git a/src/process.c b/src/process.c index 0040d14a0f6..c46437fe8cb 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -7236,14 +7236,10 @@ syms_of_process (void) | |||
| 7236 | { | 7236 | { |
| 7237 | #ifdef subprocesses | 7237 | #ifdef subprocesses |
| 7238 | 7238 | ||
| 7239 | Qprocessp = intern_c_string ("processp"); | 7239 | DEFSYM (Qprocessp, "processp"); |
| 7240 | staticpro (&Qprocessp); | 7240 | DEFSYM (Qrun, "run"); |
| 7241 | Qrun = intern_c_string ("run"); | 7241 | DEFSYM (Qstop, "stop"); |
| 7242 | staticpro (&Qrun); | 7242 | DEFSYM (Qsignal, "signal"); |
| 7243 | Qstop = intern_c_string ("stop"); | ||
| 7244 | staticpro (&Qstop); | ||
| 7245 | Qsignal = intern_c_string ("signal"); | ||
| 7246 | staticpro (&Qsignal); | ||
| 7247 | 7243 | ||
| 7248 | /* Qexit is already staticpro'd by syms_of_eval; don't staticpro it | 7244 | /* Qexit is already staticpro'd by syms_of_eval; don't staticpro it |
| 7249 | here again. | 7245 | here again. |
| @@ -7251,92 +7247,52 @@ syms_of_process (void) | |||
| 7251 | Qexit = intern_c_string ("exit"); | 7247 | Qexit = intern_c_string ("exit"); |
| 7252 | staticpro (&Qexit); */ | 7248 | staticpro (&Qexit); */ |
| 7253 | 7249 | ||
| 7254 | Qopen = intern_c_string ("open"); | 7250 | DEFSYM (Qopen, "open"); |
| 7255 | staticpro (&Qopen); | 7251 | DEFSYM (Qclosed, "closed"); |
| 7256 | Qclosed = intern_c_string ("closed"); | 7252 | DEFSYM (Qconnect, "connect"); |
| 7257 | staticpro (&Qclosed); | 7253 | DEFSYM (Qfailed, "failed"); |
| 7258 | Qconnect = intern_c_string ("connect"); | 7254 | DEFSYM (Qlisten, "listen"); |
| 7259 | staticpro (&Qconnect); | 7255 | DEFSYM (Qlocal, "local"); |
| 7260 | Qfailed = intern_c_string ("failed"); | 7256 | DEFSYM (Qipv4, "ipv4"); |
| 7261 | staticpro (&Qfailed); | ||
| 7262 | Qlisten = intern_c_string ("listen"); | ||
| 7263 | staticpro (&Qlisten); | ||
| 7264 | Qlocal = intern_c_string ("local"); | ||
| 7265 | staticpro (&Qlocal); | ||
| 7266 | Qipv4 = intern_c_string ("ipv4"); | ||
| 7267 | staticpro (&Qipv4); | ||
| 7268 | #ifdef AF_INET6 | 7257 | #ifdef AF_INET6 |
| 7269 | Qipv6 = intern_c_string ("ipv6"); | 7258 | DEFSYM (Qipv6, "ipv6"); |
| 7270 | staticpro (&Qipv6); | 7259 | #endif |
| 7271 | #endif | 7260 | DEFSYM (Qdatagram, "datagram"); |
| 7272 | Qdatagram = intern_c_string ("datagram"); | 7261 | DEFSYM (Qseqpacket, "seqpacket"); |
| 7273 | staticpro (&Qdatagram); | 7262 | |
| 7274 | Qseqpacket = intern_c_string ("seqpacket"); | 7263 | DEFSYM (QCport, ":port"); |
| 7275 | staticpro (&Qseqpacket); | 7264 | DEFSYM (QCspeed, ":speed"); |
| 7276 | 7265 | DEFSYM (QCprocess, ":process"); | |
| 7277 | QCport = intern_c_string (":port"); | 7266 | |
| 7278 | staticpro (&QCport); | 7267 | DEFSYM (QCbytesize, ":bytesize"); |
| 7279 | QCspeed = intern_c_string (":speed"); | 7268 | DEFSYM (QCstopbits, ":stopbits"); |
| 7280 | staticpro (&QCspeed); | 7269 | DEFSYM (QCparity, ":parity"); |
| 7281 | QCprocess = intern_c_string (":process"); | 7270 | DEFSYM (Qodd, "odd"); |
| 7282 | staticpro (&QCprocess); | 7271 | DEFSYM (Qeven, "even"); |
| 7283 | 7272 | DEFSYM (QCflowcontrol, ":flowcontrol"); | |
| 7284 | QCbytesize = intern_c_string (":bytesize"); | 7273 | DEFSYM (Qhw, "hw"); |
| 7285 | staticpro (&QCbytesize); | 7274 | DEFSYM (Qsw, "sw"); |
| 7286 | QCstopbits = intern_c_string (":stopbits"); | 7275 | DEFSYM (QCsummary, ":summary"); |
| 7287 | staticpro (&QCstopbits); | 7276 | |
| 7288 | QCparity = intern_c_string (":parity"); | 7277 | DEFSYM (Qreal, "real"); |
| 7289 | staticpro (&QCparity); | 7278 | DEFSYM (Qnetwork, "network"); |
| 7290 | Qodd = intern_c_string ("odd"); | 7279 | DEFSYM (Qserial, "serial"); |
| 7291 | staticpro (&Qodd); | 7280 | DEFSYM (QCbuffer, ":buffer"); |
| 7292 | Qeven = intern_c_string ("even"); | 7281 | DEFSYM (QChost, ":host"); |
| 7293 | staticpro (&Qeven); | 7282 | DEFSYM (QCservice, ":service"); |
| 7294 | QCflowcontrol = intern_c_string (":flowcontrol"); | 7283 | DEFSYM (QClocal, ":local"); |
| 7295 | staticpro (&QCflowcontrol); | 7284 | DEFSYM (QCremote, ":remote"); |
| 7296 | Qhw = intern_c_string ("hw"); | 7285 | DEFSYM (QCcoding, ":coding"); |
| 7297 | staticpro (&Qhw); | 7286 | DEFSYM (QCserver, ":server"); |
| 7298 | Qsw = intern_c_string ("sw"); | 7287 | DEFSYM (QCnowait, ":nowait"); |
| 7299 | staticpro (&Qsw); | 7288 | DEFSYM (QCsentinel, ":sentinel"); |
| 7300 | QCsummary = intern_c_string (":summary"); | 7289 | DEFSYM (QClog, ":log"); |
| 7301 | staticpro (&QCsummary); | 7290 | DEFSYM (QCnoquery, ":noquery"); |
| 7302 | 7291 | DEFSYM (QCstop, ":stop"); | |
| 7303 | Qreal = intern_c_string ("real"); | 7292 | DEFSYM (QCoptions, ":options"); |
| 7304 | staticpro (&Qreal); | 7293 | DEFSYM (QCplist, ":plist"); |
| 7305 | Qnetwork = intern_c_string ("network"); | 7294 | |
| 7306 | staticpro (&Qnetwork); | 7295 | DEFSYM (Qlast_nonmenu_event, "last-nonmenu-event"); |
| 7307 | Qserial = intern_c_string ("serial"); | ||
| 7308 | staticpro (&Qserial); | ||
| 7309 | QCbuffer = intern_c_string (":buffer"); | ||
| 7310 | staticpro (&QCbuffer); | ||
| 7311 | QChost = intern_c_string (":host"); | ||
| 7312 | staticpro (&QChost); | ||
| 7313 | QCservice = intern_c_string (":service"); | ||
| 7314 | staticpro (&QCservice); | ||
| 7315 | QClocal = intern_c_string (":local"); | ||
| 7316 | staticpro (&QClocal); | ||
| 7317 | QCremote = intern_c_string (":remote"); | ||
| 7318 | staticpro (&QCremote); | ||
| 7319 | QCcoding = intern_c_string (":coding"); | ||
| 7320 | staticpro (&QCcoding); | ||
| 7321 | QCserver = intern_c_string (":server"); | ||
| 7322 | staticpro (&QCserver); | ||
| 7323 | QCnowait = intern_c_string (":nowait"); | ||
| 7324 | staticpro (&QCnowait); | ||
| 7325 | QCsentinel = intern_c_string (":sentinel"); | ||
| 7326 | staticpro (&QCsentinel); | ||
| 7327 | QClog = intern_c_string (":log"); | ||
| 7328 | staticpro (&QClog); | ||
| 7329 | QCnoquery = intern_c_string (":noquery"); | ||
| 7330 | staticpro (&QCnoquery); | ||
| 7331 | QCstop = intern_c_string (":stop"); | ||
| 7332 | staticpro (&QCstop); | ||
| 7333 | QCoptions = intern_c_string (":options"); | ||
| 7334 | staticpro (&QCoptions); | ||
| 7335 | QCplist = intern_c_string (":plist"); | ||
| 7336 | staticpro (&QCplist); | ||
| 7337 | |||
| 7338 | Qlast_nonmenu_event = intern_c_string ("last-nonmenu-event"); | ||
| 7339 | staticpro (&Qlast_nonmenu_event); | ||
| 7340 | 7296 | ||
| 7341 | staticpro (&Vprocess_alist); | 7297 | staticpro (&Vprocess_alist); |
| 7342 | #ifdef SIGCHLD | 7298 | #ifdef SIGCHLD |
| @@ -7345,73 +7301,40 @@ syms_of_process (void) | |||
| 7345 | 7301 | ||
| 7346 | #endif /* subprocesses */ | 7302 | #endif /* subprocesses */ |
| 7347 | 7303 | ||
| 7348 | QCname = intern_c_string (":name"); | 7304 | DEFSYM (QCname, ":name"); |
| 7349 | staticpro (&QCname); | 7305 | DEFSYM (QCtype, ":type"); |
| 7350 | QCtype = intern_c_string (":type"); | 7306 | |
| 7351 | staticpro (&QCtype); | 7307 | DEFSYM (Qeuid, "euid"); |
| 7352 | 7308 | DEFSYM (Qegid, "egid"); | |
| 7353 | Qeuid = intern_c_string ("euid"); | 7309 | DEFSYM (Quser, "user"); |
| 7354 | staticpro (&Qeuid); | 7310 | DEFSYM (Qgroup, "group"); |
| 7355 | Qegid = intern_c_string ("egid"); | 7311 | DEFSYM (Qcomm, "comm"); |
| 7356 | staticpro (&Qegid); | 7312 | DEFSYM (Qstate, "state"); |
| 7357 | Quser = intern_c_string ("user"); | 7313 | DEFSYM (Qppid, "ppid"); |
| 7358 | staticpro (&Quser); | 7314 | DEFSYM (Qpgrp, "pgrp"); |
| 7359 | Qgroup = intern_c_string ("group"); | 7315 | DEFSYM (Qsess, "sess"); |
| 7360 | staticpro (&Qgroup); | 7316 | DEFSYM (Qttname, "ttname"); |
| 7361 | Qcomm = intern_c_string ("comm"); | 7317 | DEFSYM (Qtpgid, "tpgid"); |
| 7362 | staticpro (&Qcomm); | 7318 | DEFSYM (Qminflt, "minflt"); |
| 7363 | Qstate = intern_c_string ("state"); | 7319 | DEFSYM (Qmajflt, "majflt"); |
| 7364 | staticpro (&Qstate); | 7320 | DEFSYM (Qcminflt, "cminflt"); |
| 7365 | Qppid = intern_c_string ("ppid"); | 7321 | DEFSYM (Qcmajflt, "cmajflt"); |
| 7366 | staticpro (&Qppid); | 7322 | DEFSYM (Qutime, "utime"); |
| 7367 | Qpgrp = intern_c_string ("pgrp"); | 7323 | DEFSYM (Qstime, "stime"); |
| 7368 | staticpro (&Qpgrp); | 7324 | DEFSYM (Qtime, "time"); |
| 7369 | Qsess = intern_c_string ("sess"); | 7325 | DEFSYM (Qcutime, "cutime"); |
| 7370 | staticpro (&Qsess); | 7326 | DEFSYM (Qcstime, "cstime"); |
| 7371 | Qttname = intern_c_string ("ttname"); | 7327 | DEFSYM (Qctime, "ctime"); |
| 7372 | staticpro (&Qttname); | 7328 | DEFSYM (Qpri, "pri"); |
| 7373 | Qtpgid = intern_c_string ("tpgid"); | 7329 | DEFSYM (Qnice, "nice"); |
| 7374 | staticpro (&Qtpgid); | 7330 | DEFSYM (Qthcount, "thcount"); |
| 7375 | Qminflt = intern_c_string ("minflt"); | 7331 | DEFSYM (Qstart, "start"); |
| 7376 | staticpro (&Qminflt); | 7332 | DEFSYM (Qvsize, "vsize"); |
| 7377 | Qmajflt = intern_c_string ("majflt"); | 7333 | DEFSYM (Qrss, "rss"); |
| 7378 | staticpro (&Qmajflt); | 7334 | DEFSYM (Qetime, "etime"); |
| 7379 | Qcminflt = intern_c_string ("cminflt"); | 7335 | DEFSYM (Qpcpu, "pcpu"); |
| 7380 | staticpro (&Qcminflt); | 7336 | DEFSYM (Qpmem, "pmem"); |
| 7381 | Qcmajflt = intern_c_string ("cmajflt"); | 7337 | DEFSYM (Qargs, "args"); |
| 7382 | staticpro (&Qcmajflt); | ||
| 7383 | Qutime = intern_c_string ("utime"); | ||
| 7384 | staticpro (&Qutime); | ||
| 7385 | Qstime = intern_c_string ("stime"); | ||
| 7386 | staticpro (&Qstime); | ||
| 7387 | Qtime = intern_c_string ("time"); | ||
| 7388 | staticpro (&Qtime); | ||
| 7389 | Qcutime = intern_c_string ("cutime"); | ||
| 7390 | staticpro (&Qcutime); | ||
| 7391 | Qcstime = intern_c_string ("cstime"); | ||
| 7392 | staticpro (&Qcstime); | ||
| 7393 | Qctime = intern_c_string ("ctime"); | ||
| 7394 | staticpro (&Qctime); | ||
| 7395 | Qpri = intern_c_string ("pri"); | ||
| 7396 | staticpro (&Qpri); | ||
| 7397 | Qnice = intern_c_string ("nice"); | ||
| 7398 | staticpro (&Qnice); | ||
| 7399 | Qthcount = intern_c_string ("thcount"); | ||
| 7400 | staticpro (&Qthcount); | ||
| 7401 | Qstart = intern_c_string ("start"); | ||
| 7402 | staticpro (&Qstart); | ||
| 7403 | Qvsize = intern_c_string ("vsize"); | ||
| 7404 | staticpro (&Qvsize); | ||
| 7405 | Qrss = intern_c_string ("rss"); | ||
| 7406 | staticpro (&Qrss); | ||
| 7407 | Qetime = intern_c_string ("etime"); | ||
| 7408 | staticpro (&Qetime); | ||
| 7409 | Qpcpu = intern_c_string ("pcpu"); | ||
| 7410 | staticpro (&Qpcpu); | ||
| 7411 | Qpmem = intern_c_string ("pmem"); | ||
| 7412 | staticpro (&Qpmem); | ||
| 7413 | Qargs = intern_c_string ("args"); | ||
| 7414 | staticpro (&Qargs); | ||
| 7415 | 7338 | ||
| 7416 | DEFVAR_BOOL ("delete-exited-processes", delete_exited_processes, | 7339 | DEFVAR_BOOL ("delete-exited-processes", delete_exited_processes, |
| 7417 | doc: /* *Non-nil means delete processes immediately when they exit. | 7340 | doc: /* *Non-nil means delete processes immediately when they exit. |