home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / SASC6574.LZX / include / sys / commwben.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-04  |  1.2 KB  |  26 lines

  1. /* Copyright (c) 1993 SAS Institute, Inc., Cary, NC USA */
  2. /* All Rights Reserved */
  3.  
  4. /* This header file contains common preprocessor symbol   */
  5. /* definitions that were previously duplicated throughout */
  6. /* the header files. Those definitions were moved here    */
  7. /* and replaced with a #include of this header file.      */
  8. /* This was done to purify the header files for GST       */
  9. /* processing.                                            */
  10.  
  11. #ifndef WBenchMsg
  12. #pragma msg 148 ignore push   /* Ignore message if tag is undefined*/
  13. extern struct WBStartup *_WBenchMsg;  /* WorkBench startup, if the */
  14. #define WBenchMsg _WBenchMsg          /* program was started from  */
  15. #pragma msg 148 pop                   /* WorkBench.   Same as argv.*/
  16. #endif
  17.  
  18. /* The following two externs give you the information in the   */
  19. /* WBStartup structure parsed out to look like an (argc, argv) */
  20. /* pair.  Don't define them in your code;  just include this   */
  21. /* file and use them.  If the program was not run from         */
  22. /* WorkBench, _WBArgc will be zero.                            */
  23.  
  24. extern int _WBArgc;    /* Count of the number of WorkBench arguments */
  25. extern char **_WBArgv; /* The actual arguments                       */
  26.