return 2; } if (!strcmp(argv[i], "-serialmouse")) { if (++i >= argc) UseMsg (); decSerMouse = TRUE; decSerMouseType = atoi(argv[i]); if ((unsigned)decSerMouseType > SERMSE_MAX) FatalError("invalid serial mouse type specified"); return 2; } if (!strcmp(argv[i], "-mousebaud")) { if (++i >= argc) UseMsg (); decSerMouseBaud = atoi(argv[i]);
ddxProcessArgument (argc, argv, i)    int	argc;    char *argv[];    int	i;{    extern void UseMsg();    if (!strcmp(argv[i], "-noaccel")) {	decAccelerate = 0;	return 1;    }    if (!strcmp(argv[i], "-mouse")) {	if (++i >= argc) UseMsg ();	decPtrDev = argv[i];	return 2;    }    if (!strcmp(argv[i], "-keyboard")) {	if (++i >= argc) UseMsg ();	decKbdDev = argv[i];	return 2;    }    if (!strcmp(argv[i], "-serialmouse")) {	if (++i >= argc) UseMsg ();	decSerMouse = TRUE;    	decSerMouseType = atoi(argv[i]);    	if ((unsigned)decSerMouseType > SERMSE_MAX)    	    FatalError("invalid serial mouse type specified");	return 2;    }    if (!strcmp(argv[i], "-mousebaud")) {	if (++i >= argc) UseMsg ();    	decSerMouseBaud = atoi(argv[i]);	return 2;    }    if (!strcmp(argv[i], "-swcursor")) {        decSoftCursor = TRUE;        return 1;    }    if (!strcmp(argv[i], "-depth")) {	if (++i >= argc) UseMsg ();    	decWantedDepth = atoi(argv[i]);    	return 2;    }#if 0 /* XXX */#ifndef XKB    if (strcmp (argv[i], "-ar1") == 0) {	/* -ar1 int */	if (++i >= argc) UseMsg ();	sunAutoRepeatInitiate = 1000 * (long)atoi(argv[i]);	if (sunAutoRepeatInitiate > 1000000)	    sunAutoRepeatInitiate =  999000;	return 2;    }    if (strcmp (argv[i], "-ar2") == 0) {	/* -ar2 int */	if (++i >= argc) UseMsg ();	sunAutoRepeatDelay = 1000 * (long)atoi(argv[i]);	if (sunAutoRepeatDelay > 1000000)	    sunAutoRepeatDelay =  999000;	return 2;    }#endif    if (strcmp (argv[i], "-swapLkeys") == 0) {	/* -swapLkeys */	sunSwapLkeys = TRUE;	return 1;    }#endif /* 0 XXX */    if (strcmp (argv[i], "-debug") == 0) {	/* -debug */	return 1;    }    if (strcmp (argv[i], "-dev") == 0) {	/* -dev /dev/mumble */	if (++i >= argc) UseMsg ();	return 2;    }#if 0 /* XXX */    if (strcmp (argv[i], "-mono") == 0) {	/* -mono */	return 1;    }    if (strcmp (argv[i], "-zaphod") == 0) {	/* -zaphod */	sunActiveZaphod = FALSE;	return 1;    }    if (strcmp (argv[i], "-flipPixels") == 0) {	/* -flipPixels */	sunFlipPixels = TRUE;	return 1;    }    if (strcmp (argv[i], "-fbinfo") == 0) {	/* -fbinfo */	sunFbInfo = TRUE;	return 1;    }    if (strcmp (argv[i], "-kbd") == 0) {	/* -kbd */	if (++i >= argc) UseMsg();	return 2;    }    if (strcmp (argv[i], "-protect") == 0) {	/* -protect */	if (++i >= argc) UseMsg();	return 2;    }    if (strcmp (argv[i], "-cg4frob") == 0) {	sunCG4Frob = TRUE;	return 1;    }    if (strcmp (argv[i], "-noGX") == 0) {	sunNoGX = TRUE;	return 1;    }#endif /* 0 XXX */    return 0;}