1 /* b-peer.h --- finding the ‘execv’able name of a peer program 2 3 Copyright (C) 2010-2020 Thien-Thi Nguyen 4 5 This file is part of GNU RCS. 6 7 GNU RCS is free software: you can redistribute it and/or modify it 8 under the terms of the GNU General Public License as published by 9 the Free Software Foundation, either version 3 of the License, or 10 (at your option) any later version. 11 12 GNU RCS is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty 14 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 See the GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 extern struct symdef peer_super; 22 23 const char *one_beyond_last_dir_sep (const char *name) 24 ALL_NONNULL; 25 char const *find_peer_prog (struct symdef *prog) 26 ALL_NONNULL; 27 28 /* Idioms. */ 29 #define PEER_SUPER() find_peer_prog (&peer_super) 30 31 /* b-peer.h ends here */ 32