Skip to content

Commit

Permalink
Makefile.pre.in: add $(OPT) to link command
Browse files Browse the repository at this point in the history
audioop.c: fix for MPW
config.c.in: save original argc/argv for Lance
rotormodule.c: new coding conventions
timemodule.c: add casts for Lance
  • Loading branch information
gvanrossum committed Aug 29, 1994
1 parent 0e3da7b commit 7b1e974
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 105 deletions.
2 changes: 1 addition & 1 deletion Modules/Makefile.pre.in
Expand Up @@ -66,7 +66,7 @@ $(LIB): $(OBJS)
$(RANLIB) $(LIB)

../python: config.o $(MYLIBS)
$(CC) config.o \
$(CC) $(OPT) config.o \
$(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python
mv python ../python

Expand Down
4 changes: 3 additions & 1 deletion Modules/audioop.c
Expand Up @@ -27,11 +27,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "allobjects.h"
#include "modsupport.h"

#if defined(__CHAR_UNSIGNED__) && defined(signed)
#if defined(__CHAR_UNSIGNED__)
#if defined(signed)
!ERROR!; READ THE SOURCE FILE!;
/* This module currently does not work on systems where only unsigned
characters are available. Take it out of Setup. Sorry. */
#endif
#endif

#include <math.h>

Expand Down
17 changes: 17 additions & 0 deletions Modules/config.c.in
Expand Up @@ -53,10 +53,18 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

static char *argv0;

/* These are made available for other modules that might need them.
This is rare, but it is needed by the secureware module. */

static char **orig_argv;
static int orig_argc;

main(argc, argv)
int argc;
char **argv;
{
orig_argc = argc;
orig_argv = argv;
argv0 = argv[0];
realmain(argc, argv);
}
Expand All @@ -67,6 +75,15 @@ getprogramname()
return argv0;
}

void
getargcargv(argc,argv)
int *argc;
char ***argv;
{
*argc = orig_argc;
*argv = orig_argv;
}

#endif


Expand Down

0 comments on commit 7b1e974

Please sign in to comment.