// This should use NSPR but NSPR isn't exporting its PR_strtoll function // Until then... PRInt64 nsCRT::atoll(const char *str) { if (!str) return LL_Zero(); PRInt64 ll = LL_Zero(), digitll = LL_Zero(); while (*str && *str >= '0' && *str <= '9') { LL_MUL(ll, ll, 10); LL_UI2L(digitll, (*str - '0')); LL_ADD(ll, ll, digitll); str++; } return ll; }
nsNNTPNewsgroupList::nsNNTPNewsgroupList() : m_finishingXover(false), m_getOldMessages(false), m_promptedAlready(false), m_downloadAll(false), m_maxArticles(0), m_lastPercent(-1), m_lastProcessedNumber(0), m_firstMsgNumber(0), m_lastMsgNumber(0), m_firstMsgToDownload(0), m_lastMsgToDownload(0), m_set(nsnull) { memset(&m_knownArts, 0, sizeof(m_knownArts)); m_lastStatusUpdate = LL_Zero(); }