diff options
author | lordjaxom <lordjaxom> | 2005-01-07 21:49:23 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-07 21:49:23 +0000 |
commit | 62ad3100d861a1227fe4c1130dcf2a7ec096ed61 (patch) | |
tree | 5200a17f7bd70b15b683f1dcf1c725a290124541 /xml/type.c | |
parent | 7c3fd29204b8882011186b6337b002893fe2d1f6 (diff) | |
download | vdr-plugin-text2skin-62ad3100d861a1227fe4c1130dcf2a7ec096ed61.tar.gz vdr-plugin-text2skin-62ad3100d861a1227fe4c1130dcf2a7ec096ed61.tar.bz2 |
- consequent use of cxType for strings and numbers
Diffstat (limited to 'xml/type.c')
-rw-r--r-- | xml/type.c | 28 |
1 files changed, 1 insertions, 27 deletions
@@ -1,31 +1,5 @@ /* - * $Id: type.c,v 1.2 2005/01/05 19:32:43 lordjaxom Exp $ + * $Id: type.c,v 1.3 2005/01/07 21:50:53 lordjaxom Exp $ */ #include "xml/type.h" -#include "xml/function.h" -#include <vdr/tools.h> -#include <stdio.h> - -cxType cxType::False(false); -cxType cxType::True(true); - -std::string cxType::String(void) const { - if (mType == number) - return (const char*)itoa(mNumber); - return mString; - -#if 0 - if (mType == number) { - char *buffer; - asprintf(&buffer, "%d", mNumber); - mString = buffer; - mType = string; - free(buffer); - } else if (mType == boolean) { - mString = mNumber ? cxFunction::True : cxFunction::False; - mType = string; - } - return mString; -#endif -} |