#!/bin/sh # This is a shar archive. # The rest of this file is a shell script which will extract: # # 2_9.c 2_9.cmp makefile # # To extract the files from this shell archive file simply # create a directory for this file, move the archive file # to it and enter the command # # sh filename # # The files will be extracted automatically. # Note: Do not use csh. # # Archive created: Mon Jul 30 22:57:30 EDT 1990 # echo x - 2_9.c sed 's/^X//' > 2_9.c << '!EOF!' /* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */ /* The C++ Answer Book */ /* Tony Hansen */ /* All rights reserved. */ int external9_123456789_123456789_1 = 31; int external9_123456789_123456789_12 = 32; int external9_123456789_123456789_123 = 33; #define prepross9_123456789_123456789_1 31 #define prepross9_123456789_123456789_12 32 #define prepross9_123456789_123456789_123 33 int main(int, char**) { int internal9_123456789_123456789_1 = 31; int internal9_123456789_123456789_12 = 32; int internal9_123456789_123456789_123 = 33; return 0; } !EOF! ls -l 2_9.c echo x - 2_9.cmp sed 's/^X//' > 2_9.cmp << '!EOF!' !EOF! ls -l 2_9.cmp echo x - makefile sed 's/^X//' > makefile << '!EOF!' CC= CC -I. -I../../CC all: 2_9 2_9: 2_9.c $(CC) 2_9.c -o 2_9 test: all 2_9.cmp 2_9 > 2_9.out cmp 2_9.out 2_9.cmp echo tests done !EOF! ls -l makefile # The following exit is to ensure that extra garbage # after the end of the shar file will be ignored. exit 0