1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 08:33:36 +02:00

Fixed some Nyquist bugs, eliminate some compiler and wipro checker warnings

This commit is contained in:
rbdannenberg
2010-09-27 05:42:28 +00:00
parent c159d469d6
commit f37b4ab344
10 changed files with 76 additions and 11 deletions

View File

@@ -4,6 +4,9 @@
Permission is granted for unrestricted non-commercial use */
/* HISTORY
*
* 11-Dec-09 Roger Dannenberg
* Added getenv
*
* 28-Apr-03 Dominic Mazzoni
* Eliminated some compiler warnings
@@ -49,6 +52,20 @@ extern LVAL s_true;
extern FILE *osaopen();
extern LVAL exttype();
/* xget_env - get the value of an environment variable */
LVAL xget_env(void)
{
const char *name = (char *) getstring(xlgetfname());
char *val;
/* check for too many arguments */
xllastarg();
/* get the value of the environment variable */
val = getenv(name);
return (val ? cvstring(val) : NULL);
}
/* xload - read and evaluate expressions from a file */
LVAL xload(void)
{