diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2009-11-06 06:50:52 +0000 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2009-11-06 06:50:52 +0000 |
commit | 1448fb4cb5b2e4ea2ad0bb1759b1757625ba28f1 (patch) | |
tree | efb77abfaf5279f7d227b3627a1a3734376a0a89 /src/process.c | |
parent | 5b4bd0b84f1f55b599bca092f5064f5411194889 (diff) | |
download | emacs-1448fb4cb5b2e4ea2ad0bb1759b1757625ba28f1.tar.gz |
* xterm.c (syms_of_xterm):
* xselect.c (syms_of_xselect):
* xmenu.c (syms_of_xmenu):
* xfns.c (syms_of_xfns):
* xfaces.c (syms_of_xfaces):
* xdisp.c (syms_of_xdisp):
* window.c (syms_of_window):
* w32fns.c (syms_of_w32fns):
* undo.c (syms_of_undo):
* textprop.c (syms_of_textprop):
* terminal.c (syms_of_terminal):
* syntax.c (syms_of_syntax):
* sound.c (syms_of_sound):
* search.c (syms_of_search):
* print.c (syms_of_print):
* minibuf.c (syms_of_minibuf):
* macros.c (syms_of_macros):
* keymap.c (syms_of_keymap, initial_define_key)
(initial_define_lispy_key):
* keyboard.c (syms_of_keyboard):
* insdel.c (syms_of_insdel):
* image.c (syms_of_image):
* fringe.c (syms_of_fringe):
* frame.c (syms_of_frame):
* fontset.c (syms_of_fontset):
* fns.c (syms_of_fns):
* fns.c (syms_of_fns):
* fileio.c (syms_of_fileio):
* fileio.c (syms_of_fileio):
* eval.c (syms_of_eval):
* doc.c (syms_of_doc):
* dispnew.c (syms_of_display):
* dired.c (syms_of_dired):
* dbusbind.c (syms_of_dbusbind):
* data.c (syms_of_data):
* composite.c (syms_of_composite):
* coding.c (syms_of_coding):
* cmds.c (syms_of_cmds):
* charset.c (define_charset_internal, syms_of_character):
* ccl.c (syms_of_ccl):
* category.c (syms_of_category, init_category_once):
* casetab.c (syms_of_casetab):
* casefiddle.c (syms_of_casefiddle):
* callint.c (syms_of_callint):
* bytecode.c (syms_of_bytecode):
* buffer.c (keys_of_buffer, syms_of_buffer):
* alloc.c (syms_of_alloc):
* process.c (syms_of_process, init_process):
* lread.c (syms_of_lread, init_obarray):
* font.c (build_style_table):
* emacs.c (syms_of_emacs, main): Replace calls to intern with
intern_c_string, calls to make_pure_string with
make_pure_c_string. Use pure_cons instead of Fcons.
* process.c (socket_options): Make it const.
(set_socket_option, init_process): Use a const pointer.
* lread.c (intern_c_string): New function.
(defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
(defvar_int): Uset it. Make the name const char*.
* font.c (struct table_entry): Remove unused member. Make NAMES
constant.
(weight_table, slant_table, width_table): Make constant.
* emacs.c (struct standard_args): Make name and longname constant.
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 230 |
1 files changed, 115 insertions, 115 deletions
diff --git a/src/process.c b/src/process.c index 7cb85d73aad..08495d2d8bd 100644 --- a/src/process.c +++ b/src/process.c @@ -7317,7 +7317,7 @@ init_process () const struct socket_options *sopt; #define ADD_SUBFEATURE(key, val) \ - subfeatures = Fcons (Fcons (key, Fcons (val, Qnil)), subfeatures) + subfeatures = pure_cons (pure_cons (key, pure_cons (val, Qnil)), subfeatures) #ifdef NON_BLOCKING_CONNECT ADD_SUBFEATURE (QCnowait, Qt); @@ -7340,9 +7340,9 @@ init_process () #endif for (sopt = socket_options; sopt->name; sopt++) - subfeatures = Fcons (intern (sopt->name), subfeatures); + subfeatures = pure_cons (intern_c_string (sopt->name), subfeatures); - Fprovide (intern ("make-network-process"), subfeatures); + Fprovide (intern_c_string ("make-network-process"), subfeatures); } #endif /* HAVE_SOCKETS */ @@ -7363,109 +7363,109 @@ init_process () void syms_of_process () { - Qprocessp = intern ("processp"); + Qprocessp = intern_c_string ("processp"); staticpro (&Qprocessp); - Qrun = intern ("run"); + Qrun = intern_c_string ("run"); staticpro (&Qrun); - Qstop = intern ("stop"); + Qstop = intern_c_string ("stop"); staticpro (&Qstop); - Qsignal = intern ("signal"); + Qsignal = intern_c_string ("signal"); staticpro (&Qsignal); /* Qexit is already staticpro'd by syms_of_eval; don't staticpro it here again. - Qexit = intern ("exit"); + Qexit = intern_c_string ("exit"); staticpro (&Qexit); */ - Qopen = intern ("open"); + Qopen = intern_c_string ("open"); staticpro (&Qopen); - Qclosed = intern ("closed"); + Qclosed = intern_c_string ("closed"); staticpro (&Qclosed); - Qconnect = intern ("connect"); + Qconnect = intern_c_string ("connect"); staticpro (&Qconnect); - Qfailed = intern ("failed"); + Qfailed = intern_c_string ("failed"); staticpro (&Qfailed); - Qlisten = intern ("listen"); + Qlisten = intern_c_string ("listen"); staticpro (&Qlisten); - Qlocal = intern ("local"); + Qlocal = intern_c_string ("local"); staticpro (&Qlocal); - Qipv4 = intern ("ipv4"); + Qipv4 = intern_c_string ("ipv4"); staticpro (&Qipv4); #ifdef AF_INET6 - Qipv6 = intern ("ipv6"); + Qipv6 = intern_c_string ("ipv6"); staticpro (&Qipv6); #endif - Qdatagram = intern ("datagram"); + Qdatagram = intern_c_string ("datagram"); staticpro (&Qdatagram); - QCport = intern (":port"); + QCport = intern_c_string (":port"); staticpro (&QCport); - QCspeed = intern (":speed"); + QCspeed = intern_c_string (":speed"); staticpro (&QCspeed); - QCprocess = intern (":process"); + QCprocess = intern_c_string (":process"); staticpro (&QCprocess); - QCbytesize = intern (":bytesize"); + QCbytesize = intern_c_string (":bytesize"); staticpro (&QCbytesize); - QCstopbits = intern (":stopbits"); + QCstopbits = intern_c_string (":stopbits"); staticpro (&QCstopbits); - QCparity = intern (":parity"); + QCparity = intern_c_string (":parity"); staticpro (&QCparity); - Qodd = intern ("odd"); + Qodd = intern_c_string ("odd"); staticpro (&Qodd); - Qeven = intern ("even"); + Qeven = intern_c_string ("even"); staticpro (&Qeven); - QCflowcontrol = intern (":flowcontrol"); + QCflowcontrol = intern_c_string (":flowcontrol"); staticpro (&QCflowcontrol); - Qhw = intern ("hw"); + Qhw = intern_c_string ("hw"); staticpro (&Qhw); - Qsw = intern ("sw"); + Qsw = intern_c_string ("sw"); staticpro (&Qsw); - QCsummary = intern (":summary"); + QCsummary = intern_c_string (":summary"); staticpro (&QCsummary); - Qreal = intern ("real"); + Qreal = intern_c_string ("real"); staticpro (&Qreal); - Qnetwork = intern ("network"); + Qnetwork = intern_c_string ("network"); staticpro (&Qnetwork); - Qserial = intern ("serial"); + Qserial = intern_c_string ("serial"); staticpro (&Qserial); - QCname = intern (":name"); + QCname = intern_c_string (":name"); staticpro (&QCname); - QCbuffer = intern (":buffer"); + QCbuffer = intern_c_string (":buffer"); staticpro (&QCbuffer); - QChost = intern (":host"); + QChost = intern_c_string (":host"); staticpro (&QChost); - QCservice = intern (":service"); + QCservice = intern_c_string (":service"); staticpro (&QCservice); - QCtype = intern (":type"); + QCtype = intern_c_string (":type"); staticpro (&QCtype); - QClocal = intern (":local"); + QClocal = intern_c_string (":local"); staticpro (&QClocal); - QCremote = intern (":remote"); + QCremote = intern_c_string (":remote"); staticpro (&QCremote); - QCcoding = intern (":coding"); + QCcoding = intern_c_string (":coding"); staticpro (&QCcoding); - QCserver = intern (":server"); + QCserver = intern_c_string (":server"); staticpro (&QCserver); - QCnowait = intern (":nowait"); + QCnowait = intern_c_string (":nowait"); staticpro (&QCnowait); - QCsentinel = intern (":sentinel"); + QCsentinel = intern_c_string (":sentinel"); staticpro (&QCsentinel); - QClog = intern (":log"); + QClog = intern_c_string (":log"); staticpro (&QClog); - QCnoquery = intern (":noquery"); + QCnoquery = intern_c_string (":noquery"); staticpro (&QCnoquery); - QCstop = intern (":stop"); + QCstop = intern_c_string (":stop"); staticpro (&QCstop); - QCoptions = intern (":options"); + QCoptions = intern_c_string (":options"); staticpro (&QCoptions); - QCplist = intern (":plist"); + QCplist = intern_c_string (":plist"); staticpro (&QCplist); - Qlast_nonmenu_event = intern ("last-nonmenu-event"); + Qlast_nonmenu_event = intern_c_string ("last-nonmenu-event"); staticpro (&Qlast_nonmenu_event); staticpro (&Vprocess_alist); @@ -7473,67 +7473,67 @@ syms_of_process () staticpro (&deleted_pid_list); #endif - Qeuid = intern ("euid"); + Qeuid = intern_c_string ("euid"); staticpro (&Qeuid); - Qegid = intern ("egid"); + Qegid = intern_c_string ("egid"); staticpro (&Qegid); - Quser = intern ("user"); + Quser = intern_c_string ("user"); staticpro (&Quser); - Qgroup = intern ("group"); + Qgroup = intern_c_string ("group"); staticpro (&Qgroup); - Qcomm = intern ("comm"); + Qcomm = intern_c_string ("comm"); staticpro (&Qcomm); - Qstate = intern ("state"); + Qstate = intern_c_string ("state"); staticpro (&Qstate); - Qppid = intern ("ppid"); + Qppid = intern_c_string ("ppid"); staticpro (&Qppid); - Qpgrp = intern ("pgrp"); + Qpgrp = intern_c_string ("pgrp"); staticpro (&Qpgrp); - Qsess = intern ("sess"); + Qsess = intern_c_string ("sess"); staticpro (&Qsess); - Qttname = intern ("ttname"); + Qttname = intern_c_string ("ttname"); staticpro (&Qttname); - Qtpgid = intern ("tpgid"); + Qtpgid = intern_c_string ("tpgid"); staticpro (&Qtpgid); - Qminflt = intern ("minflt"); + Qminflt = intern_c_string ("minflt"); staticpro (&Qminflt); - Qmajflt = intern ("majflt"); + Qmajflt = intern_c_string ("majflt"); staticpro (&Qmajflt); - Qcminflt = intern ("cminflt"); + Qcminflt = intern_c_string ("cminflt"); staticpro (&Qcminflt); - Qcmajflt = intern ("cmajflt"); + Qcmajflt = intern_c_string ("cmajflt"); staticpro (&Qcmajflt); - Qutime = intern ("utime"); + Qutime = intern_c_string ("utime"); staticpro (&Qutime); - Qstime = intern ("stime"); + Qstime = intern_c_string ("stime"); staticpro (&Qstime); - Qtime = intern ("time"); + Qtime = intern_c_string ("time"); staticpro (&Qtime); - Qcutime = intern ("cutime"); + Qcutime = intern_c_string ("cutime"); staticpro (&Qcutime); - Qcstime = intern ("cstime"); + Qcstime = intern_c_string ("cstime"); staticpro (&Qcstime); - Qctime = intern ("ctime"); + Qctime = intern_c_string ("ctime"); staticpro (&Qctime); - Qpri = intern ("pri"); + Qpri = intern_c_string ("pri"); staticpro (&Qpri); - Qnice = intern ("nice"); + Qnice = intern_c_string ("nice"); staticpro (&Qnice); - Qthcount = intern ("thcount"); + Qthcount = intern_c_string ("thcount"); staticpro (&Qthcount); - Qstart = intern ("start"); + Qstart = intern_c_string ("start"); staticpro (&Qstart); - Qvsize = intern ("vsize"); + Qvsize = intern_c_string ("vsize"); staticpro (&Qvsize); - Qrss = intern ("rss"); + Qrss = intern_c_string ("rss"); staticpro (&Qrss); - Qetime = intern ("etime"); + Qetime = intern_c_string ("etime"); staticpro (&Qetime); - Qpcpu = intern ("pcpu"); + Qpcpu = intern_c_string ("pcpu"); staticpro (&Qpcpu); - Qpmem = intern ("pmem"); + Qpmem = intern_c_string ("pmem"); staticpro (&Qpmem); - Qargs = intern ("args"); + Qargs = intern_c_string ("args"); staticpro (&Qargs); DEFVAR_BOOL ("delete-exited-processes", &delete_exited_processes, @@ -8003,75 +8003,75 @@ init_process () void syms_of_process () { - QCtype = intern (":type"); + QCtype = intern_c_string (":type"); staticpro (&QCtype); - QCname = intern (":name"); + QCname = intern_c_string (":name"); staticpro (&QCname); - QCtype = intern (":type"); + QCtype = intern_c_string (":type"); staticpro (&QCtype); - QCname = intern (":name"); + QCname = intern_c_string (":name"); staticpro (&QCname); - Qeuid = intern ("euid"); + Qeuid = intern_c_string ("euid"); staticpro (&Qeuid); - Qegid = intern ("egid"); + Qegid = intern_c_string ("egid"); staticpro (&Qegid); - Quser = intern ("user"); + Quser = intern_c_string ("user"); staticpro (&Quser); - Qgroup = intern ("group"); + Qgroup = intern_c_string ("group"); staticpro (&Qgroup); - Qcomm = intern ("comm"); + Qcomm = intern_c_string ("comm"); staticpro (&Qcomm); - Qstate = intern ("state"); + Qstate = intern_c_string ("state"); staticpro (&Qstate); - Qppid = intern ("ppid"); + Qppid = intern_c_string ("ppid"); staticpro (&Qppid); - Qpgrp = intern ("pgrp"); + Qpgrp = intern_c_string ("pgrp"); staticpro (&Qpgrp); - Qsess = intern ("sess"); + Qsess = intern_c_string ("sess"); staticpro (&Qsess); - Qttname = intern ("ttname"); + Qttname = intern_c_string ("ttname"); staticpro (&Qttname); - Qtpgid = intern ("tpgid"); + Qtpgid = intern_c_string ("tpgid"); staticpro (&Qtpgid); - Qminflt = intern ("minflt"); + Qminflt = intern_c_string ("minflt"); staticpro (&Qminflt); - Qmajflt = intern ("majflt"); + Qmajflt = intern_c_string ("majflt"); staticpro (&Qmajflt); - Qcminflt = intern ("cminflt"); + Qcminflt = intern_c_string ("cminflt"); staticpro (&Qcminflt); - Qcmajflt = intern ("cmajflt"); + Qcmajflt = intern_c_string ("cmajflt"); staticpro (&Qcmajflt); - Qutime = intern ("utime"); + Qutime = intern_c_string ("utime"); staticpro (&Qutime); - Qstime = intern ("stime"); + Qstime = intern_c_string ("stime"); staticpro (&Qstime); - Qtime = intern ("time"); + Qtime = intern_c_string ("time"); staticpro (&Qtime); - Qcutime = intern ("cutime"); + Qcutime = intern_c_string ("cutime"); staticpro (&Qcutime); - Qcstime = intern ("cstime"); + Qcstime = intern_c_string ("cstime"); staticpro (&Qcstime); - Qctime = intern ("ctime"); + Qctime = intern_c_string ("ctime"); staticpro (&Qctime); - Qpri = intern ("pri"); + Qpri = intern_c_string ("pri"); staticpro (&Qpri); - Qnice = intern ("nice"); + Qnice = intern_c_string ("nice"); staticpro (&Qnice); - Qthcount = intern ("thcount"); + Qthcount = intern_c_string ("thcount"); staticpro (&Qthcount); - Qstart = intern ("start"); + Qstart = intern_c_string ("start"); staticpro (&Qstart); - Qvsize = intern ("vsize"); + Qvsize = intern_c_string ("vsize"); staticpro (&Qvsize); - Qrss = intern ("rss"); + Qrss = intern_c_string ("rss"); staticpro (&Qrss); - Qetime = intern ("etime"); + Qetime = intern_c_string ("etime"); staticpro (&Qetime); - Qpcpu = intern ("pcpu"); + Qpcpu = intern_c_string ("pcpu"); staticpro (&Qpcpu); - Qpmem = intern ("pmem"); + Qpmem = intern_c_string ("pmem"); staticpro (&Qpmem); - Qargs = intern ("args"); + Qargs = intern_c_string ("args"); staticpro (&Qargs); defsubr (&Sget_buffer_process); |