=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/rcs.c,v retrieving revision 1.183 retrieving revision 1.184 diff -c -r1.183 -r1.184 *** src/usr.bin/cvs/rcs.c 2006/06/06 05:13:39 1.183 --- src/usr.bin/cvs/rcs.c 2006/06/09 14:57:13 1.184 *************** *** 1,4 **** ! /* $OpenBSD: rcs.c,v 1.183 2006/06/06 05:13:39 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: rcs.c,v 1.184 2006/06/09 14:57:13 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 788,793 **** --- 788,812 ---- /* not synced anymore */ file->rf_flags &= ~RCS_SYNCED; return (0); + } + + /* + * rcs_sym_get() + * + * Find a specific symbol entry in the tree of the RCS file . + * + * Returns a pointer to the symbol on success, or NULL on failure. + */ + struct rcs_sym * + rcs_sym_get(RCSFILE *file, const char *sym) + { + struct rcs_sym *symp; + + TAILQ_FOREACH(symp, &(file->rf_symbols), rs_list) + if (strcmp(symp->rs_name, sym) == 0) + return (symp); + + return (NULL); } /*