Fix man page typo and cppcheck warnings.
All checks were successful
Remind unit tests / tests (push) Successful in 32s

This commit is contained in:
Dianne Skoll
2024-12-13 15:22:46 -05:00
parent 6373ae8ca5
commit a19b009f7c
5 changed files with 5 additions and 12 deletions

View File

@@ -1982,7 +1982,7 @@ symbolic links to files.
.PP
The \fBSYSINCLUDE\fR command is similar to \fBDO\fR, but it looks for
relative pathnames under the system directory containing standard reminder
scripts. For thie version of \fBRemind\fR, the system directory is
scripts. For this version of \fBRemind\fR, the system directory is
"@prefix@/share/remind".
.PP
.SH THE RUN COMMAND

View File

@@ -1998,7 +1998,7 @@ get_day_name(int wkday)
if (wkday < 0 || wkday > 6) {
return "INVALID_WKDAY";
}
return t(DayName[wkday]);
return tr(DayName[wkday]);
}
char const *
@@ -2007,7 +2007,7 @@ get_month_name(int mon)
if (mon < 0 || mon > 11) {
return "INVALID_MON";
}
return t(MonthName[mon]);
return tr(MonthName[mon]);
}
static int GetOnceDateFromFile(void)

View File

@@ -272,6 +272,5 @@ void InitTranslationTable(void);
char const *GetTranslatedString(char const *orig);
int GetTranslatedStringTryingVariants(char const *orig, DynamicBuffer *out);
char const *GetErr(int r);
char const *t(char const *s);
char const *tr(char const *s);
void print_escaped_string(FILE *fp, char const *s);

View File

@@ -313,7 +313,7 @@ GetTranslatedStringTryingVariants(char const *orig, DynamicBuffer *out)
return 0;
}
char const *t(char const *orig)
char const *tr(char const *orig)
{
char const *n = GetTranslatedString(orig);
if (n) {
@@ -322,12 +322,6 @@ char const *t(char const *orig)
return orig;
}
/* If another "t" is in scope... */
char const *tr(char const *orig)
{
return t(orig);
}
int
DoTranslate(ParsePtr p)
{

View File

@@ -968,7 +968,7 @@ static int SetTranslatableVariable(SysVar *v, Value *value)
static int GetTranslatableVariable(SysVar *v, Value *value)
{
char const *translated = t((char const *) v->value);
char const *translated = tr((char const *) v->value);
if (translated) {
value->v.str = StrDup(translated);
} else {