fputs(aURLSpec, stdout); printf("\n");
if (!g_bHitTop) {  PRInt32 nCount = g_duplicateList->Count(); if (nCount > 0) { for (PRInt32 n = 0; n < nCount; n++) { nsString * pstr = (nsString *)g_duplicateList->ElementAt(n); if (pstr->Equals(aURLSpec)) { fputs ("DR: (duplicate found '",stdout); fputs (aURLSpec,stdout); fputs ("')\n",stdout); return NS_OK; } } } g_duplicateList->AppendElement(new nsString(aURLSpec)); nsAutoString str; str.Truncate(); nsString(aURLSpec).Left(str,5); if (str.Equals("http:")) { char str_num[25]; g_iProcessed++; if (g_iProcessed == g_iMaxProcess) g_bHitTop = PR_TRUE; sprintf(str_num, "%d", g_iProcessed); g_workList->AppendElement(new nsString(aURLSpec)); fputs("DebugRobot ",stdout); fputs(str_num, stdout); fputs(": ",stdout); fputs(aURLSpec,stdout); fputs("\n", stdout); } else { fputs ("DR: (cannot process URL types '",stdout); fputs (aURLSpec,stdout); fputs ("')\n",stdout); } }
NS_IMETHODIMP RobotSinkObserver::ProcessLink(const nsString& aURLSpec){  fputs(aURLSpec, stdout);  printf("\n");  return NS_OK;}