misc adjunction

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@782 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.3
Stéphane Fillod, F8CFE 2001-12-20 07:48:38 +00:00
rodzic 8d89b72752
commit 8e4ef3c614
2 zmienionych plików z 13 dodań i 2 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Interface - toolbox
* Copyright (c) 2000,2001 by Stephane Fillod and Frank Singleton
*
* $Id: misc.c,v 1.10 2001-12-16 11:24:17 fillods Exp $
* $Id: misc.c,v 1.11 2001-12-20 07:48:38 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -364,4 +364,14 @@ const char *strparm(setting_t parm)
return NULL;
}
const char *strptrshift(rptr_shift_t shift)
{
switch (shift) {
case RIG_RPT_SHIFT_MINUS: return "+";
case RIG_RPT_SHIFT_PLUS: return "-";
case RIG_RPT_SHIFT_NONE: return "None";
default:
}
return NULL;
}

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Interface - toolbox header
* Copyright (c) 2000,2001 by Stephane Fillod and Frank Singleton
*
* $Id: misc.h,v 1.9 2001-12-16 11:24:17 fillods Exp $
* $Id: misc.h,v 1.10 2001-12-20 07:48:38 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -65,6 +65,7 @@ extern HAMLIB_EXPORT(const char *) strvfo(vfo_t vfo);
extern HAMLIB_EXPORT(const char *) strfunc(setting_t);
extern HAMLIB_EXPORT(const char *) strlevel(setting_t);
extern HAMLIB_EXPORT(const char *) strparm(setting_t);
extern HAMLIB_EXPORT(const char *) strptrshift(rptr_shift_t);
/* check if it's any of CR or LF */
#define isreturn(c) ((c) == 10 || (c) == 13)