Mercurial > hg > xemacs-beta
annotate src/vdb.h @ 5664:00fd55d635fb
Sync #'truncate-string-to-width with GNU, add tests for it.
lisp/ChangeLog addition:
2012-05-12 Aidan Kehoe <kehoea@parhasard.net>
* subr.el:
* subr.el (truncate-string-to-width):
Sync with GNU's version, use its test suite in mule-tests.el.
tests/ChangeLog addition:
2012-05-12 Aidan Kehoe <kehoea@parhasard.net>
* automated/mule-tests.el:
Test #'truncate-string-to-width, thank you Colin Walters.
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Sat, 12 May 2012 17:51:05 +0100 |
| parents | 308d34e9f07d |
| children |
| rev | line source |
|---|---|
| 3092 | 1 /* Virtual diry bit implementation for XEmacs. |
| 2 Copyright (C) 2005 Marcus Crestani. | |
| 3 | |
| 4 This file is part of XEmacs. | |
| 5 | |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3092
diff
changeset
|
6 XEmacs is free software: you can redistribute it and/or modify it |
| 3092 | 7 under the terms of the GNU General Public License as published by the |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3092
diff
changeset
|
8 Free Software Foundation, either version 3 of the License, or (at your |
|
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3092
diff
changeset
|
9 option) any later version. |
| 3092 | 10 |
| 11 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
| 12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
| 14 for more details. | |
| 15 | |
| 16 You should have received a copy of the GNU General Public License | |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3092
diff
changeset
|
17 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 3092 | 18 |
| 19 /* Synched up with: Not in FSF. */ | |
| 20 | |
| 21 #include "lisp.h" | |
| 22 | |
| 23 #ifndef INCLUDED_vdb_h_ | |
| 24 #define INCLUDED_vdb_h_ | |
| 25 | |
| 26 | |
| 27 /*--- prototypes -------------------------------------------------------*/ | |
| 28 | |
| 29 BEGIN_C_DECLS | |
| 30 | |
| 31 /* Platform dependent signal handling: */ | |
| 32 | |
| 33 /* Install the platform-dependent signal handler. */ | |
| 34 void vdb_install_signal_handler (void); | |
| 35 | |
| 36 /* Platform dependent memory protection. */ | |
| 37 void vdb_protect (void *ptr, EMACS_INT len); | |
| 38 void vdb_unprotect (void *ptr, EMACS_INT len); | |
| 39 | |
| 40 | |
| 41 | |
| 42 /* Common (platform independent) virtual diry bit stuff: */ | |
| 43 | |
| 44 /* Start the write barrier. This function is called when a garbage | |
| 45 collection is suspendend and the client is resumed. */ | |
| 46 void vdb_start_dirty_bits_recording (void); | |
| 47 /* Stop the write barrier. This function is called when the client is | |
| 48 suspendend and garbage collection is resumed. */ | |
| 49 void vdb_stop_dirty_bits_recording (void); | |
| 50 | |
| 51 /* Record page faults: Add the object pointed to by addr to the write | |
| 52 barrer's internal data structure that stores modified objects. | |
| 53 This function is called by the write barrier's fault handler. */ | |
| 54 void vdb_designate_modified (void *addr); | |
| 55 | |
| 56 /* Propagate page faults to garbage collector: Read out the write | |
| 57 barrier's internal data structure that stores modified objects and | |
| 58 pass the information to the garbage collector. This function is | |
| 59 called by vdb_stop_dirty_bits_recording(). Return how many objects | |
| 60 have to be re-examined by the garbage collector. */ | |
| 61 int vdb_read_dirty_bits (void); | |
| 62 | |
| 63 /* Provides Lisp functions for testing vdb implementation. */ | |
| 64 void syms_of_vdb (void); | |
| 65 | |
| 66 END_C_DECLS | |
| 67 | |
| 68 #endif /* INCLUDED_vdb_h_ */ |
