home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / toollib_2 / Examples / Tree / Builds / c / main < prev    next >
Encoding:
Text File  |  1996-06-13  |  1.1 KB  |  69 lines

  1. /*** Tree ***/
  2. /* Tree drawing program
  3.  * (c) Paul Field 1995
  4.  * v1.00 - 22/11/1995
  5.  */
  6.  
  7.  
  8. #include <stdio.h>
  9.  
  10. #include "application.h"
  11. #include "fast_trig.h"
  12. #include "nev_wimp.h"
  13. #include "shifting.h"
  14.  
  15. #include "treewindow.h"
  16. #include "treeparams.h"
  17.  
  18.  
  19.  
  20. static void tree_initialise(int argc, char *argv[])
  21.  { NOT_USED(argc);
  22.    NOT_USED(argv);
  23.  
  24. #ifndef NDEBUG
  25.    /* Redirect error stream */
  26.    freopen("pipe:$.debug", "w", stderr);
  27. #endif
  28.  
  29.    nevent_wimp_initialise();
  30.  
  31.    tree_window_initialise();
  32.    tree_params_initialise();
  33.    shifting_initialise_for_toolbox();
  34.    fast_trig_initialise();
  35.  }
  36.  
  37.  
  38.  
  39.  
  40. /* Respond to all actions and messages */
  41. static const int toolbox_actions[] =
  42.  { 0x100,
  43.    0x44ec0,
  44.    0x82a91,
  45.    0x82bc2,
  46.    0x82bc3,
  47.    0
  48.  };
  49.  
  50.  
  51. #if 0
  52. /* No wimp messages used - we use a NULL parameter for wimp_messages */
  53. static const int wimp_messages[] =
  54.  {
  55.  };
  56. #endif
  57.  
  58.  
  59. /* The variable which the application system required */
  60. application this_application =
  61.  { "<Tree$Dir>",
  62.    310,
  63.    toolbox_actions,
  64.    NULL, /*wimp_messages,*/
  65.    5,
  66.    tree_initialise,
  67.    NULL
  68.  };
  69.