aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2016-12-10 10:49:39 +0200
committerEli Zaretskii2016-12-10 10:49:39 +0200
commit19bc43020d6afa2265447e2dad43ad617812ab38 (patch)
tree191d058414beaac652b98326807ee8afafd983c3 /src
parentad03e7af8b816a9a86480196383eaf080afc28e4 (diff)
downloademacs-19bc43020d6afa2265447e2dad43ad617812ab38.tar.gz
emacs-19bc43020d6afa2265447e2dad43ad617812ab38.zip
Documentation and commentary improvements
* src/lisp.h: * src/regex.c: * src/xgselect.c (xg_select): Improve commentary and formatting. * doc/lispref/objects.texi (Thread Type, Mutex Type) (Condition Variable Type): New subsections. (Type Predicates): Add thread-related predicates. * doc/lispref/objects.texi (Editing Types): * doc/lispref/elisp.texi (Top): Update higher-level menus.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h2
-rw-r--r--src/regex.c1
-rw-r--r--src/xgselect.c3
3 files changed, 6 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 72ea50d5f27..3c7c3dde904 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -845,6 +845,7 @@ enum pvec_type
845 PVEC_THREAD, 845 PVEC_THREAD,
846 PVEC_MUTEX, 846 PVEC_MUTEX,
847 PVEC_CONDVAR, 847 PVEC_CONDVAR,
848
848 /* These should be last, check internal_equal to see why. */ 849 /* These should be last, check internal_equal to see why. */
849 PVEC_COMPILED, 850 PVEC_COMPILED,
850 PVEC_CHAR_TABLE, 851 PVEC_CHAR_TABLE,
@@ -3229,6 +3230,7 @@ union specbinding
3229 } bt; 3230 } bt;
3230 }; 3231 };
3231 3232
3233/* These 3 are defined as macros in thread.h. */
3232/* extern union specbinding *specpdl; */ 3234/* extern union specbinding *specpdl; */
3233/* extern union specbinding *specpdl_ptr; */ 3235/* extern union specbinding *specpdl_ptr; */
3234/* extern ptrdiff_t specpdl_size; */ 3236/* extern ptrdiff_t specpdl_size; */
diff --git a/src/regex.c b/src/regex.c
index e7231d3882b..f1686cf700c 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -1140,6 +1140,7 @@ print_double_string (re_char *where, re_char *string1, ssize_t size1,
1140#endif /* not DEBUG */ 1140#endif /* not DEBUG */
1141 1141
1142#ifndef emacs 1142#ifndef emacs
1143
1143/* Set by `re_set_syntax' to the current regexp syntax to recognize. Can 1144/* Set by `re_set_syntax' to the current regexp syntax to recognize. Can
1144 also be assigned to arbitrarily: each pattern buffer stores its own 1145 also be assigned to arbitrarily: each pattern buffer stores its own
1145 syntax, so it can be changed between regex compilations. */ 1146 syntax, so it can be changed between regex compilations. */
diff --git a/src/xgselect.c b/src/xgselect.c
index e418e1a3c4e..2f23764ae41 100644
--- a/src/xgselect.c
+++ b/src/xgselect.c
@@ -76,6 +76,9 @@ xg_select (int fds_lim, fd_set *rfds, fd_set *wfds, fd_set *efds,
76 76
77 if (gfds_size < n_gfds) 77 if (gfds_size < n_gfds)
78 { 78 {
79 /* Avoid using SAFE_NALLOCA, as that implicitly refers to the
80 current thread. Using xnmalloc avoids thread-switching
81 problems here. */
79 gfds = xnmalloc (n_gfds, sizeof *gfds); 82 gfds = xnmalloc (n_gfds, sizeof *gfds);
80 must_free = 1; 83 must_free = 1;
81 gfds_size = n_gfds; 84 gfds_size = n_gfds;