aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2016-12-05 22:50:44 +0200
committerEli Zaretskii2016-12-05 22:50:44 +0200
commit66a5abb102ec1d6e4c327632ef235d1eb6433291 (patch)
tree9e894dfb5dcf42869bff94987d7ab5628ea71358 /src
parente4deba098e0281538a0e7b04d849989f17e5bcc7 (diff)
downloademacs-66a5abb102ec1d6e4c327632ef235d1eb6433291.tar.gz
emacs-66a5abb102ec1d6e4c327632ef235d1eb6433291.zip
Fix compilation problems.
Diffstat (limited to 'src')
-rw-r--r--src/bytecode.c2
-rw-r--r--src/eval.c10
-rw-r--r--src/lisp.h1
-rw-r--r--src/process.c11
-rw-r--r--src/regex.c14
-rw-r--r--src/thread.c6
-rw-r--r--src/thread.h12
-rw-r--r--src/w32proc.c2
8 files changed, 10 insertions, 48 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 3ac94055f33..7d5f85de140 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -891,7 +891,7 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
891 if (sys_setjmp (c->jmp)) 891 if (sys_setjmp (c->jmp))
892 { 892 {
893 struct handler *c = handlerlist; 893 struct handler *c = handlerlist;
894 int desc; 894 int dest;
895 top = c->bytecode_top; 895 top = c->bytecode_top;
896 dest = c->bytecode_dest; 896 dest = c->bytecode_dest;
897 handlerlist = c->next; 897 handlerlist = c->next;
diff --git a/src/eval.c b/src/eval.c
index 4405b8bb738..9657f51aadc 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1440,7 +1440,7 @@ push_handler_nosignal (Lisp_Object tag_ch_val, enum handlertype handlertype)
1440 c->tag_or_ch = tag_ch_val; 1440 c->tag_or_ch = tag_ch_val;
1441 c->val = Qnil; 1441 c->val = Qnil;
1442 c->next = handlerlist; 1442 c->next = handlerlist;
1443 c->lisp_eval_depth = lisp_eval_depth; 1443 c->f_lisp_eval_depth = lisp_eval_depth;
1444 c->pdlcount = SPECPDL_INDEX (); 1444 c->pdlcount = SPECPDL_INDEX ();
1445 c->poll_suppress_count = poll_suppress_count; 1445 c->poll_suppress_count = poll_suppress_count;
1446 c->interrupt_input_blocked = interrupt_input_blocked; 1446 c->interrupt_input_blocked = interrupt_input_blocked;
@@ -3157,7 +3157,7 @@ let_shadows_global_binding_p (Lisp_Object symbol)
3157 return 0; 3157 return 0;
3158} 3158}
3159 3159
3160void 3160static void
3161do_specbind (struct Lisp_Symbol *sym, union specbinding *bind, 3161do_specbind (struct Lisp_Symbol *sym, union specbinding *bind,
3162 Lisp_Object value) 3162 Lisp_Object value)
3163{ 3163{
@@ -3332,7 +3332,7 @@ rebind_for_thread_switch (void)
3332 if (was_trapped) 3332 if (was_trapped)
3333 XSYMBOL (sym)->trapped_write = SYMBOL_UNTRAPPED_WRITE; 3333 XSYMBOL (sym)->trapped_write = SYMBOL_UNTRAPPED_WRITE;
3334 bind->let.saved_value = Qnil; 3334 bind->let.saved_value = Qnil;
3335 do_specbind (XSYMBOL (sym, bind, value, true); 3335 do_specbind (XSYMBOL (sym), bind, value);
3336 if (was_trapped) 3336 if (was_trapped)
3337 XSYMBOL (sym)->trapped_write = SYMBOL_TRAPPED_WRITE; 3337 XSYMBOL (sym)->trapped_write = SYMBOL_TRAPPED_WRITE;
3338 } 3338 }
@@ -3363,7 +3363,7 @@ do_one_unbind (union specbinding *this_binding, bool unwinding)
3363 { /* If variable has a trivial value (no forwarding), and isn't 3363 { /* If variable has a trivial value (no forwarding), and isn't
3364 trapped we can just set it. No need to check for constant 3364 trapped we can just set it. No need to check for constant
3365 symbols here, since that was already done by specbind. */ 3365 symbols here, since that was already done by specbind. */
3366 struct Lisp_Symbol sym = specpdl_symbol (this_binding); 3366 Lisp_Object sym = specpdl_symbol (this_binding);
3367 if (SYMBOLP (sym) && XSYMBOL (sym)->redirect == SYMBOL_PLAINVAL) 3367 if (SYMBOLP (sym) && XSYMBOL (sym)->redirect == SYMBOL_PLAINVAL)
3368 { 3368 {
3369 if (XSYMBOL (sym)->trapped_write == SYMBOL_UNTRAPPED_WRITE) 3369 if (XSYMBOL (sym)->trapped_write == SYMBOL_UNTRAPPED_WRITE)
@@ -3399,7 +3399,7 @@ do_one_unbind (union specbinding *this_binding, bool unwinding)
3399 } 3399 }
3400} 3400}
3401 3401
3402void 3402static void
3403do_nothing (void) 3403do_nothing (void)
3404{} 3404{}
3405 3405
diff --git a/src/lisp.h b/src/lisp.h
index d4da32e3ebf..72ea50d5f27 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -4328,7 +4328,6 @@ extern int read_bytecode_char (bool);
4328/* Defined in bytecode.c. */ 4328/* Defined in bytecode.c. */
4329extern void syms_of_bytecode (void); 4329extern void syms_of_bytecode (void);
4330extern void relocate_byte_stack (struct byte_stack *); 4330extern void relocate_byte_stack (struct byte_stack *);
4331extern struct byte_stack *byte_stack_list;
4332extern Lisp_Object exec_byte_code (Lisp_Object, Lisp_Object, Lisp_Object, 4331extern Lisp_Object exec_byte_code (Lisp_Object, Lisp_Object, Lisp_Object,
4333 Lisp_Object, ptrdiff_t, Lisp_Object *); 4332 Lisp_Object, ptrdiff_t, Lisp_Object *);
4334extern Lisp_Object get_byte_code_arity (Lisp_Object); 4333extern Lisp_Object get_byte_code_arity (Lisp_Object);
diff --git a/src/process.c b/src/process.c
index 7f2a071e67b..e800bf278bc 100644
--- a/src/process.c
+++ b/src/process.c
@@ -526,8 +526,6 @@ recompute_max_desc (void)
526void 526void
527delete_write_fd (int fd) 527delete_write_fd (int fd)
528{ 528{
529 int lim = max_desc;
530
531 if ((fd_callback_info[fd].flags & NON_BLOCKING_CONNECT_FD) != 0) 529 if ((fd_callback_info[fd].flags & NON_BLOCKING_CONNECT_FD) != 0)
532 { 530 {
533 if (--num_pending_connects < 0) 531 if (--num_pending_connects < 0)
@@ -1232,7 +1230,7 @@ set_process_filter_masks (struct Lisp_Process *p)
1232 else if (EQ (p->filter, Qt) 1230 else if (EQ (p->filter, Qt)
1233 /* Network or serial process not stopped: */ 1231 /* Network or serial process not stopped: */
1234 && !EQ (p->command, Qt)) 1232 && !EQ (p->command, Qt))
1235 add_read_fd (p->infd); 1233 add_non_keyboard_read_fd (p->infd);
1236} 1234}
1237 1235
1238DEFUN ("set-process-filter", Fset_process_filter, Sset_process_filter, 1236DEFUN ("set-process-filter", Fset_process_filter, Sset_process_filter,
@@ -3281,7 +3279,7 @@ finish_after_tls_connection (Lisp_Object proc)
3281 pset_status (p, Qfailed); 3279 pset_status (p, Qfailed);
3282 deactivate_process (proc); 3280 deactivate_process (proc);
3283 } 3281 }
3284 else if (! FD_ISSET (p->outfd, &connect_wait_mask)) 3282 else if ((fd_callback_info[p->outfd].flags & NON_BLOCKING_CONNECT_FD) == 0)
3285 { 3283 {
3286 /* If we cleared the connection wait mask before we did the TLS 3284 /* If we cleared the connection wait mask before we did the TLS
3287 setup, then we have to say that the process is finally "open" 3285 setup, then we have to say that the process is finally "open"
@@ -5730,7 +5728,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
5730 5728
5731 if (0 <= p->infd && !EQ (p->filter, Qt) 5729 if (0 <= p->infd && !EQ (p->filter, Qt)
5732 && !EQ (p->command, Qt)) 5730 && !EQ (p->command, Qt))
5733 add_read_fd (p->infd); 5731 add_non_keyboard_read_fd (p->infd);
5734 } 5732 }
5735 } 5733 }
5736 } /* End for each file descriptor. */ 5734 } /* End for each file descriptor. */
@@ -7675,9 +7673,6 @@ void
7675delete_keyboard_wait_descriptor (int desc) 7673delete_keyboard_wait_descriptor (int desc)
7676{ 7674{
7677#ifdef subprocesses 7675#ifdef subprocesses
7678 int fd;
7679 int lim = max_desc;
7680
7681 eassert (desc >= 0 && desc < FD_SETSIZE); 7676 eassert (desc >= 0 && desc < FD_SETSIZE);
7682 7677
7683 fd_callback_info[desc].flags &= ~(FOR_READ | KEYBOARD_FD | PROCESS_FD); 7678 fd_callback_info[desc].flags &= ~(FOR_READ | KEYBOARD_FD | PROCESS_FD);
diff --git a/src/regex.c b/src/regex.c
index bb046858dfe..e7231d3882b 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -1146,7 +1146,6 @@ print_double_string (re_char *where, re_char *string1, ssize_t size1,
1146/* This has no initializer because initialized variables in Emacs 1146/* This has no initializer because initialized variables in Emacs
1147 become read-only after dumping. */ 1147 become read-only after dumping. */
1148reg_syntax_t re_syntax_options; 1148reg_syntax_t re_syntax_options;
1149#endif
1150 1149
1151 1150
1152/* Specify the precise syntax of regexps for compilation. This provides 1151/* Specify the precise syntax of regexps for compilation. This provides
@@ -1166,20 +1165,7 @@ re_set_syntax (reg_syntax_t syntax)
1166} 1165}
1167WEAK_ALIAS (__re_set_syntax, re_set_syntax) 1166WEAK_ALIAS (__re_set_syntax, re_set_syntax)
1168 1167
1169#ifndef emacs
1170/* Regexp to use to replace spaces, or NULL meaning don't. */
1171static const_re_char *whitespace_regexp;
1172#else
1173/* whitespace_regexp is a macro defined in thread.h. */
1174#endif 1168#endif
1175
1176void
1177re_set_whitespace_regexp (const char *regexp)
1178{
1179 whitespace_regexp = (const_re_char *) regexp;
1180}
1181WEAK_ALIAS (__re_set_syntax, re_set_syntax)
1182>>>>>>> concurrency
1183 1169
1184/* This table gives an error message for each of the error codes listed 1170/* This table gives an error message for each of the error codes listed
1185 in regex.h. Obviously the order here has to be same as there. 1171 in regex.h. Obviously the order here has to be same as there.
diff --git a/src/thread.c b/src/thread.c
index f5b04e4b231..11d55a5caef 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -143,8 +143,6 @@ lisp_mutex_lock (lisp_mutex_t *mutex, int new_count)
143static int 143static int
144lisp_mutex_unlock (lisp_mutex_t *mutex) 144lisp_mutex_unlock (lisp_mutex_t *mutex)
145{ 145{
146 struct thread_state *self = current_thread;
147
148 if (mutex->owner != current_thread) 146 if (mutex->owner != current_thread)
149 error ("blah"); 147 error ("blah");
150 148
@@ -160,7 +158,6 @@ lisp_mutex_unlock (lisp_mutex_t *mutex)
160static unsigned int 158static unsigned int
161lisp_mutex_unlock_for_wait (lisp_mutex_t *mutex) 159lisp_mutex_unlock_for_wait (lisp_mutex_t *mutex)
162{ 160{
163 struct thread_state *self = current_thread;
164 unsigned int result = mutex->count; 161 unsigned int result = mutex->count;
165 162
166 /* Ensured by condvar code. */ 163 /* Ensured by condvar code. */
@@ -601,9 +598,6 @@ DEFUN ("thread-yield", Fthread_yield, Sthread_yield, 0, 0, 0,
601static Lisp_Object 598static Lisp_Object
602invoke_thread_function (void) 599invoke_thread_function (void)
603{ 600{
604 Lisp_Object iter;
605 volatile struct thread_state *self = current_thread;
606
607 int count = SPECPDL_INDEX (); 601 int count = SPECPDL_INDEX ();
608 602
609 Ffuncall (1, &current_thread->function); 603 Ffuncall (1, &current_thread->function);
diff --git a/src/thread.h b/src/thread.h
index a089c7de573..d4cae360f68 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -142,18 +142,6 @@ struct thread_state
142 Lisp_Object m_re_match_object; 142 Lisp_Object m_re_match_object;
143#define re_match_object (current_thread->m_re_match_object) 143#define re_match_object (current_thread->m_re_match_object)
144 144
145 /* Set by `re_set_syntax' to the current regexp syntax to recognize. Can
146 also be assigned to arbitrarily: each pattern buffer stores its own
147 syntax, so it can be changed between regex compilations. */
148 reg_syntax_t m_re_syntax_options;
149#define re_syntax_options (current_thread->m_re_syntax_options)
150
151 /* Regexp to use to replace spaces, or NULL meaning don't. */
152 /* This ought to be a "const re_char *" but that is not available
153 outside regex.h. */
154 const void *m_whitespace_regexp;
155#define whitespace_regexp (current_thread->m_whitespace_regexp)
156
157 /* This variable is different from waiting_for_input in keyboard.c. 145 /* This variable is different from waiting_for_input in keyboard.c.
158 It is used to communicate to a lisp process-filter/sentinel (via the 146 It is used to communicate to a lisp process-filter/sentinel (via the
159 function Fwaiting_for_user_input_p) whether Emacs was waiting 147 function Fwaiting_for_user_input_p) whether Emacs was waiting
diff --git a/src/w32proc.c b/src/w32proc.c
index 2d2d948bfea..c4f1f693741 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -72,7 +72,7 @@ extern BOOL g_b_init_compare_string_w;
72extern BOOL g_b_init_debug_break_process; 72extern BOOL g_b_init_debug_break_process;
73 73
74int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *, 74int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *,
75 struct timespec *, void *); 75 struct timespec *, sigset_t *);
76 76
77/* Signal handlers...SIG_DFL == 0 so this is initialized correctly. */ 77/* Signal handlers...SIG_DFL == 0 so this is initialized correctly. */
78static signal_handler sig_handlers[NSIG]; 78static signal_handler sig_handlers[NSIG];