int main(int argc, char *argv[], char *envp[])
{
  USHORT w;

  if(argc == 1 || (argc == 2 && argv[1][0] == '/' && argv[1][1] == '?'))
    {
    _verbose();
    return 0;
    }

  _readstate();

  for(w = 1; w < argc; w++)
    if(_is(argv[w], "numlock"))
      _setflag(bFlag, VK_NUMLOCK+1, NUMLOCK_ON);
    else
    if(_is(argv[w], "capslock"))
      _setflag(bFlag, VK_CAPSLOCK+1, CAPSLOCK_ON);
    else
    if(_is(argv[w], "scrolllock"))
      _setflag(bFlag, VK_SCRLLOCK+1, SCROLLLOCK_ON);
    else
      _error(argv[w]);

  _writestate();
 
  return 0;
}
Esempio n. 2
0
std::string CSvnController::log(const std::string& strURL, int nLimit, bool bXML, bool bVerbose)
{
	std::string _log;
	_log += log(strURL);
	_log += _limit(nLimit);

	if (bXML)
		_log += _xml();

	if (bVerbose)
		_log += _verbose();

	return _log;
	//return dispatchToString(_log);
}
Esempio n. 3
0
std::string CSvnController::log(const std::string& strURL, bool bXML, bool bVerbose, int nStartRev, int nEndRev)
{
	std::string _log;
	_log += log(strURL);
	_log += _revision(nStartRev, nEndRev);

	if (bXML)
		_log += _xml();

	if (bVerbose)
		_log += _verbose();

	return _log;
	//return dispatchToString(_log);
}
Esempio n. 4
0
std::string CSvnController::log(const std::string& strURL, bool bXML, bool bVerbose, const std::vector<int>& vecRevisions)
{
	std::string _log;
	_log += log(strURL);

	for (unsigned int i = 0; i < vecRevisions.size(); ++i)
		_log += _revision(vecRevisions[i]);

	if (bXML)
		_log += _xml();

	if (bVerbose)
		_log += _verbose();

	return _log;
}