annotate lisp/emacs-lisp/find-gc.el @ 54662:d609a0d94db2

(dired-mark-sexp): Replace hard-coded month names with `dired-move-to-filename-regexp'.
author Juri Linkov <juri@jurta.org>
date Wed, 31 Mar 2004 16:09:18 +0000
parents 695cf19ef79e
children 18a818a2ee7c 375f2633d815
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39027
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
1 ;;; find-gc.el --- detect functions that call the garbage collector
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
2
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
3 ;; Copyright (C) 1992 Free Software Foundation, Inc.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
4
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
5 ;; Maintainer: FSF
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
6
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
7 ;; This file is part of GNU Emacs.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
8
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
9 ;; GNU Emacs is free software; you can redistribute it and/or modify
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
10 ;; it under the terms of the GNU General Public License as published by
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
11 ;; the Free Software Foundation; either version 2, or (at your option)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
12 ;; any later version.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
13
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
14 ;; GNU Emacs is distributed in the hope that it will be useful,
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
17 ;; GNU General Public License for more details.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
18
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
19 ;; You should have received a copy of the GNU General Public License
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
22 ;; Boston, MA 02111-1307, USA.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
23
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
24 ;;; Commentary:
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
25
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
26 ;; Produce in unsafe-list the set of all functions that may invoke GC.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
27 ;; This expects the Emacs sources to live in emacs-source-directory.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
28 ;; It creates a temporary working directory /tmp/esrc.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
29
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
30 ;;; Code:
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
31
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
32 (defun find-gc-unsafe ()
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
33 (trace-call-tree nil)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
34 (trace-use-tree)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
35 (find-unsafe-funcs 'Fgarbage_collect)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
36 (setq unsafe-list (sort unsafe-list
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
37 (function (lambda (x y)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
38 (string-lessp (car x) (car y))))))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
39 )
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
40
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
41 (setq emacs-source-directory "/usr/gnu/src/dist/src")
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
42
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
43
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
44 ;;; This does a depth-first search to find all functions that can
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
45 ;;; ultimately call the function "target". The result is an a-list
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
46 ;;; in unsafe-list; the cars are the unsafe functions, and the cdrs
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
47 ;;; are (one of) the unsafe functions that these functions directly
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
48 ;;; call.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
49
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
50 (defun find-unsafe-funcs (target)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
51 (setq unsafe-list (list (list target)))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
52 (trace-unsafe target)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
53 )
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
54
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
55 (defun trace-unsafe (func)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
56 (let ((used (assq func subrs-used)))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
57 (or used
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
58 (error "No subrs-used for %s" (car unsafe-list)))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
59 (while (setq used (cdr used))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
60 (or (assq (car used) unsafe-list)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
61 (memq (car used) noreturn-list)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
62 (progn
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
63 (setq unsafe-list (cons (cons (car used) func) unsafe-list))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
64 (trace-unsafe (car used))))))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
65 )
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
66
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
67
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
68 ;;; Functions on this list are safe, even if they appear to be able
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
69 ;;; to call the target.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
70
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
71 (setq noreturn-list '( Fsignal Fthrow wrong_type_argument ))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
72
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
73
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
74 ;;; This produces an a-list of functions in subrs-called. The cdr of
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
75 ;;; each entry is a list of functions which the function in car calls.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
76
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
77 (defun trace-call-tree (&optional already-setup)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
78 (message "Setting up directories...")
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
79 (or already-setup
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
80 (progn
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
81 ;; Gee, wouldn't a built-in "system" function be handy here.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
82 (call-process "csh" nil nil nil "-c" "rm -rf /tmp/esrc")
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
83 (call-process "csh" nil nil nil "-c" "mkdir /tmp/esrc")
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
84 (call-process "csh" nil nil nil "-c"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
85 (format "ln -s %s/*.[ch] /tmp/esrc"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
86 emacs-source-directory))))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
87 (save-excursion
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
88 (set-buffer (get-buffer-create "*Trace Call Tree*"))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
89 (setq subrs-called nil)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
90 (let ((case-fold-search nil)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
91 (files source-files)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
92 name entry)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
93 (while files
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
94 (message "Compiling %s..." (car files))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
95 (call-process "csh" nil nil nil "-c"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
96 (format "gcc -dr -c /tmp/esrc/%s -o /dev/null"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
97 (car files)))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
98 (erase-buffer)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
99 (insert-file-contents (concat "/tmp/esrc/" (car files) ".rtl"))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
100 (while (re-search-forward ";; Function \\|(call_insn " nil t)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
101 (if (= (char-after (- (point) 3)) ?o)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
102 (progn
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
103 (looking-at "[a-zA-Z0-9_]+")
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
104 (setq name (intern (buffer-substring (match-beginning 0)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
105 (match-end 0))))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
106 (message "%s : %s" (car files) name)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
107 (setq entry (list name)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
108 subrs-called (cons entry subrs-called)))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
109 (if (looking-at ".*\n?.*\"\\([A-Za-z0-9_]+\\)\"")
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
110 (progn
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
111 (setq name (intern (buffer-substring (match-beginning 1)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
112 (match-end 1))))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
113 (or (memq name (cdr entry))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
114 (setcdr entry (cons name (cdr entry))))))))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
115 (delete-file (concat "/tmp/esrc/" (car files) ".rtl"))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
116 (setq files (cdr files)))))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
117 )
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
118
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
119
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
120 ;;; This was originally generated directory-files, but there were
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
121 ;;; too many files there that were not actually compiled. The
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
122 ;;; list below was created for a HP-UX 7.0 system.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
123
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
124 (setq source-files '("dispnew.c" "scroll.c" "xdisp.c" "window.c"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
125 "term.c" "cm.c" "emacs.c" "keyboard.c" "macros.c"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
126 "keymap.c" "sysdep.c" "buffer.c" "filelock.c"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
127 "insdel.c" "marker.c" "minibuf.c" "fileio.c"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
128 "dired.c" "filemode.c" "cmds.c" "casefiddle.c"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
129 "indent.c" "search.c" "regex.c" "undo.c"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
130 "alloc.c" "data.c" "doc.c" "editfns.c"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
131 "callint.c" "eval.c" "fns.c" "print.c" "lread.c"
42269
7aafd940314c (source-files): Remove mocklisp.c.
Pavel Janík <Pavel@Janik.cz>
parents: 39027
diff changeset
132 "abbrev.c" "syntax.c" "unexec.c"
39027
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
133 "bytecode.c" "process.c" "callproc.c" "doprnt.c"
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
134 "x11term.c" "x11fns.c"))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
135
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
136
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
137 ;;; This produces an inverted a-list in subrs-used. The cdr of each
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
138 ;;; entry is a list of functions that call the function in car.
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
139
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
140 (defun trace-use-tree ()
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
141 (setq subrs-used (mapcar 'list (mapcar 'car subrs-called)))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
142 (let ((ptr subrs-called)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
143 p2 found)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
144 (while ptr
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
145 (setq p2 (car ptr))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
146 (while (setq p2 (cdr p2))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
147 (if (setq found (assq (car p2) subrs-used))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
148 (setcdr found (cons (car (car ptr)) (cdr found)))))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
149 (setq ptr (cdr ptr))))
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
150 )
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
151
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
152 (provide 'find-gc)
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
153
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 42269
diff changeset
154 ;;; arch-tag: 4a26a538-a008-40d9-a1ef-23bb6dbecef4
39027
d5b2cd9aadf2 *** empty log message ***
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
155 ;;; find-gc.el ends here