hmm.  the syntax i gave you should be fine on the left as well.  here's
what i did:

  if (op -> outopts.outstyle != OUT_NONE)
    output(&(op -> outopts), op -> gooditems, op -> baditems, &(op ->
dman),
           op -> sizes, op -> miscopts.data, op -> miscopts.bytes,
           op -> miscopts.bytes7, op -> miscopts.granularity);
/* test code */
if (op -> outopts.outstyle == HTML)
   fprintf(stderr, "congrats\n");
/* end test code */
  my_exit(EXIT_SUCCESS);
  return(EXIT_SUCCESS);  /* just to stop compiler complaining */

which gave me this:
cgi2:/usr/public/packages/analog > ./analog +C'OUTPUT HTML' > /dev/null
./analog: Warning F: Failed to open logfile
  /export/home/webmastr/server-root/document-root/logs/access_log:
ignoring it
  (For help on all errors and warnings, see docs/errors.html)
./analog: Warning R: Turning off empty Request Report
./analog: Warning R: Turning off empty Directory Report
./analog: Warning R: Turning off empty Referrer Report
./analog: Warning R: Turning off empty Referring Site Report
congrats
cgi2:/usr/public/packages/analog > 

so it dereferenced "outstyle" fine and recognized the HTML choice to
print my cheesy "congrats" message.  if it's not working then either i'm
misunderstanding your problem or the problem isn't with that line. 
either way, a cut-and-paste of the errors you're getting would help.


  alex

Mike Avila wrote:
> 
> The problem is the left side, not the right side of the if-test. The
> compiler does not like the redirection.  My C is too rusty to figure out
> how to "re-engineer" the pointer format to make it work.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of alex
> > Sent: Sunday, January 03, 1999 3:14 AM
> > To: [EMAIL PROTECTED]
> > Subject: [analog-help] Re:
> >
> >
> > try:
> >   if (op -> outopts.outstyle == HTML)
> >
> > (without your quotation marks).  HTML is defined in analhea2.h along
> > with ASCII and OUT_NONE.
> >
> >
> >   alex
> >
> > Mike Avila wrote:
> > >
> > > A few days ago I sent this request for help to the author but have not
> > > received a response yet.  He is probably still in the moving process or
> > > maybe analog-author is not working.  Is there anybody who has seen the
> > > source code for analog.c that can help me?  It is at the end
> > of analog.c
> > > that I am trying to add the following code.
> > >
> > > Thanks.
> > >
> > >
> > -----------------------------------------------------------------
> > ----------
> > > ------
> > >
> > > I am having a problem trying to get compare to the output type so I can
> > > know whether or not to execute the module I created.  Would
> > you please help
> > > me by providing the correct code to check the output type for HTML.
> > >
> > > /*@@@@@ Modification by Avila */
> > >   if (op -> outopts.outstyle == "HTML")  <<<<<<<<<<<<<<<<<<<<<<<<<<
> > >      {
> > >      if (rebuild == TRUE)
> > >           {
> > >            rebuild_files();
> > >           }
> > >      }
> > > /*@@@@@ End of Modification */
> > >   my_exit(EXIT_SUCCESS);
> > >   return(EXIT_SUCCESS);  /* just to stop compiler complaining */
> > >
> > > Thanks.  I appreciate the help.  I cannot figure this one out
> > by myself.
> 
> --------------------------------------------------------------------
> This is the analog-help mailing list. To unsubscribe from this
> mailing list, send mail to [EMAIL PROTECTED]
> with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
> --------------------------------------------------------------------

-- 
GeoCities Operations
_____________________________________
--------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
--------------------------------------------------------------------

Reply via email to