deblistparser.cc 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. // $Id: deblistparser.cc,v 1.29.2.5 2004/01/06 01:43:44 mdz Exp $
  4. /* ######################################################################
  5. Package Cache Generator - Generator for the cache structure.
  6. This builds the cache structure from the abstract package list parser.
  7. ##################################################################### */
  8. /*}}}*/
  9. // Include Files /*{{{*/
  10. #include <apt-pkg/deblistparser.h>
  11. #include <apt-pkg/error.h>
  12. #include <apt-pkg/configuration.h>
  13. #include <apt-pkg/strutl.h>
  14. #include <apt-pkg/crc-16.h>
  15. #include <apt-pkg/md5.h>
  16. #include <ctype.h>
  17. #include <system.h>
  18. /*}}}*/
  19. static debListParser::WordList PrioList[] = {{"important",pkgCache::State::Important},
  20. {"required",pkgCache::State::Required},
  21. {"standard",pkgCache::State::Standard},
  22. {"optional",pkgCache::State::Optional},
  23. {"extra",pkgCache::State::Extra},
  24. {}};
  25. // ListParser::debListParser - Constructor /*{{{*/
  26. // ---------------------------------------------------------------------
  27. /* */
  28. debListParser::debListParser(FileFd *File) : Tags(File)
  29. {
  30. Arch = _config->Find("APT::architecture");
  31. }
  32. /*}}}*/
  33. // ListParser::UniqFindTagWrite - Find the tag and write a unq string /*{{{*/
  34. // ---------------------------------------------------------------------
  35. /* */
  36. unsigned long debListParser::UniqFindTagWrite(const char *Tag)
  37. {
  38. const char *Start;
  39. const char *Stop;
  40. if (Section.Find(Tag,Start,Stop) == false)
  41. return 0;
  42. return WriteUniqString(Start,Stop - Start);
  43. }
  44. /*}}}*/
  45. // ListParser::Package - Return the package name /*{{{*/
  46. // ---------------------------------------------------------------------
  47. /* This is to return the name of the package this section describes */
  48. string debListParser::Package()
  49. {
  50. string Result = Section.FindS("Package");
  51. if (Result.empty() == true)
  52. _error->Error("Encountered a section with no Package: header");
  53. return Result;
  54. }
  55. /*}}}*/
  56. // ListParser::Version - Return the version string /*{{{*/
  57. // ---------------------------------------------------------------------
  58. /* This is to return the string describing the version in debian form,
  59. epoch:upstream-release. If this returns the blank string then the
  60. entry is assumed to only describe package properties */
  61. string debListParser::Version()
  62. {
  63. return Section.FindS("Version");
  64. }
  65. /*}}}*/
  66. // ListParser::NewVersion - Fill in the version structure /*{{{*/
  67. // ---------------------------------------------------------------------
  68. /* */
  69. bool debListParser::NewVersion(pkgCache::VerIterator Ver)
  70. {
  71. // Parse the section
  72. Ver->Section = UniqFindTagWrite("Section");
  73. Ver->Arch = UniqFindTagWrite("Architecture");
  74. // Archive Size
  75. Ver->Size = (unsigned)Section.FindI("Size");
  76. // Unpacked Size (in K)
  77. Ver->InstalledSize = (unsigned)Section.FindI("Installed-Size");
  78. Ver->InstalledSize *= 1024;
  79. // Priority
  80. const char *Start;
  81. const char *Stop;
  82. if (Section.Find("Priority",Start,Stop) == true)
  83. {
  84. if (GrabWord(string(Start,Stop-Start),PrioList,Ver->Priority) == false)
  85. Ver->Priority = pkgCache::State::Extra;
  86. }
  87. if (ParseDepends(Ver,"Depends",pkgCache::Dep::Depends) == false)
  88. return false;
  89. if (ParseDepends(Ver,"Pre-Depends",pkgCache::Dep::PreDepends) == false)
  90. return false;
  91. if (ParseDepends(Ver,"Suggests",pkgCache::Dep::Suggests) == false)
  92. return false;
  93. if (ParseDepends(Ver,"Recommends",pkgCache::Dep::Recommends) == false)
  94. return false;
  95. if (ParseDepends(Ver,"Conflicts",pkgCache::Dep::Conflicts) == false)
  96. return false;
  97. if (ParseDepends(Ver,"Breaks",pkgCache::Dep::DpkgBreaks) == false)
  98. return false;
  99. if (ParseDepends(Ver,"Replaces",pkgCache::Dep::Replaces) == false)
  100. return false;
  101. if (ParseDepends(Ver,"Enhances",pkgCache::Dep::Enhances) == false)
  102. return false;
  103. // Obsolete.
  104. if (ParseDepends(Ver,"Optional",pkgCache::Dep::Suggests) == false)
  105. return false;
  106. if (ParseProvides(Ver) == false)
  107. return false;
  108. return true;
  109. }
  110. /*}}}*/
  111. // ListParser::Description - Return the description string /*{{{*/
  112. // ---------------------------------------------------------------------
  113. /* This is to return the string describing the package in debian
  114. form. If this returns the blank string then the entry is assumed to
  115. only describe package properties */
  116. string debListParser::Description()
  117. {
  118. if (DescriptionLanguage().empty())
  119. return Section.FindS("Description");
  120. else
  121. return Section.FindS(("Description-" + pkgIndexFile::LanguageCode()).c_str());
  122. }
  123. /*}}}*/
  124. // ListParser::DescriptionLanguage - Return the description lang string /*{{{*/
  125. // ---------------------------------------------------------------------
  126. /* This is to return the string describing the language of
  127. description. If this returns the blank string then the entry is
  128. assumed to describe original description. */
  129. string debListParser::DescriptionLanguage()
  130. {
  131. return Section.FindS("Description").empty() ? pkgIndexFile::LanguageCode() : "";
  132. }
  133. /*}}}*/
  134. // ListParser::Description - Return the description_md5 MD5SumValue /*{{{*/
  135. // ---------------------------------------------------------------------
  136. /* This is to return the md5 string to allow the check if it is the right
  137. description. If no Description-md5 is found in the section it will be
  138. calculated.
  139. */
  140. MD5SumValue debListParser::Description_md5()
  141. {
  142. string value = Section.FindS("Description-md5");
  143. if (value.empty())
  144. {
  145. MD5Summation md5;
  146. md5.Add((Description() + "\n").c_str());
  147. return md5.Result();
  148. } else
  149. return MD5SumValue(value);
  150. }
  151. /*}}}*/
  152. // ListParser::UsePackage - Update a package structure /*{{{*/
  153. // ---------------------------------------------------------------------
  154. /* This is called to update the package with any new information
  155. that might be found in the section */
  156. bool debListParser::UsePackage(pkgCache::PkgIterator Pkg,
  157. pkgCache::VerIterator Ver)
  158. {
  159. if (Pkg->Section == 0)
  160. Pkg->Section = UniqFindTagWrite("Section");
  161. if (Section.FindFlag("Essential",Pkg->Flags,pkgCache::Flag::Essential) == false)
  162. return false;
  163. if (Section.FindFlag("Important",Pkg->Flags,pkgCache::Flag::Important) == false)
  164. return false;
  165. if (strcmp(Pkg.Name(),"apt") == 0)
  166. Pkg->Flags |= pkgCache::Flag::Important;
  167. if (ParseStatus(Pkg,Ver) == false)
  168. return false;
  169. return true;
  170. }
  171. /*}}}*/
  172. // ListParser::VersionHash - Compute a unique hash for this version /*{{{*/
  173. // ---------------------------------------------------------------------
  174. /* */
  175. unsigned short debListParser::VersionHash()
  176. {
  177. const char *Sections[] ={"Installed-Size",
  178. "Depends",
  179. "Pre-Depends",
  180. // "Suggests",
  181. // "Recommends",
  182. "Conflicts",
  183. "Breaks",
  184. "Replaces",0};
  185. unsigned long Result = INIT_FCS;
  186. char S[1024];
  187. for (const char **I = Sections; *I != 0; I++)
  188. {
  189. const char *Start;
  190. const char *End;
  191. if (Section.Find(*I,Start,End) == false || End - Start >= (signed)sizeof(S))
  192. continue;
  193. /* Strip out any spaces from the text, this undoes dpkgs reformatting
  194. of certain fields. dpkg also has the rather interesting notion of
  195. reformatting depends operators < -> <= */
  196. char *I = S;
  197. for (; Start != End; Start++)
  198. {
  199. if (isspace(*Start) == 0)
  200. *I++ = tolower_ascii(*Start);
  201. if (*Start == '<' && Start[1] != '<' && Start[1] != '=')
  202. *I++ = '=';
  203. if (*Start == '>' && Start[1] != '>' && Start[1] != '=')
  204. *I++ = '=';
  205. }
  206. Result = AddCRC16(Result,S,I - S);
  207. }
  208. return Result;
  209. }
  210. /*}}}*/
  211. // ListParser::ParseStatus - Parse the status field /*{{{*/
  212. // ---------------------------------------------------------------------
  213. /* Status lines are of the form,
  214. Status: want flag status
  215. want = unknown, install, hold, deinstall, purge
  216. flag = ok, reinstreq, hold, hold-reinstreq
  217. status = not-installed, unpacked, half-configured,
  218. half-installed, config-files, post-inst-failed,
  219. removal-failed, installed
  220. Some of the above are obsolete (I think?) flag = hold-* and
  221. status = post-inst-failed, removal-failed at least.
  222. */
  223. bool debListParser::ParseStatus(pkgCache::PkgIterator Pkg,
  224. pkgCache::VerIterator Ver)
  225. {
  226. const char *Start;
  227. const char *Stop;
  228. if (Section.Find("Status",Start,Stop) == false)
  229. return true;
  230. // Isolate the first word
  231. const char *I = Start;
  232. for(; I < Stop && *I != ' '; I++);
  233. if (I >= Stop || *I != ' ')
  234. return _error->Error("Malformed Status line");
  235. // Process the want field
  236. WordList WantList[] = {{"unknown",pkgCache::State::Unknown},
  237. {"install",pkgCache::State::Install},
  238. {"hold",pkgCache::State::Hold},
  239. {"deinstall",pkgCache::State::DeInstall},
  240. {"purge",pkgCache::State::Purge},
  241. {}};
  242. if (GrabWord(string(Start,I-Start),WantList,Pkg->SelectedState) == false)
  243. return _error->Error("Malformed 1st word in the Status line");
  244. // Isloate the next word
  245. I++;
  246. Start = I;
  247. for(; I < Stop && *I != ' '; I++);
  248. if (I >= Stop || *I != ' ')
  249. return _error->Error("Malformed status line, no 2nd word");
  250. // Process the flag field
  251. WordList FlagList[] = {{"ok",pkgCache::State::Ok},
  252. {"reinstreq",pkgCache::State::ReInstReq},
  253. {"hold",pkgCache::State::HoldInst},
  254. {"hold-reinstreq",pkgCache::State::HoldReInstReq},
  255. {}};
  256. if (GrabWord(string(Start,I-Start),FlagList,Pkg->InstState) == false)
  257. return _error->Error("Malformed 2nd word in the Status line");
  258. // Isloate the last word
  259. I++;
  260. Start = I;
  261. for(; I < Stop && *I != ' '; I++);
  262. if (I != Stop)
  263. return _error->Error("Malformed Status line, no 3rd word");
  264. // Process the flag field
  265. WordList StatusList[] = {{"not-installed",pkgCache::State::NotInstalled},
  266. {"unpacked",pkgCache::State::UnPacked},
  267. {"half-configured",pkgCache::State::HalfConfigured},
  268. {"installed",pkgCache::State::Installed},
  269. {"half-installed",pkgCache::State::HalfInstalled},
  270. {"config-files",pkgCache::State::ConfigFiles},
  271. {"triggers-awaited",pkgCache::State::TriggersAwaited},
  272. {"triggers-pending",pkgCache::State::TriggersPending},
  273. {"post-inst-failed",pkgCache::State::HalfConfigured},
  274. {"removal-failed",pkgCache::State::HalfInstalled},
  275. {}};
  276. if (GrabWord(string(Start,I-Start),StatusList,Pkg->CurrentState) == false)
  277. return _error->Error("Malformed 3rd word in the Status line");
  278. /* A Status line marks the package as indicating the current
  279. version as well. Only if it is actually installed.. Otherwise
  280. the interesting dpkg handling of the status file creates bogus
  281. entries. */
  282. if (!(Pkg->CurrentState == pkgCache::State::NotInstalled ||
  283. Pkg->CurrentState == pkgCache::State::ConfigFiles))
  284. {
  285. if (Ver.end() == true)
  286. _error->Warning("Encountered status field in a non-version description");
  287. else
  288. Pkg->CurrentVer = Ver.Index();
  289. }
  290. return true;
  291. }
  292. const char *debListParser::ConvertRelation(const char *I,unsigned int &Op)
  293. {
  294. // Determine the operator
  295. switch (*I)
  296. {
  297. case '<':
  298. I++;
  299. if (*I == '=')
  300. {
  301. I++;
  302. Op = pkgCache::Dep::LessEq;
  303. break;
  304. }
  305. if (*I == '<')
  306. {
  307. I++;
  308. Op = pkgCache::Dep::Less;
  309. break;
  310. }
  311. // < is the same as <= and << is really Cs < for some reason
  312. Op = pkgCache::Dep::LessEq;
  313. break;
  314. case '>':
  315. I++;
  316. if (*I == '=')
  317. {
  318. I++;
  319. Op = pkgCache::Dep::GreaterEq;
  320. break;
  321. }
  322. if (*I == '>')
  323. {
  324. I++;
  325. Op = pkgCache::Dep::Greater;
  326. break;
  327. }
  328. // > is the same as >= and >> is really Cs > for some reason
  329. Op = pkgCache::Dep::GreaterEq;
  330. break;
  331. case '=':
  332. Op = pkgCache::Dep::Equals;
  333. I++;
  334. break;
  335. // HACK around bad package definitions
  336. default:
  337. Op = pkgCache::Dep::Equals;
  338. break;
  339. }
  340. return I;
  341. }
  342. /*}}}*/
  343. // ListParser::ParseDepends - Parse a dependency element /*{{{*/
  344. // ---------------------------------------------------------------------
  345. /* This parses the dependency elements out of a standard string in place,
  346. bit by bit. */
  347. const char *debListParser::ParseDepends(const char *Start,const char *Stop,
  348. string &Package,string &Ver,
  349. unsigned int &Op, bool ParseArchFlags)
  350. {
  351. // Strip off leading space
  352. for (;Start != Stop && isspace(*Start) != 0; Start++);
  353. // Parse off the package name
  354. const char *I = Start;
  355. for (;I != Stop && isspace(*I) == 0 && *I != '(' && *I != ')' &&
  356. *I != ',' && *I != '|'; I++);
  357. // Malformed, no '('
  358. if (I != Stop && *I == ')')
  359. return 0;
  360. if (I == Start)
  361. return 0;
  362. // Stash the package name
  363. Package.assign(Start,I - Start);
  364. // Skip white space to the '('
  365. for (;I != Stop && isspace(*I) != 0 ; I++);
  366. // Parse a version
  367. if (I != Stop && *I == '(')
  368. {
  369. // Skip the '('
  370. for (I++; I != Stop && isspace(*I) != 0 ; I++);
  371. if (I + 3 >= Stop)
  372. return 0;
  373. I = ConvertRelation(I,Op);
  374. // Skip whitespace
  375. for (;I != Stop && isspace(*I) != 0; I++);
  376. Start = I;
  377. for (;I != Stop && *I != ')'; I++);
  378. if (I == Stop || Start == I)
  379. return 0;
  380. // Skip trailing whitespace
  381. const char *End = I;
  382. for (; End > Start && isspace(End[-1]); End--);
  383. Ver.assign(Start,End-Start);
  384. I++;
  385. }
  386. else
  387. {
  388. Ver.clear();
  389. Op = pkgCache::Dep::NoOp;
  390. }
  391. // Skip whitespace
  392. for (;I != Stop && isspace(*I) != 0; I++);
  393. if (ParseArchFlags == true)
  394. {
  395. string arch = _config->Find("APT::Architecture");
  396. // Parse an architecture
  397. if (I != Stop && *I == '[')
  398. {
  399. // malformed
  400. I++;
  401. if (I == Stop)
  402. return 0;
  403. const char *End = I;
  404. bool Found = false;
  405. bool NegArch = false;
  406. while (I != Stop)
  407. {
  408. // look for whitespace or ending ']'
  409. while (End != Stop && !isspace(*End) && *End != ']')
  410. End++;
  411. if (End == Stop)
  412. return 0;
  413. if (*I == '!')
  414. {
  415. NegArch = true;
  416. I++;
  417. }
  418. if (stringcmp(arch,I,End) == 0)
  419. Found = true;
  420. if (*End++ == ']') {
  421. I = End;
  422. break;
  423. }
  424. I = End;
  425. for (;I != Stop && isspace(*I) != 0; I++);
  426. }
  427. if (NegArch)
  428. Found = !Found;
  429. if (Found == false)
  430. Package = ""; /* not for this arch */
  431. }
  432. // Skip whitespace
  433. for (;I != Stop && isspace(*I) != 0; I++);
  434. }
  435. if (I != Stop && *I == '|')
  436. Op |= pkgCache::Dep::Or;
  437. if (I == Stop || *I == ',' || *I == '|')
  438. {
  439. if (I != Stop)
  440. for (I++; I != Stop && isspace(*I) != 0; I++);
  441. return I;
  442. }
  443. return 0;
  444. }
  445. /*}}}*/
  446. // ListParser::ParseDepends - Parse a dependency list /*{{{*/
  447. // ---------------------------------------------------------------------
  448. /* This is the higher level depends parser. It takes a tag and generates
  449. a complete depends tree for the given version. */
  450. bool debListParser::ParseDepends(pkgCache::VerIterator Ver,
  451. const char *Tag,unsigned int Type)
  452. {
  453. const char *Start;
  454. const char *Stop;
  455. if (Section.Find(Tag,Start,Stop) == false)
  456. return true;
  457. string Package;
  458. string Version;
  459. unsigned int Op;
  460. while (1)
  461. {
  462. Start = ParseDepends(Start,Stop,Package,Version,Op);
  463. if (Start == 0)
  464. return _error->Error("Problem parsing dependency %s",Tag);
  465. if (NewDepends(Ver,Package,Version,Op,Type) == false)
  466. return false;
  467. if (Start == Stop)
  468. break;
  469. }
  470. return true;
  471. }
  472. /*}}}*/
  473. // ListParser::ParseProvides - Parse the provides list /*{{{*/
  474. // ---------------------------------------------------------------------
  475. /* */
  476. bool debListParser::ParseProvides(pkgCache::VerIterator Ver)
  477. {
  478. const char *Start;
  479. const char *Stop;
  480. if (Section.Find("Provides",Start,Stop) == false)
  481. return true;
  482. string Package;
  483. string Version;
  484. unsigned int Op;
  485. while (1)
  486. {
  487. Start = ParseDepends(Start,Stop,Package,Version,Op);
  488. if (Start == 0)
  489. return _error->Error("Problem parsing Provides line");
  490. if (Op != pkgCache::Dep::NoOp) {
  491. _error->Warning("Ignoring Provides line with DepCompareOp for package %s", Package.c_str());
  492. } else {
  493. if (NewProvides(Ver,Package,Version) == false)
  494. return false;
  495. }
  496. if (Start == Stop)
  497. break;
  498. }
  499. return true;
  500. }
  501. /*}}}*/
  502. // ListParser::GrabWord - Matches a word and returns /*{{{*/
  503. // ---------------------------------------------------------------------
  504. /* Looks for a word in a list of words - for ParseStatus */
  505. bool debListParser::GrabWord(string Word,WordList *List,unsigned char &Out)
  506. {
  507. for (unsigned int C = 0; List[C].Str != 0; C++)
  508. {
  509. if (strcasecmp(Word.c_str(),List[C].Str) == 0)
  510. {
  511. Out = List[C].Val;
  512. return true;
  513. }
  514. }
  515. return false;
  516. }
  517. /*}}}*/
  518. // ListParser::Step - Move to the next section in the file /*{{{*/
  519. // ---------------------------------------------------------------------
  520. /* This has to be carefull to only process the correct architecture */
  521. bool debListParser::Step()
  522. {
  523. iOffset = Tags.Offset();
  524. while (Tags.Step(Section) == true)
  525. {
  526. /* See if this is the correct Architecture, if it isn't then we
  527. drop the whole section. A missing arch tag only happens (in theory)
  528. inside the Status file, so that is a positive return */
  529. const char *Start;
  530. const char *Stop;
  531. if (Section.Find("Architecture",Start,Stop) == false)
  532. return true;
  533. if (stringcmp(Arch,Start,Stop) == 0)
  534. return true;
  535. if (stringcmp(Start,Stop,"all") == 0)
  536. return true;
  537. iOffset = Tags.Offset();
  538. }
  539. return false;
  540. }
  541. /*}}}*/
  542. // ListParser::LoadReleaseInfo - Load the release information /*{{{*/
  543. // ---------------------------------------------------------------------
  544. /* */
  545. bool debListParser::LoadReleaseInfo(pkgCache::PkgFileIterator FileI,
  546. FileFd &File, string component)
  547. {
  548. pkgTagFile Tags(&File, File.Size() + 256); // XXX
  549. pkgTagSection Section;
  550. if (Tags.Step(Section) == false)
  551. return false;
  552. //mvo: I don't think we need to fill that in (it's unused since apt-0.6)
  553. //FileI->Architecture = WriteUniqString(Arch);
  554. // apt-secure does no longer download individual (per-section) Release
  555. // file. to provide Component pinning we use the section name now
  556. FileI->Component = WriteUniqString(component);
  557. const char *Start;
  558. const char *Stop;
  559. if (Section.Find("Suite",Start,Stop) == true)
  560. FileI->Archive = WriteUniqString(Start,Stop - Start);
  561. if (Section.Find("Component",Start,Stop) == true)
  562. FileI->Component = WriteUniqString(Start,Stop - Start);
  563. if (Section.Find("Version",Start,Stop) == true)
  564. FileI->Version = WriteUniqString(Start,Stop - Start);
  565. if (Section.Find("Origin",Start,Stop) == true)
  566. FileI->Origin = WriteUniqString(Start,Stop - Start);
  567. if (Section.Find("Codename",Start,Stop) == true)
  568. FileI->Codename = WriteUniqString(Start,Stop - Start);
  569. if (Section.Find("Label",Start,Stop) == true)
  570. FileI->Label = WriteUniqString(Start,Stop - Start);
  571. if (Section.Find("Architecture",Start,Stop) == true)
  572. FileI->Architecture = WriteUniqString(Start,Stop - Start);
  573. if (Section.FindFlag("NotAutomatic",FileI->Flags,
  574. pkgCache::Flag::NotAutomatic) == false)
  575. _error->Warning("Bad NotAutomatic flag");
  576. return !_error->PendingError();
  577. }
  578. /*}}}*/
  579. // ListParser::GetPrio - Convert the priority from a string /*{{{*/
  580. // ---------------------------------------------------------------------
  581. /* */
  582. unsigned char debListParser::GetPrio(string Str)
  583. {
  584. unsigned char Out;
  585. if (GrabWord(Str,PrioList,Out) == false)
  586. Out = pkgCache::State::Extra;
  587. return Out;
  588. }
  589. /*}}}*/