From owner-cvs-games Wed Jan 29 23:13:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA25141 for cvs-games-outgoing; Wed, 29 Jan 1997 23:13:06 -0800 (PST) Received: (from max@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA25130; Wed, 29 Jan 1997 23:13:01 -0800 (PST) Date: Wed, 29 Jan 1997 23:13:01 -0800 (PST) From: Masafumi NAKANE Message-Id: <199701300713.XAA25130@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-games Subject: cvs commit: src/games/backgammon/backgammon main.c src/games/backgammon/teachgammon teach.c src/games/backgammon/common_source back.h init.c subs.c Sender: owner-cvs-games@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk max 97/01/29 23:13:00 Modified: games/backgammon/backgammon main.c games/backgammon/common_source back.h init.c subs.c games/backgammon/teachgammon teach.c Log: Better handling of command-line argument: 1. Pass argc and argv to getarg and process them with getopt(). 2. Instead of using an array to save arg characters, use array of pointers and call backgammon/teachgammon with execv, instead of execl. This should fix problems with calling teachgammon. 2.2 candidate. Revision Changes Path 1.2 +9 -8 src/games/backgammon/backgammon/main.c 1.2 +2 -2 src/games/backgammon/common_source/back.h 1.2 +1 -1 src/games/backgammon/common_source/init.c 1.4 +26 -27 src/games/backgammon/common_source/subs.c 1.3 +10 -7 src/games/backgammon/teachgammon/teach.c