Revision: 55012
http://brlcad.svn.sourceforge.net/brlcad/?rev=55012&view=rev
Author: carlmoore
Date: 2013-04-02 19:54:22 +0000 (Tue, 02 Apr 2013)
Log Message:
-----------
use ttyin,ttyout as I did in pix-png ; but there is a warning about implicit
declaration of isatty
Modified Paths:
--------------
brlcad/trunk/src/mged/cad_parea.c
Modified: brlcad/trunk/src/mged/cad_parea.c
===================================================================
--- brlcad/trunk/src/mged/cad_parea.c 2013-04-02 19:03:18 UTC (rev 55011)
+++ brlcad/trunk/src/mged/cad_parea.c 2013-04-02 19:54:22 UTC (rev 55012)
@@ -59,13 +59,22 @@
point first = {0.0, 0.0}; /* saved first point */
int saved; /* "`first' valid" flag */
double sum; /* accumulator */
+ int ttyin,ttyout;
+ ttyin = isatty(fileno(stdin));
+ ttyout = isatty(fileno(stdout));
+
if (!GetArgs(argc, argv)) {
/* process command arguments */
Output(0.0);
return 1;
}
+ if (ttyin && ttyout && argc == 1) {
+ Usage(); /* print usage message */
+ printf(" Program continues running:\n");
+ }
+
saved = 0;
sum = 0.0;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits