version 1.161, 2006/04/05 01:38:55 |
version 1.162, 2006/04/10 08:08:00 |
|
|
* rcs_kwexp_set() |
* rcs_kwexp_set() |
* |
* |
* Set the keyword expansion mode to use on the RCS file <file> to <mode>. |
* Set the keyword expansion mode to use on the RCS file <file> to <mode>. |
* Returns 0 on success, or -1 on failure. |
|
*/ |
*/ |
int |
void |
rcs_kwexp_set(RCSFILE *file, int mode) |
rcs_kwexp_set(RCSFILE *file, int mode) |
{ |
{ |
int i; |
int i; |
char *tmp, buf[8] = ""; |
char *tmp, buf[8] = ""; |
|
|
if (RCS_KWEXP_INVAL(mode)) |
if (RCS_KWEXP_INVAL(mode)) |
return (-1); |
return; |
|
|
i = 0; |
i = 0; |
if (mode == RCS_KWEXP_NONE) |
if (mode == RCS_KWEXP_NONE) |
|
|
file->rf_expand = tmp; |
file->rf_expand = tmp; |
/* not synced anymore */ |
/* not synced anymore */ |
file->rf_flags &= ~RCS_SYNCED; |
file->rf_flags &= ~RCS_SYNCED; |
|
|
return (0); |
|
} |
} |
|
|
/* |
/* |