free(wcs);
}
#endif
-#if 0
(((IcccmAgent*)ia)->*f_string_handler)((char*)value, *length);
-#else
- (((IcccmAgent*)f_real_object)->*f_string_handler)((char*)value, *length);
-#endif
XtFree((char*)value);
}
else if (*type == XA_COMPOUND_TEXT(XtDisplay(w))) {
*((char *) memcpy(mbs, string_list[i], len) + len) = '\0';
}
XwcFreeStringList((wchar_t**)string_list);
-#if 0
(((IcccmAgent*)ia)->*f_string_handler)(mbs, strlen(mbs));
-#else
- (((IcccmAgent*)f_real_object)->*f_string_handler)(mbs, strlen(mbs));
-#endif
free((void*)mbs);
}
else {
int
QueryGroup::format (query_type_t query_type, QueryTerm *term)
{
- char *s = (char*)"\001s", *tmp;
+ char *s = strdup("\001s"), *tmp;
// Need two buffers for alternating writes.
// Allocate a buffer with enough room for term plus operators.
static char *buf[2];
UAS_String msg(CATGETS(Set_DtSR_SearchEngine, 1,
"DtSearch does not support the query."));
DtSearchFreeMessages();
+
+ if (current_bc != 0) {
+ targets.remove(current_bc);
+ current_bc = NULL;
+ }
throw(CASTUASEXCEPT UAS_Exception(msg));
continue;
UAS_Pointer<DtSR_Stems> stems = bookcases[index]->takeover_stems();
UAS_Pointer<UAS_String> q = new UAS_String(oql);
- UAS_Pointer<UAS_String> n = new UAS_String(scope.name());
+ UAS_Pointer<UAS_String> s = new UAS_String(scope.name());
UAS_Pointer<DtSR_SearchResults> DtSR_res =
- new DtSR_SearchResults(q, n, res, res->length(),
+ new DtSR_SearchResults(q, s, res, res->length(),
stems, scope.search_zones(), stype);
if (DtSR_result == (int)0)
len = MIN(strlen(gStruct->id), MAXPATHLEN);
*((char *) memcpy (idBuf, gStruct->id, len) + len) = '\0';
len = MIN(strlen(gStruct->title), MAXPATHLEN);
- *((char *) memcpy (titleBuf, gStruct->id, len) + len) = '\0';
+ *((char *) memcpy (titleBuf, gStruct->title, len) + len) = '\0';
if (checkStat(gStruct->outFile, FSTAT_IS_FILE))
{