ref: 87c8e97e45a7e1d398273fe9c502bae8c28e6d8c
parent: c1d94b0c0f5f5b573cb7bb9d2fe43d30b2a7b356
author: Marc-Alexandre Espiaut <marcalexandre@member.fsf.org>
date: Mon Jun 4 14:09:00 EDT 2018
Removing DOS code audiolib/user.c
--- a/rott/audiolib/user.c
+++ b/rott/audiolib/user.c
@@ -28,10 +28,6 @@
(c) Copyright 1994 James R. Dose. All Rights Reserved.
**********************************************************************/
-#ifdef PLAT_DOS
-#include <dos.h>
-#endif
-
#include <string.h>
#include "user.h"
@@ -38,11 +34,6 @@
#define TRUE ( 1 == 1 )
#define FALSE ( !TRUE )
-#ifdef PLAT_DOS
-extern int _argc;
-extern char **_argv;
-#endif
-
/*---------------------------------------------------------------------
Function: USER_CheckParameter
@@ -55,35 +46,7 @@
)
{
-#ifdef PLAT_DOS
- int i;
- int found;
- char *ptr;
-
- found = FALSE;
- i = 1;
- while( i < _argc )
- {
- ptr = _argv[ i ];
-
- // Only check parameters preceded by - or /
- if ( ( *ptr == '-' ) || ( *ptr == '/' ) )
- {
- ptr++;
- if ( stricmp( parameter, ptr ) == 0 )
- {
- found = TRUE;
- break;
- }
- }
-
- i++;
- }
-
- return( found );
-#else
return FALSE;
-#endif
}
@@ -100,34 +63,5 @@
)
{
-#ifdef PLAT_DOS
- int i;
- char *text;
- char *ptr;
-
- text = NULL;
- i = 1;
- while( i < _argc )
- {
- ptr = _argv[ i ];
-
- // Only check parameters preceded by - or /
- if ( ( *ptr == '-' ) || ( *ptr == '/' ) )
- {
- ptr++;
- if ( stricmp( parameter, ptr ) == 0 )
- {
- i++;
- text = _argv[ i ];
- break;
- }
- }
-
- i++;
- }
-
- return( text );
-#else
return NULL;
-#endif
}