#!/bin/sh # This is a shar archive. # The rest of this file is a shell script which will extract: # # 4_1.c 4_1a.c 4_1b.c 4_1c.c 4_1d.c 4_1e.c 4_1f.c 4_1g.c 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 23:02:33 EDT 1990 # echo x - 4_1.c sed 's/^X//' > 4_1.c << '!EOF!' /* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */ /* The C++ Answer Book */ /* Tony Hansen */ /* All rights reserved. */ #include "4_1a.c" #include "4_1b.c" #include "4_1c.c" #include "4_1d.c" #include "4_1e.c" #include "4_1f.c" #include "4_1g.c" !EOF! ls -l 4_1.c echo x - 4_1a.c sed 's/^X//' > 4_1a.c << '!EOF!' /* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */ /* The C++ Answer Book */ /* Tony Hansen */ /* All rights reserved. */ typedef void vf_pc_ri(char *, int&); !EOF! ls -l 4_1a.c echo x - 4_1b.c sed 's/^X//' > 4_1b.c << '!EOF!' /* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */ /* The C++ Answer Book */ /* Tony Hansen */ /* All rights reserved. */ typedef vf_pc_ri *p_vf_pc_ri; !EOF! ls -l 4_1b.c echo x - 4_1c.c sed 's/^X//' > 4_1c.c << '!EOF!' /* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */ /* The C++ Answer Book */ /* Tony Hansen */ /* All rights reserved. */ extern vf_pc_ri funca; !EOF! ls -l 4_1c.c echo x - 4_1d.c sed 's/^X//' > 4_1d.c << '!EOF!' /* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */ /* The C++ Answer Book */ /* Tony Hansen */ /* All rights reserved. */ extern p_vf_pc_ri ptra; !EOF! ls -l 4_1d.c echo x - 4_1e.c sed 's/^X//' > 4_1e.c << '!EOF!' /* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */ /* The C++ Answer Book */ /* Tony Hansen */ /* All rights reserved. */ extern void funcb(p_vf_pc_ri); !EOF! ls -l 4_1e.c echo x - 4_1f.c sed 's/^X//' > 4_1f.c << '!EOF!' /* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */ /* The C++ Answer Book */ /* Tony Hansen */ /* All rights reserved. */ extern p_vf_pc_ri funcc(); !EOF! ls -l 4_1f.c echo x - 4_1g.c sed 's/^X//' > 4_1g.c << '!EOF!' /* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */ /* The C++ Answer Book */ /* Tony Hansen */ /* All rights reserved. */ p_vf_pc_ri funcd(p_vf_pc_ri a) { return a; } !EOF! ls -l 4_1g.c echo x - makefile sed 's/^X//' > makefile << '!EOF!' CC= CC -I. -I../../CC all: 4_1 4_1: 4_1.c 4_1a.c 4_1b.c 4_1c.c 4_1d.c 4_1e.c 4_1f.c 4_1g.c $(CC) -c 4_1.c test: all 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