# the RPM spec file and LSM
V=2.3
+CFLAGS = -O
+
ascii: ascii.o
ascii.o: ascii.c splashscreen.h
splashscreen.h: splashscreen
sed <splashscreen >splashscreen.h -e 's/\\/\\\\/g' -e 's/"/\\"/' -e 's/.*/P("&");/'
-CFLAGS = -O
-
clean:
rm -f ascii ascii.tar* ascii.shar ascii.o splashscreen.h
* v2.0 December 1995 -- Interpret ISO-style code table escapes.
* v2.1 August 1997 -- merge in changes by Ioannis Tambouras.
* v2.2 November 1997 -- merge in more changes by Ioannis Tambouras.
+ * v2.3 November 1997 -- incorporated Colin Plumb's splash-screen idea.
*
* Tries to interpret arguments as names or aliases of ascii characters
* and dumps out *all* the aliases of each. Accepts literal characters,
*/
-#define REVISION "$Revision: 1.8 $"
+#define REVISION "$Revision: 1.9 $"
#include <unistd.h>
#include <stdio.h>
else if (tolower(str[0]) == 'b')
bval = atob(str + 1);
- /* OK, now output only unique values */
+ /* OK, now output all values */
if (hval > -1)
- { speak(hval & 0xff); return; }
- if (dval > -1 && dval != hval)
- { speak(dval & 0xff); return; }
- if (oval > -1 && oval != dval && oval != hval)
- { speak(oval & 0xff); return; }
- if (bval > -1 && bval != oval && bval != dval && bval != hval)
- { speak(bval & 0xff); return; }
+ speak(hval & 0xff);
+ if (dval > -1)
+ speak(dval & 0xff);
+ if (oval > -1)
+ speak(oval & 0xff);
+ if (bval > -1)
+ speak(bval & 0xff);
+ if (hval > 1 || dval > -1 || oval > -1 || bval > -1)
+ return;
}
if (sscanf(str, "%d/%d", &hi, &lo) == 2) /* code table reference? */