home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume17 / tcl-editor / part08 / funcdecl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-18  |  17.5 KB  |  1,218 lines

  1. /* $Header: /nfs/unmvax/faculty/crowley/x/pt/RCS/funcdecl.h,v 1.13 1992/03/04 17:07:18 crowley Exp crowley $ */
  2.  
  3. #ifdef HYPERTEXT
  4. /* in anaDialogs.c */
  5. PickListItem * GenerateIDList(
  6. #ifdef ANSI_PROTOTYPES
  7.     ID id_in, MagicNumber magic
  8. #endif
  9. );
  10. void FreeIDList(
  11. #ifdef ANSI_PROTOTYPES
  12.     PickListItem * itemList
  13. #endif
  14. );
  15. AttributeID PickAttribute(
  16. #ifdef ANSI_PROTOTYPES
  17. Document, char *
  18. #endif
  19. );
  20. LinkID PickLink(
  21. #ifdef ANSI_PROTOTYPES
  22. Document, char *
  23. #endif
  24. );
  25. BlockID PickBlock(
  26. #ifdef ANSI_PROTOTYPES
  27. Document, char *
  28. #endif
  29. );
  30. FileID PickFile(
  31. #ifdef ANSI_PROTOTYPES
  32. Document, char *
  33. #endif
  34. );
  35. TextID PickText(
  36. #ifdef ANSI_PROTOTYPES
  37. Document, char *
  38. #endif
  39. );
  40. MapID PickMap(
  41. #ifdef ANSI_PROTOTYPES
  42. Document, char *
  43. #endif
  44. );
  45. ViewID PickView(
  46. #ifdef ANSI_PROTOTYPES
  47. Document, char *
  48. #endif
  49. );
  50.  
  51. /* in anaObjects.c */
  52. DBM * OpenObjects(
  53. #ifdef ANSI_PROTOTYPES
  54. String
  55. #endif
  56. );
  57. void CloseObjects(
  58. #ifdef ANSI_PROTOTYPES
  59. DBM *
  60. #endif
  61. );
  62. void DumpDB(
  63. #ifdef ANSI_PROTOTYPES
  64. DBM *
  65. #endif
  66. );
  67. AnaObject GetObject(
  68. #ifdef ANSI_PROTOTYPES
  69. DBM *, MagicNumber, ID, AllocationMode
  70. #endif
  71. );
  72. void PutObject(
  73. #ifdef ANSI_PROTOTYPES
  74. DBM *, MagicNumber, AnaObject, ReleaseMode
  75. #endif
  76. );
  77. Block GetBlock(
  78. #ifdef ANSI_PROTOTYPES
  79. DBM *, BlockID, AllocationMode
  80. #endif
  81. );
  82. void PutBlock(
  83. #ifdef ANSI_PROTOTYPES
  84. DBM *, Block, ReleaseMode
  85. #endif
  86. );
  87. Attribute GetAttribute(
  88. #ifdef ANSI_PROTOTYPES
  89. DBM *, AttributeID, AllocationMode
  90. #endif
  91. );
  92. void PutAttribute(
  93. #ifdef ANSI_PROTOTYPES
  94. DBM *, Attribute, ReleaseMode
  95. #endif
  96. );
  97. Map GetMap(
  98. #ifdef ANSI_PROTOTYPES
  99. DBM *, MapID, AllocationMode
  100. #endif
  101. );
  102. void PutMap(
  103. #ifdef ANSI_PROTOTYPES
  104. DBM *, Map, ReleaseMode
  105. #endif
  106. );
  107. File GetFile(
  108. #ifdef ANSI_PROTOTYPES
  109. DBM *, FileID, AllocationMode
  110. #endif
  111. );
  112. void PutFile(
  113. #ifdef ANSI_PROTOTYPES
  114. DBM *, File, ReleaseMode
  115. #endif
  116. );
  117. Text GetText(
  118. #ifdef ANSI_PROTOTYPES
  119. DBM *, TextID, AllocationMode
  120. #endif
  121. );
  122. void PutText(
  123. #ifdef ANSI_PROTOTYPES
  124. DBM *, Text, ReleaseMode
  125. #endif
  126. );
  127. Link GetLink(
  128. #ifdef ANSI_PROTOTYPES
  129. DBM *, LinkID, AllocationMode
  130. #endif
  131. );
  132. void PutLink(
  133. #ifdef ANSI_PROTOTYPES
  134. DBM *, Link, ReleaseMode
  135. #endif
  136. );
  137. View GetView(
  138. #ifdef ANSI_PROTOTYPES
  139. DBM *, ViewID, AllocationMode
  140. #endif
  141. );
  142. void PutView(
  143. #ifdef ANSI_PROTOTYPES
  144. DBM *, View, ReleaseMode
  145. #endif
  146. );
  147. Document GetDocument(
  148. #ifdef ANSI_PROTOTYPES
  149. DBM *, DocumentID, AllocationMode
  150. #endif
  151. );
  152. void PutDocument(
  153. #ifdef ANSI_PROTOTYPES
  154. DBM *, Document, ReleaseMode
  155. #endif
  156. );
  157. Block CreateBlock(
  158. #ifdef ANSI_PROTOTYPES
  159. DBM *, Document, char *, AttributeID, Offset, FileID
  160. #endif
  161. );
  162. Attribute CreateAttribute(
  163. #ifdef ANSI_PROTOTYPES
  164. DBM *, Document, char *
  165. #endif
  166. );
  167. AttributeID LookupAttributeByName(
  168. #ifdef ANSI_PROTOTYPES
  169. DBM *, Document, char *
  170. #endif
  171. );
  172. Map CreateMap(
  173. #ifdef ANSI_PROTOTYPES
  174. DBM *, Document, char *
  175. #endif
  176. );
  177. MapID LookupMapByName(
  178. #ifdef ANSI_PROTOTYPES
  179. DBM *, Document, char *
  180. #endif
  181. );
  182. Link CreateLink(
  183. #ifdef ANSI_PROTOTYPES
  184. DBM *, Document, char *, AttributeID, BlockID, BlockID
  185. #endif
  186. );
  187. File CreateFile(
  188. #ifdef ANSI_PROTOTYPES
  189. DBM *, Document document, char * name
  190. #endif
  191. );
  192. FileID LookupFileByName(
  193. #ifdef ANSI_PROTOTYPES
  194. DBM * db, Document, char *
  195. #endif
  196. );
  197. Text CreateText(
  198. #ifdef ANSI_PROTOTYPES
  199. DBM *, Document, char *
  200. #endif
  201. );
  202. View CreateView(
  203. #ifdef ANSI_PROTOTYPES
  204. DBM *, Document, char *, BlockID, MapID, MapID, MapID
  205. #endif
  206. );
  207. Document CreateDocument(
  208. #ifdef ANSI_PROTOTYPES
  209. DBM *, char *
  210. #endif
  211. );
  212.  
  213. /* in anaSources.c */
  214. int GetRealSelection(
  215. #ifdef ANSI_PROTOTYPES
  216. struct openFile *, int
  217. #endif
  218. );
  219. void InitHypertext(
  220. #ifdef ANSI_PROTOTYPES
  221. void
  222. #endif
  223. );
  224. void CloseHypertext(
  225. #ifdef ANSI_PROTOTYPES
  226. void
  227. #endif
  228. );
  229. void DumpPieces(
  230. #ifdef ANSI_PROTOTYPES
  231. struct window *w
  232. #endif
  233. );
  234. void DumpRealPieces(
  235. #ifdef ANSI_PROTOTYPES
  236. struct window *w
  237. #endif
  238. );
  239. void DumpTables(
  240. #ifdef ANSI_PROTOTYPES
  241. void
  242. #endif
  243. );
  244. void PrintPieceChain(
  245. #ifdef ANSI_PROTOTYPES
  246. char *, Piece
  247. #endif
  248. );
  249. void SeparateBlockMarkers(
  250. #ifdef ANSI_PROTOTYPES
  251. struct window *w
  252. #endif
  253. );
  254. Offset ReadBlockMarker(
  255. #ifdef ANSI_PROTOTYPES
  256. int fid, Offset pos, BlockID * blockID,    unsigned int * flags
  257. #endif
  258. );
  259. Offset FindBlock(
  260. #ifdef ANSI_PROTOTYPES
  261. BlockID blockID, int fid
  262. #endif
  263. );
  264. Offset SkipToEndOfBlock(
  265. #ifdef ANSI_PROTOTYPES
  266. int fid, Offset pos, BlockID endBlockID
  267. #endif
  268. );
  269. void CreateViewPieceTable(
  270. #ifdef ANSI_PROTOTYPES
  271. struct window *w, struct openFile *ff
  272. #endif
  273. );
  274. Offset ProcessOneBlock(
  275. #ifdef ANSI_PROTOTYPES
  276. BlockID blockID, struct window *, Offset offset, Piece *, Piece *
  277. #endif
  278. );
  279. void CreateSpanPieces(
  280. #ifdef ANSI_PROTOTYPES
  281. BlockID blockID, int fid, Offset begin, Offset end, Piece *, Piece *
  282. #endif
  283. );
  284. Offset CreatePieceTableForBlock(
  285. #ifdef ANSI_PROTOTYPES
  286. struct window *, Offset offset, Piece *, Piece *
  287. #endif
  288. );
  289. void FreeOldViewPieces(
  290. #ifdef ANSI_PROTOTYPES
  291.     struct openFile *ff;
  292. #endif
  293. );
  294. int CreateViewFile(
  295. #ifdef ANSI_PROTOTYPES
  296. struct window *w
  297. #endif
  298. );
  299. void AddFileToDocument(
  300. #ifdef ANSI_PROTOTYPES
  301. struct window *w
  302. #endif
  303. );
  304. int InsertBlock(
  305. #ifdef ANSI_PROTOTYPES
  306. unsigned int n
  307. #endif
  308. );
  309. #endif
  310.  
  311. /* in browser.c */
  312. void ReduceUseCount(
  313. #ifdef ANSI_PROTOTYPES
  314. FileListData *
  315. #endif
  316. );
  317. void ptBrowserLetter(
  318. #ifdef ANSI_PROTOTYPES
  319. int, XKeyEvent *, String *, Cardinal *
  320. #endif
  321. );
  322. void ChangeBrowserFontTo(
  323. #ifdef ANSI_PROTOTYPES
  324. BrowserData *, char *
  325. #endif
  326. );
  327. void RaiseListWindow(
  328. #ifdef ANSI_PROTOTYPES
  329. int n, char * geometry
  330. #endif
  331. );
  332. int listComp(
  333. #ifdef ANSI_PROTOTYPES
  334. char *, char *
  335. #endif
  336. );
  337. void NewFilelist(
  338. #ifdef ANSI_PROTOTYPES
  339. BrowserData *
  340. #endif
  341. );
  342. void CreateNewBrowser(
  343. #ifdef ANSI_PROTOTYPES
  344. int, char * geometry
  345. #endif
  346. );
  347. void NewOpenList(
  348. #ifdef ANSI_PROTOTYPES
  349. void
  350. #endif
  351. );
  352. void CreateBigBrowser(
  353. #ifdef ANSI_PROTOTYPES
  354. BrowserData *, char * geometry
  355. #endif
  356. );
  357. void CreateFilelist(
  358. #ifdef ANSI_PROTOTYPES
  359. void
  360. #endif
  361. );
  362.  
  363. /* in buffers.c */
  364. void unlink1(
  365. #ifdef ANSI_PROTOTYPES
  366. struct diskBuffer *
  367. #endif
  368. );
  369. struct diskBuffer * getBuffer(
  370. #ifdef ANSI_PROTOTYPES
  371. int, int
  372. #endif
  373. );
  374. void fidInvalid(
  375. #ifdef ANSI_PROTOTYPES
  376. int, int
  377. #endif
  378. );
  379. int getFileByte(
  380. #ifdef ANSI_PROTOTYPES
  381. int, Offset
  382. #endif
  383. );
  384. void ClearByteCache(
  385. #ifdef ANSI_PROTOTYPES
  386. void
  387. #endif
  388. );
  389. int getCachedFileByte(
  390. #ifdef ANSI_PROTOTYPES
  391. int, Offset
  392. #endif
  393. );
  394. int getSpan(
  395. #ifdef ANSI_PROTOTYPES
  396. int, Offset, unsigned char **, unsigned char **, int
  397. #endif
  398. );
  399. void writeChar(
  400. #ifdef ANSI_PROTOTYPES
  401. int, Offset
  402. #endif
  403. );
  404.  
  405. /* in cmdTable.c */
  406. int FindCommandInTable(
  407. #ifdef ANSI_PROTOTYPES
  408. char *
  409. #endif
  410. );
  411. int GetCommandNumber(
  412. #ifdef ANSI_PROTOTYPES
  413. char *
  414. #endif
  415. );
  416. char * CommandNumberToName(
  417. #ifdef ANSI_PROTOTYPES
  418. int
  419. #endif
  420. );
  421. void AddPointCommands(
  422. #ifdef ANSI_PROTOTYPES
  423. Tcl_Interp *
  424. #endif
  425. );
  426.  
  427. /* in command.c */
  428. void ptSearchLetter(
  429. #ifdef ANSI_PROTOTYPES
  430. int, XKeyEvent *, String *, Cardinal *
  431. #endif
  432. );
  433. void InitCommands(
  434. #ifdef ANSI_PROTOTYPES
  435. void
  436. #endif
  437. );
  438. char * command(
  439. #ifdef ANSI_PROTOTYPES
  440. PointCommand, char *, char *, char *, char *, char *, char *
  441. #endif
  442. );
  443.  
  444. /* in copymove.c */
  445. void updateFile(
  446. #ifdef ANSI_PROTOTYPES
  447. int, Offset, Offset, int
  448. #endif
  449. );
  450. void updateTops(
  451. #ifdef ANSI_PROTOTYPES
  452. int, Offset, Offset, int
  453. #endif
  454. );
  455. void exchWithScrap(
  456. #ifdef ANSI_PROTOTYPES
  457. void
  458. #endif
  459. );
  460. void copyToScrap(
  461. #ifdef ANSI_PROTOTYPES
  462. struct window *, Offset, Offset
  463. #endif
  464. );
  465. void insScrap(
  466. #ifdef ANSI_PROTOTYPES
  467. int, int
  468. #endif
  469. );
  470. void copyMove(
  471. #ifdef ANSI_PROTOTYPES
  472. struct window *, Offset, Offset, struct window *, Offset, int
  473. #endif
  474. );
  475. void copyPieces(
  476. #ifdef ANSI_PROTOTYPES
  477. Piece, struct window *, Offset, Offset, int, int
  478. #endif
  479. );
  480.  
  481. /* in cursor.c */
  482. int cursor(
  483. #ifdef ANSI_PROTOTYPES
  484. char *, char *, int
  485. #endif
  486. );
  487. void doScreenUpdate(
  488. #ifdef ANSI_PROTOTYPES
  489. int, int, int
  490. #endif
  491. );
  492.  
  493. /* dialogs.c */
  494. int DialogBox(
  495. #ifdef ANSI_PROTOTYPES
  496. char *, char *, char *, char *, char *, char *, int *, int
  497. #endif
  498. );
  499.  
  500. /* in display.c */
  501. void drawWindowFast(
  502. #ifdef ANSI_PROTOTYPES
  503. struct window *, int, int, int, int
  504. #endif
  505. );
  506. void drawWindow(
  507. #ifdef ANSI_PROTOTYPES
  508. struct window *
  509. #endif
  510. );
  511. void banner(
  512. #ifdef ANSI_PROTOTYPES
  513. struct window *, int
  514. #endif
  515. );
  516. void SetSlider(
  517. #ifdef ANSI_PROTOTYPES
  518. struct window *, long
  519. #endif
  520. );
  521. void fillWindow(
  522. #ifdef ANSI_PROTOTYPES
  523. struct window *, int, int, int, int
  524. #endif
  525. );
  526. void DrawString(
  527. #ifdef ANSI_PROTOTYPES
  528. void
  529. #endif
  530. );
  531. void CheckForSelection(
  532. #ifdef ANSI_PROTOTYPES
  533. void
  534. #endif
  535. );
  536. Offset fillLine(
  537. #ifdef ANSI_PROTOTYPES
  538. struct window *, Offset, int, int, int, int, int
  539. #endif
  540. );
  541.  
  542. /* in execcmd.c */
  543. void execCmd(
  544. #ifdef ANSI_PROTOTYPES
  545. int
  546. #endif
  547. );
  548.  
  549. /* in fileio.c */
  550. void initFileio(
  551. #ifdef ANSI_PROTOTYPES
  552. void
  553. #endif
  554. );
  555. int getFileId(
  556. #ifdef ANSI_PROTOTYPES
  557. char *
  558. #endif
  559. );
  560. void saveFile(
  561. #ifdef ANSI_PROTOTYPES
  562. struct window *
  563. #endif
  564. );
  565. void writeFile(
  566. #ifdef ANSI_PROTOTYPES
  567. struct window *
  568. #endif
  569. );
  570. int doWrite(
  571. #ifdef ANSI_PROTOTYPES
  572. int, char *
  573. #endif
  574. );
  575. char * makeTempFor(
  576. #ifdef ANSI_PROTOTYPES
  577. char *
  578. #endif
  579. );
  580. Offset fileSize(
  581. #ifdef ANSI_PROTOTYPES
  582. int
  583. #endif
  584. );
  585. int closeFile(
  586. #ifdef ANSI_PROTOTYPES
  587. int, int
  588. #endif
  589. );
  590.  
  591. /* findfiles.c */
  592. char * OldFindMatchingFiles(
  593. #ifdef ANSI_PROTOTYPES
  594. char *, char *
  595. #endif
  596. );
  597. char * FindMatchingFiles(
  598. #ifdef ANSI_PROTOTYPES
  599. char *, char *
  600. #endif
  601. );
  602. char * makeFullPathname(
  603. #ifdef ANSI_PROTOTYPES
  604. char *
  605. #endif
  606. );
  607. int striccmp(
  608. #ifdef ANSI_PROTOTYPES
  609. char *, char *
  610. #endif
  611. );
  612. struct window * findFilenameWindow(
  613. #ifdef ANSI_PROTOTYPES
  614. char *
  615. #endif
  616. );
  617.  
  618. /* in findpos.c */
  619. Offset xyToOffset(
  620. #ifdef ANSI_PROTOTYPES
  621. struct window *, int, int
  622. #endif
  623. );
  624. void OffsetToXY(
  625. #ifdef ANSI_PROTOTYPES
  626. struct window *, Offset, int *, int *
  627. #endif
  628. );
  629. int OffsetToCol(
  630. #ifdef ANSI_PROTOTYPES
  631. struct window *, Offset, Offset
  632. #endif
  633. );
  634.  
  635. /* goto.c */
  636. void matchChar(
  637. #ifdef ANSI_PROTOTYPES
  638. void
  639. #endif
  640. );
  641. void doGoSel(
  642. #ifdef ANSI_PROTOTYPES
  643. struct window *
  644. #endif
  645. );
  646. void doGoto(
  647. #ifdef ANSI_PROTOTYPES
  648. struct window *, int, int
  649. #endif
  650. );
  651.  
  652. /* in help.c */
  653. int help(
  654. #ifdef ANSI_PROTOTYPES
  655. int
  656. #endif
  657. );
  658.  
  659. /* in inschar.c */
  660. void HandleKey(
  661. #ifdef ANSI_PROTOTYPES
  662. int keysym, int state
  663. #endif
  664. );
  665. void insChar(
  666. #ifdef ANSI_PROTOTYPES
  667. int c2, int update
  668. #endif
  669. );
  670. int doAutoIndent(
  671. #ifdef ANSI_PROTOTYPES
  672. void
  673. #endif
  674. );
  675.  
  676. /* in insdel.c */
  677. void insertChar(
  678. #ifdef ANSI_PROTOTYPES
  679. int
  680. #endif
  681. );
  682. int delChar(
  683. #ifdef ANSI_PROTOTYPES
  684. void
  685. #endif
  686. );
  687. void DeleteViewChars(
  688. #ifdef ANSI_PROTOTYPES
  689. void
  690. #endif
  691. );
  692. int deleteChars(
  693. #ifdef ANSI_PROTOTYPES
  694. int, int, int
  695. #endif
  696. );
  697.  
  698. /* keyword.c */
  699. void findKeyword(
  700. #ifdef ANSI_PROTOTYPES
  701. char * keyword
  702. #endif
  703. );
  704.  
  705. /* library.c */
  706. struct window * FindWindowByTkName(
  707. #ifdef ANSI_PROTOTYPES
  708. char * name
  709. #endif
  710. );
  711. BrowserData * FindBrowserByTkName(
  712. #ifdef ANSI_PROTOTYPES
  713. char * name
  714. #endif
  715. );
  716. int ConvertGeometrySpec(
  717. #ifdef ANSI_PROTOTYPES
  718. char * geometry, int * x, int * y, int * width, int * height
  719. #endif
  720. );
  721. int indentToShowSelection(
  722. #ifdef ANSI_PROTOTYPES
  723. int
  724. #endif
  725. );
  726. char * ExecTclCommand(
  727. #ifdef ANSI_PROTOTYPES
  728. char * command
  729. #endif
  730. );
  731. int LineNumberOfSelection(
  732. #ifdef ANSI_PROTOTYPES
  733. void
  734. #endif
  735. );
  736. void FixName(
  737. #ifdef ANSI_PROTOTYPES
  738. char *s
  739. #endif
  740. );
  741. char *tildefyFilename(
  742. #ifdef ANSI_PROTOTYPES
  743. char *
  744. #endif
  745. );
  746. char * findFile(
  747. #ifdef ANSI_PROTOTYPES
  748. char *
  749. #endif
  750. );
  751. char * PtMalloc(
  752. #ifdef ANSI_PROTOTYPES
  753. int, char *
  754. #endif
  755. );
  756. void PtFree(
  757. #ifdef ANSI_PROTOTYPES
  758. char *
  759. #endif
  760. );
  761. int MarkTime(
  762. #ifdef ANSI_PROTOTYPES
  763. void
  764. #endif
  765. );
  766. void GetPointerPosition(
  767. #ifdef ANSI_PROTOTYPES
  768. int *, int *
  769. #endif
  770. );
  771. int SupplySelectionToX(
  772. #ifdef ANSI_PROTOTYPES
  773. ClientData clientData, int offset, char * buffer, int maxBytes
  774. #endif
  775. );
  776. void AssertSelectionOwnership(
  777. #ifdef ANSI_PROTOTYPES
  778. void
  779. #endif
  780. );
  781. int getSelection(
  782. #ifdef ANSI_PROTOTYPES
  783. char *, int, int
  784. #endif
  785. );
  786. int makeName(
  787. #ifdef ANSI_PROTOTYPES
  788. char *
  789. #endif
  790. );
  791. int getBaseName(
  792. #ifdef ANSI_PROTOTYPES
  793. char *
  794. #endif
  795. );
  796. void justifyLines(
  797. #ifdef ANSI_PROTOTYPES
  798. void
  799. #endif
  800. );
  801. char * noWhiteSpace(
  802. #ifdef ANSI_PROTOTYPES
  803. char *
  804. #endif
  805. );
  806.  
  807. /* in lines.c */
  808. Offset readLine(
  809. #ifdef ANSI_PROTOTYPES
  810. int, Offset, char *, int
  811. #endif
  812. );
  813. Offset nextLine(
  814. #ifdef ANSI_PROTOTYPES
  815. int, Offset, int *
  816. #endif
  817. );
  818. Offset prevLine(
  819. #ifdef ANSI_PROTOTYPES
  820. int, Offset, int *
  821. #endif
  822. );
  823.  
  824. /* in main.c */
  825. int main(
  826. #ifdef ANSI_PROTOTYPES
  827. unsigned int, char **
  828. #endif
  829. );
  830.  
  831. /* in makeMenus.c */
  832. void MakeMouseMenuCursors(
  833. #ifdef ANSI_PROTOTYPES
  834. void
  835. #endif
  836. );
  837.  
  838. /* in makeWindow.c */
  839. void EnterAWindow(
  840. #ifdef ANSI_PROTOTYPES
  841. int, struct window *, XEvent *
  842. #endif
  843. );
  844. void VScroll(
  845. #ifdef ANSI_PROTOTYPES
  846. struct window * w, int how, int y, int button
  847. #endif
  848. );
  849. int DoOneVScroll(
  850. #ifdef ANSI_PROTOTYPES
  851. void
  852. #endif
  853. );
  854. void HScroll(
  855. #ifdef ANSI_PROTOTYPES
  856. struct window * w, int which, int x, int button
  857. #endif
  858. );
  859. void MakeWindow(
  860. #ifdef ANSI_PROTOTYPES
  861. struct window *, char * geometry
  862. #endif
  863. );
  864.  
  865. /* in mouse.c */
  866. void InitMouse(
  867. #ifdef ANSI_PROTOTYPES
  868. void
  869. #endif
  870. );
  871. void Mouse(
  872. #ifdef ANSI_PROTOTYPES
  873. struct window * w, char * cmd, int x, int y
  874. #endif
  875. );
  876.  
  877. /* in options.c */
  878. void InitOptions(
  879. #ifdef ANSI_PROTOTYPES
  880. void
  881. #endif
  882. );
  883. char * GetPointOption(
  884. #ifdef ANSI_PROTOTYPES
  885. char *
  886. #endif
  887. );
  888. void SetPointOption(
  889. #ifdef ANSI_PROTOTYPES
  890. char *, char *
  891. #endif
  892. );
  893.  
  894.  
  895. /* in piece.c */
  896. Piece dupPieces(
  897. #ifdef ANSI_PROTOTYPES
  898. Piece
  899. #endif
  900. );
  901. Piece getFreePiece(
  902. #ifdef ANSI_PROTOTYPES
  903. void
  904. #endif
  905. );
  906. void freePieces(
  907. #ifdef ANSI_PROTOTYPES
  908. Piece
  909. #endif
  910. );
  911. Piece findPiece(
  912. #ifdef ANSI_PROTOTYPES
  913. Offset, struct openFile *, Offset *
  914. #endif
  915. );
  916.  
  917. /* in ptInit.c */
  918. void ptInit(
  919. #ifdef ANSI_PROTOTYPES
  920. void
  921. #endif
  922. );
  923. void msg(
  924. #ifdef ANSI_PROTOTYPES
  925. char *, int
  926. #endif
  927. );
  928.  
  929. /* in regex.c */
  930. char * re_comp(
  931. #ifdef ANSI_PROTOTYPES
  932. char *pat
  933. #endif
  934. );
  935. int re_exec(
  936. #ifdef ANSI_PROTOTYPES
  937. int fid, int cp, int end_cp, int *lines_passed, int reversed
  938. #endif
  939. );
  940. int re_match(
  941. #ifdef ANSI_PROTOTYPES
  942. char *lp
  943. #endif
  944. );
  945. void RegexReplaceAll(
  946. #ifdef ANSI_PROTOTYPES
  947. struct window * w, char * searchFor, char * replaceWith, int inSelection
  948. #endif
  949. );
  950. int RegexReplaceOne(
  951. #ifdef ANSI_PROTOTYPES
  952. struct window * w, char * searchFor, char * replaceWith
  953. #endif
  954. );
  955.  
  956. /* in repaint.c */
  957. void SetTextColor(
  958. #ifdef ANSI_PROTOTYPES
  959. struct window *w, int normal, int foreground, char * colorName
  960. #endif
  961. );
  962. void CycleColors(
  963. #ifdef ANSI_PROTOTYPES
  964. char **, char *
  965. #endif
  966. );
  967. void InitRedisplay(
  968. #ifdef ANSI_PROTOTYPES
  969. struct window *
  970. #endif
  971. );
  972. void WorkspaceResized(
  973. #ifdef ANSI_PROTOTYPES
  974. struct window *
  975. #endif
  976. );
  977. void repaint(
  978. #ifdef ANSI_PROTOTYPES
  979. struct window *, int, int, int, int
  980. #endif
  981. );
  982.  
  983. /* replace.c */
  984. void replaceText(
  985. #ifdef ANSI_PROTOTYPES
  986. struct window *, char * fromString, int inSelection
  987. #endif
  988. );
  989. void replaceTextAux(
  990. #ifdef ANSI_PROTOTYPES
  991. struct window *, unsigned char *, unsigned char *, int, int
  992. #endif
  993. );
  994.  
  995. /* in search.c */
  996. int searchFor(
  997. #ifdef ANSI_PROTOTYPES
  998. struct window * w, int searchMode, char * s, int update
  999. #endif
  1000. );
  1001.  
  1002. /* in select.c */
  1003. void ExtendSelection(
  1004. #ifdef ANSI_PROTOTYPES
  1005. Offset, int, int, Offset
  1006. #endif
  1007. );
  1008. void drawSelection(
  1009. #ifdef ANSI_PROTOTYPES
  1010. int
  1011. #endif
  1012. );
  1013. void DrawSection(
  1014. #ifdef ANSI_PROTOTYPES
  1015. struct window *, Offset, int, int, int, int
  1016. #endif
  1017. );
  1018. void modeExtend(
  1019. #ifdef ANSI_PROTOTYPES
  1020. struct window *, Offset, int, int, Offset
  1021. #endif
  1022. );
  1023. Offset adjustSelMode(
  1024. #ifdef ANSI_PROTOTYPES
  1025. Offset
  1026. #endif
  1027. );
  1028. int XSelConvert(
  1029. #ifdef ANSI_PROTOTYPES
  1030. int, Atom *, Atom *, Atom *, char * *, unsigned long *, int *
  1031. #endif
  1032. );
  1033. void XSelLose(
  1034. #ifdef ANSI_PROTOTYPES
  1035. int, Atom *
  1036. #endif
  1037. );
  1038.  
  1039. /* spans.c */
  1040. Offset searchSpans(
  1041. #ifdef ANSI_PROTOTYPES
  1042. int, Offset, Offset, char *, int, int *
  1043. #endif
  1044. );
  1045. Offset searchReverseSpans(
  1046. #ifdef ANSI_PROTOTYPES
  1047. int, Offset, Offset, char *, int, int *
  1048. #endif
  1049. );
  1050. unsigned char * match1up(
  1051. #ifdef ANSI_PROTOTYPES
  1052. unsigned char *, int, int, int
  1053. #endif
  1054. );
  1055. unsigned char * match1dn(
  1056. #ifdef ANSI_PROTOTYPES
  1057. unsigned char *, int, int, int
  1058. #endif
  1059. );
  1060. unsigned char * match2dn(
  1061. #ifdef ANSI_PROTOTYPES
  1062. unsigned char *, int, int
  1063. #endif
  1064. );
  1065. int countnl(
  1066. #ifdef ANSI_PROTOTYPES
  1067. unsigned char *, int
  1068. #endif
  1069. );
  1070.  
  1071. /* stats.c */
  1072. void PrintStats(
  1073. #ifdef ANSI_PROTOTYPES
  1074. int fileId
  1075. #endif
  1076. );
  1077.  
  1078. /* tags.c */
  1079. void findCTag(
  1080. #ifdef ANSI_PROTOTYPES
  1081. char * ctag
  1082. #endif
  1083. );
  1084.  
  1085. /* tcl.c */
  1086. int doPtCommand(
  1087. #ifdef ANSI_PROTOTYPES
  1088. ClientData clientData, Tcl_Interp * interp, int argc, char *argv[]
  1089. #endif
  1090. );
  1091. void AddPointCommands(
  1092. #ifdef ANSI_PROTOTYPES
  1093. Tcl_Interp *
  1094. #endif
  1095. );
  1096. void ptTcl(
  1097. #ifdef ANSI_PROTOTYPES
  1098. int, XButtonEvent *, String *, Cardinal *
  1099. #endif
  1100. );
  1101.  
  1102. /* undoredo.c */
  1103. void initChanges(
  1104. #ifdef ANSI_PROTOTYPES
  1105. void
  1106. #endif
  1107. );
  1108. struct changeItem * GetCurrentChange(
  1109. #ifdef ANSI_PROTOTYPES
  1110. struct openFile * ff
  1111. #endif
  1112. );
  1113. struct changeItem * GetNewChange(
  1114. #ifdef ANSI_PROTOTYPES
  1115. struct openFile * ff
  1116. #endif
  1117. );
  1118. void RecordChange(
  1119. #ifdef ANSI_PROTOTYPES
  1120. struct openFile * ff, struct changeItem * new_change
  1121. #endif
  1122. );
  1123. void redo(
  1124. #ifdef ANSI_PROTOTYPES
  1125. struct openFile * ff, int count
  1126. #endif
  1127. );
  1128. void again(
  1129. #ifdef ANSI_PROTOTYPES
  1130. struct openFile * ff, int mostRecent
  1131. #endif
  1132. );
  1133. void UpdateUndoList(
  1134. #ifdef ANSI_PROTOTYPES
  1135. struct openFile * ff
  1136. #endif
  1137. );
  1138. void ShowUndos(
  1139. #ifdef ANSI_PROTOTYPES
  1140. struct openFile * ff
  1141. #endif
  1142. );
  1143. void undo(
  1144. #ifdef ANSI_PROTOTYPES
  1145. struct openFile * ff, int count
  1146. #endif
  1147. );
  1148. void showChange(
  1149. #ifdef ANSI_PROTOTYPES
  1150. void
  1151. #endif
  1152. );
  1153.  
  1154. /* in userInput.c */
  1155. void FixName(
  1156. #ifdef ANSI_PROTOTYPES
  1157. char *
  1158. #endif
  1159. );
  1160. void CommandHandler(
  1161. #ifdef ANSI_PROTOTYPES
  1162. int, char *, char *
  1163. #endif
  1164. );
  1165. void GetKeystrokes(
  1166. #ifdef ANSI_PROTOTYPES
  1167. int, XKeyEvent *
  1168. #endif
  1169. );
  1170.  
  1171. /* in windows.c */
  1172. void initWindows(
  1173. #ifdef ANSI_PROTOTYPES
  1174. void
  1175. #endif
  1176. );
  1177. void MakeWindowActive(
  1178. #ifdef ANSI_PROTOTYPES
  1179. struct window *
  1180. #endif
  1181. );
  1182. struct window * createWindow(
  1183. #ifdef ANSI_PROTOTYPES
  1184. struct window * w, char * filename, char * geometry
  1185. #endif
  1186. );
  1187. int closeWindow(
  1188. #ifdef ANSI_PROTOTYPES
  1189. struct window *, int
  1190. #endif
  1191. );
  1192. void topWindow(
  1193. #ifdef ANSI_PROTOTYPES
  1194. struct window *
  1195. #endif
  1196. );
  1197. void ZoomWindow(
  1198. #ifdef ANSI_PROTOTYPES
  1199. struct window *, int
  1200. #endif
  1201. );
  1202. struct window * GetNewFile(
  1203. #ifdef ANSI_PROTOTYPES
  1204. struct window * w, char * filename, char * geometry
  1205. #endif
  1206. );
  1207. void doNewWindow(
  1208. #ifdef ANSI_PROTOTYPES
  1209. struct window *
  1210. #endif
  1211. );
  1212. void bottomFile(
  1213. #ifdef ANSI_PROTOTYPES
  1214. struct window *
  1215. #endif
  1216. );
  1217.  
  1218.