version 1.183, 2006/06/06 05:13:39 |
version 1.184, 2006/06/09 14:57:13 |
|
|
} |
} |
|
|
/* |
/* |
|
* rcs_sym_get() |
|
* |
|
* Find a specific symbol <sym> entry in the tree of the RCS file <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); |
|
} |
|
|
|
/* |
* rcs_sym_getrev() |
* rcs_sym_getrev() |
* |
* |
* Retrieve the RCS revision number associated with the symbol <sym> for the |
* Retrieve the RCS revision number associated with the symbol <sym> for the |