Team Ai
Datasetpublic

hschumann2/TempleOS-Source-Code

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes847downloads
ToDolDoc.txt21 linesDownload Raw Back to Utils
1 2#help_index "Cmd Line (Typically);DolDoc/Conversion;DolDoc/Cmd Line (Typically)"3 4public U0 ToDolDoc(U8 *files_find_mask,U8 *fu_flags=NULL)5{//Convert text file to DolDoc by making double $'s.6  CDoc *doc;7  I64 fuf_flags=0;8  CDirEntry *tmpde,*tmpde1;9  ScanFlags(&fuf_flags,Define("ST_FILE_UTIL_FLAGS"),"+r+f+F");10  ScanFlags(&fuf_flags,Define("ST_FILE_UTIL_FLAGS"),fu_flags);11  tmpde=tmpde1=FilesFind(files_find_mask,fuf_flags);12  while (tmpde) {13    "%s\n",tmpde->full_name;14    doc=DocRead(tmpde->full_name,DOCF_PLAIN_TEXT|DOCF_DBL_DOLLARS);15    DocWrite(doc);16    DocDel(doc);17    tmpde=tmpde->next;18  }19  DirTreeDel(tmpde1);20}21