Mercurial > hg > xemacs-beta
annotate src/syspwd.h @ 5576:071b810ceb18
Declare labels as line where appropriate; use #'labels, not #'flet, tests.
lisp/ChangeLog addition:
2011-10-03 Aidan Kehoe <kehoea@parhasard.net>
* simple.el (handle-pre-motion-command-current-command-is-motion):
Implement #'keysyms-equal with #'labels + (declare (inline ...)),
instead of abusing macrolet to the same end.
* specifier.el (let-specifier):
* mule/mule-cmds.el (describe-language-environment):
* mule/mule-cmds.el (set-language-environment-coding-systems):
* mule/mule-x-init.el (x-use-halfwidth-roman-font):
* faces.el (Face-frob-property):
* keymap.el (key-sequence-list-description):
* lisp-mode.el (construct-lisp-mode-menu):
* loadhist.el (unload-feature):
* mouse.el (default-mouse-track-check-for-activation):
Declare various labels inline in dumped files when that reduces
the size of the dumped image. Declaring labels inline is normally
only worthwhile for inner loops and so on, but it's reasonable
exercise of the related code to have these changes in core.
tests/ChangeLog addition:
2011-10-03 Aidan Kehoe <kehoea@parhasard.net>
* automated/case-tests.el (uni-mappings):
* automated/database-tests.el (delete-database-files):
* automated/hash-table-tests.el (iterations):
* automated/lisp-tests.el (test1):
* automated/lisp-tests.el (a):
* automated/lisp-tests.el (cl-floor):
* automated/lisp-tests.el (foo):
* automated/lisp-tests.el (list-nreverse):
* automated/lisp-tests.el (needs-lexical-context):
* automated/mule-tests.el (featurep):
* automated/os-tests.el (original-string):
* automated/os-tests.el (with):
* automated/symbol-tests.el (check-weak-list-unique):
Replace #'flet with #'labels where appropriate in these tests,
following my own advice on style in the docstrings of those
functions.
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Mon, 03 Oct 2011 20:16:14 +0100 |
| parents | 308d34e9f07d |
| children | c30fdcab7bc8 |
| rev | line source |
|---|---|
| 428 | 1 /* |
| 2 | |
| 3 This file is part of XEmacs. | |
| 4 | |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
867
diff
changeset
|
5 XEmacs is free software: you can redistribute it and/or modify it |
| 428 | 6 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:
867
diff
changeset
|
7 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:
867
diff
changeset
|
8 option) any later version. |
| 428 | 9 |
| 10 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
| 11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
| 13 for more details. | |
| 14 | |
| 15 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:
867
diff
changeset
|
16 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 428 | 17 |
| 18 /* Synched up with: Not really in FSF. */ | |
| 19 | |
| 442 | 20 #ifndef WIN32_NATIVE |
| 21 | |
| 22 # include <pwd.h> | |
| 23 | |
| 24 #else /* WIN32_NATIVE */ | |
| 428 | 25 |
| 771 | 26 struct passwd |
| 27 { | |
| 28 char *pw_name; | |
| 29 char *pw_passwd; | |
| 30 int pw_uid; | |
| 31 int pw_gid; | |
| 32 int pw_quota; | |
| 33 char *pw_gecos; | |
| 34 char *pw_dir; | |
| 35 char *pw_shell; | |
| 442 | 36 }; |
| 37 | |
| 771 | 38 #ifdef emacs |
| 39 | |
| 40 struct passwd *getpwuid (uid_t uid); | |
| 867 | 41 struct passwd *getpwnam (const Ibyte *name); |
| 771 | 42 uid_t getuid (void); |
| 43 uid_t geteuid (void); | |
| 44 gid_t getgid (void); | |
| 45 gid_t getegid (void); | |
| 46 | |
| 47 #endif /* emacs */ | |
| 48 | |
| 442 | 49 #endif /* WIN32_NATIVE */ |
| 771 | 50 |
| 51 #ifdef emacs | |
| 52 | |
| 867 | 53 struct passwd *qxe_getpwnam (const Ibyte *name); |
| 771 | 54 struct passwd *qxe_getpwuid (uid_t uid); |
| 55 struct passwd *qxe_getpwent (void); | |
| 56 | |
| 57 #endif /* emacs */ | |
| 58 |
