home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
-
- MODUL
- amiga.c
-
- DESCRIPTION
-
- NOTES
-
- BUGS
-
- TODO
-
- EXAMPLES
-
- SEE ALSO
-
- INDEX
-
- HISTORY
- 10. Oct 1992 ada created
-
- ******************************************************************************/
-
- /**************************************
- Includes
- **************************************/
- #include <defs.h>
-
-
- /**************************************
- Globale Variable
- **************************************/
-
-
- /**************************************
- Interne Defines & Strukturen
- **************************************/
-
-
- /**************************************
- Interne Variable
- **************************************/
-
-
- /**************************************
- Interne Prototypes
- **************************************/
- Prototype void set_pubscreen (void);
-
-
- /*****************************************************************************
-
- NAME
- set_pubscreen
-
- PARAMETER
- void
-
- RESULT
-
- RETURN
- void
-
- DESCRIPTION
- Sets the name for the pubscreen XDME should open its windows on.
-
- NOTES
-
- BUGS
- This is only a dummy (Sorry).
-
- EXAMPLES
-
- SEE ALSO
-
- INTERNALS
-
- HISTORY
- 10. Oct 1992 ada created
-
- ******************************************************************************/
-
- void set_pubscreen (void)
- {
- static char * name = NULL;
-
- /* If there is already a name, free it first */
-
- if (name)
- {
- free (name);
- name = NULL;
- }
-
- /* If there is a new name, get it */
-
- if (av[1][0])
- {
- /* Make a copy of the name */
- if (name = strdup (av[1]))
- {
- if (XDMEArgs.publicscreenname)
- free (XDMEArgs.publicscreenname);
-
- XDMEArgs.publicscreenname = name;
-
- /* give user a hint what we did */
-
- if (name)
- title ("Set PubScreen to `%s'", name);
- }
- else
- warn ("PUBSCREEN: out of memory !");
- } else
- {
- /* Disable PubScreens */
-
- if (XDMEArgs.publicscreenname)
- free (XDMEArgs.publicscreenname);
-
- XDMEArgs.publicscreenname = NULL;
-
- title ("turned PubScreen OFF");
- }
- } /* set_pubscreen */
-
-
- /******************************************************************************
- ***** ENDE amiga.c
- ******************************************************************************/
-