axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: xml-axis/c/src/server/apache Makefile.am mod_axis.c
Date Fri, 12 Sep 2003 09:33:12 GMT
damitha     2003/09/12 02:33:12

  Modified:    c/src/server/apache Makefile.am mod_axis.c
  Log:
  log: in mod_axis.c removed //style comments and replaced with /**/ style comments.
  in Makefile.am added a cflag option to add gcc compiler options of
  -ansi and -pedantic
  
  Revision  Changes    Path
  1.4       +1 -0      xml-axis/c/src/server/apache/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/xml-axis/c/src/server/apache/Makefile.am,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Makefile.am	1 Sep 2003 13:44:39 -0000	1.3
  +++ Makefile.am	12 Sep 2003 09:33:12 -0000	1.4
  @@ -1,4 +1,5 @@
   noinst_LTLIBRARIES = libapache.la
  +AM_CPPFLAGS = -Wshadow -Wall -pedantic -ansi
   libapache_la_SOURCES = mod_axis.c
   
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.9       +19 -19    xml-axis/c/src/server/apache/mod_axis.c
  
  Index: mod_axis.c
  ===================================================================
  RCS file: /home/cvs/xml-axis/c/src/server/apache/mod_axis.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- mod_axis.c	27 Aug 2003 12:16:35 -0000	1.8
  +++ mod_axis.c	12 Sep 2003 09:33:12 -0000	1.9
  @@ -15,17 +15,17 @@
   /* here's the content handler */
   
   extern int process_request(Ax_soapstream* str);
  -//extern int process(soapstream *);
  +/*extern int process(soapstream *);*/
   extern unsigned char chEBuf[1024];
   
  -//Should dispatch the headers from within this method
  +/*Should dispatch the headers from within this method*/
   int send_transport_information(Ax_soapstream* hdr)
   {
         ap_send_http_header((request_rec*)hdr->str.op_stream);
   	  return 0;
   }
   
  -//Call initialize_module() [of Packet.h] from within this method
  +/*Call initialize_module() [of Packet.h] from within this method*/
   void module_init(server_rec *svr_rec, pool* p)
   {
   	initialize_module();
  @@ -37,10 +37,10 @@
   	return 0;
   }
   
  -//Call initialize_process() [of Packet.h] from within this method
  +/*Call initialize_process() [of Packet.h] from within this method*/
   void  axis_Init(server_rec *svr_rec, pool* p)
   {}
  -//Call finalize_process() [of Packet.h] from within this method
  +/*Call finalize_process() [of Packet.h] from within this method*/
   void axis_Fini(server_rec *svr_rec, pool* p)
   {}
   
  @@ -62,34 +62,34 @@
   
   	sstr = malloc(sizeof(Ax_soapstream));
   	sstr->trtype = APTHTTP;
  -	//req_rec is used as both input and output streams
  +	/*req_rec is used as both input and output streams*/
   	sstr->str.ip_stream = req_rec;
   	sstr->str.op_stream = req_rec;
  -	//just add some sessionid
  +	/*just add some sessionid*/
   	sstr->sessionid = "this is temporary session id";
   
  -	req_rec->content_type = "text/xml"; //for SOAP 1.2 this this should be "application/soap+xml"
but keep this for the moment
  -	//set up the read policy from the client.
  +	req_rec->content_type = "text/xml"; /*for SOAP 1.2 this this should be "application/soap+xml"
but keep this for the moment*/
  +	/*set up the read policy from the client.*/
   	if ((rc = ap_setup_client_block(req_rec, REQUEST_CHUNKED_ERROR)) != OK)
   	{
   		return rc;
   	}
   
  -	//the member, "path" of "parsed_uri" contains the uri of the 
  -	//request (i.e "/abc/xyz" part of http://somehost/abc/xyz)
  +	/*the member, "path" of "parsed_uri" contains the uri of the */
  +	/*request (i.e "/abc/xyz" part of http://somehost/abc/xyz)*/
   	sstr->so.http.uri_path = req_rec->parsed_uri.path;
   
  -	//ap_table_elts returns an array_header struct. The nelts element of that struct contains
the number of
  -	//input header elements. Finally assigns that to the axis soap data structure. 
  +	/*ap_table_elts returns an array_header struct. The nelts element of that struct contains
the number of*/
  +	/*input header elements. Finally assigns that to the axis soap data structure. */
   	sstr->so.http.ip_headercount = ap_table_elts(req_rec->headers_in)->nelts;  
   
  -	//casting req_rec->headers_in to axis header struct and assigning that to the axis
soap structure. Hope this is ok
  +	/*casting req_rec->headers_in to axis header struct and assigning that to the axis
soap structure. Hope this is ok*/
   
  -	//obtain the array_header from the headers_in table and assign it to the axis soap structure
  +	/*obtain the array_header from the headers_in table and assign it to the axis soap structure*/
   	arr = ap_table_elts(req_rec->headers_in);
   	sstr->so.http.ip_headers = (Ax_header*)arr->elts;
   
  -	//Determine the http method and assign it to the axis soap structure
  +	/*Determine the http method and assign it to the axis soap structure*/
   	switch (req_rec->method_number)
   	{
   	case M_GET:
  @@ -102,8 +102,8 @@
         sstr->so.http.ip_method = AXIS_HTTP_UNSUPPORTED;   
   	}
   
  -  	//tell the client that we are ready to receive content and check whether client will
send content
  -	//control will pass to this block only if there is body content in the request
  +  	/*tell the client that we are ready to receive content and check whether client will
send content*/
  +	/*control will pass to this block only if there is body content in the request*/
       if (ap_should_client_block(req_rec));
   
   	if(0 != process_request(sstr))
  @@ -114,7 +114,7 @@
   
   
   	free(sstr);
  -	//free(arr);
  +	/*free(arr);*/
   	return OK;
   }
   /* Make the name of the content handler known to Apache */
  
  
  

Mime
View raw message