home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / Editors / emacs / Emacs-1.14b1-sources / sources / unix-emulation-src / dispatch.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-14  |  791 b   |  25 lines  |  [TEXT/EMAC]

  1. /*
  2.  * Copyright (C) 1993, 1994 Marc Parmet.
  3.  * This file is part of the Macintosh port of GNU Emacs.
  4.  *
  5.  * GNU Emacs is distributed in the hope that it will be useful,
  6.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  8.  * GNU General Public License for more details.
  9.  */
  10.  
  11. /*
  12. This is the routine we install in the System heap when Emacs starts
  13. up.  We patch the constant to point to the Unix emulation dispatch
  14. routine.  We install this routine as a Gestalt selector, answering to
  15. code 'uniX'.  With the result this routine provides, utility programs
  16. like ls and grep can use Unix I/O functions provided by Emacs.
  17. */
  18.  
  19. pascal OSErr
  20. main(OSType selector,long *response)
  21. {
  22.     *response = 0x89abcdef;
  23.     return noErr;
  24. }
  25.