From: Andreas Jaeger Date: Sun, 13 May 2001 01:10:47 +0000 (+0000) Subject: use the emitProc dispatch table X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2730bf3726fa7455dd91043b956bda5b7873c702;p=thirdparty%2Flibtool.git use the emitProc dispatch table --- diff --git a/exe/ltmain.c b/exe/ltmain.c index 239d1b60c..1abdc6a9a 100644 --- a/exe/ltmain.c +++ b/exe/ltmain.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -456,7 +457,16 @@ main( argc, argv ) signal( SIGBUS, handleSignal ); signal( SIGSEGV, handleSignal ); - emitScript( argc, argv ); + assert( OPT_VALUE_MODE < MODE_CT ); + { + emitScriptProc* pEP = ap_emitProc[ OPT_VALUE_MODE ]; + if (pEP == NULL) { + fprintf( stderr, "We're in the wrong mode: %d\n", + OPT_VALUE_MODE ); + USAGE( EXIT_FAILURE ); + } + (*pEP)( argc, argv ); + } return scriptStatus; }