orientation: Remove

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-10-06 20:10:29 +02:00
parent 9deafe68c8
commit e12212855b
2 changed files with 0 additions and 39 deletions

View File

@ -56,36 +56,6 @@ _warn(int line, const char *fct, const char *fmt, ...)
fprintf(stderr, "\n");
}
/** Get a orientation type from a string.
* \param pos The orientation.
* \return A orientation.
*/
orientation_t
orientation_fromstr(const char *pos)
{
if(a_strcmp(pos, "south") == 0)
return South;
if(a_strcmp(pos, "east") == 0)
return East;
return North;
}
/** Convert a orientation type to a string.
* \param p The orientation.
* \return A orientation string.
*/
const char *
orientation_tostr(orientation_t p)
{
switch(p)
{
case North: return "north";
case South: return "south";
case East: return "east";
default: return NULL;
}
}
/** \brief safe limited strcpy.
*
* Copies at most min(<tt>n-1</tt>, \c l) characters from \c src into \c dst,

View File

@ -36,13 +36,6 @@
#include <alloca.h>
#endif
typedef enum
{
East = 0,
South,
North,
} orientation_t;
/** \brief replace \c NULL strings with empty strings */
#define NONULL(x) (x ? x : "")
@ -329,8 +322,6 @@ void _fatal(int, const char *, const char *, ...)
void _warn(int, const char *, const char *, ...)
__attribute__ ((format(printf, 3, 4)));
orientation_t orientation_fromstr(const char *);
const char * orientation_tostr(orientation_t);
void a_exec(const char *);
#endif