httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: svn commit: r696047 - in /httpd/flood/trunk: flood_subst_file.c flood_subst_file.h
Date Tue, 16 Sep 2008 21:19:17 GMT


On 09/16/2008 10:41 PM, jerenkrantz@apache.org wrote:
> Author: jerenkrantz
> Date: Tue Sep 16 13:41:45 2008
> New Revision: 696047
> 
> URL: http://svn.apache.org/viewvc?rev=696047&view=rev
> Log:
> Fix up flood_subst_file implementation so that we compile again on Mac OS X.
> 
> Also fix up various nits, add licensing blocks, and reformat to better follow
> coding standards.
> 
> * flood_subst_file.c, flood_subst_file.h: Misc. fixes.
> 
> Modified:
>     httpd/flood/trunk/flood_subst_file.c
>     httpd/flood/trunk/flood_subst_file.h
> 
> Modified: httpd/flood/trunk/flood_subst_file.c
> URL: http://svn.apache.org/viewvc/httpd/flood/trunk/flood_subst_file.c?rev=696047&r1=696046&r2=696047&view=diff
> ==============================================================================


> @@ -192,8 +172,41 @@
>  }
>  
>  #ifdef SUBST_MAIN
> +subst_rec_t subst_list[SUBST_FILE_ARR_MAX];
> +
> +void subst_list_make(subst_rec_t *subst_list) {
> +  int i2 = 0;
> +
> +  subst_list[0].subst_var = "name";
> +  subst_list[0].subst_file_name = "/pmalab1/temphome/guyf/work/replace_mc5/flood_stuff/build/flood-0.4/test";
> +  subst_list[0].subst_mode = 0;
> +  subst_list[0].valid = 1;
> +  i2++;
> +
> +  subst_list[i2].subst_var = "foot";
> +  subst_list[i2].subst_file_name = "/pmalab1/temphome/guyf/work/replace_mc5/flood_stuff/build/flood-0.4/blort";
> +  subst_list[i2].subst_mode = 0;
> +  subst_list[i2].valid = 1;
> +
> +  i2++;
> +  subst_list[i2].subst_var = "nerve";
> +  subst_list[i2].subst_file_name = "/pmalab1/temphome/guyf/work/replace_mc5/flood_stuff/build/flood-0.4/cavort";
> +  subst_list[i2].subst_mode = 0;
> +  subst_list[i2].valid = 1;
> +}
> +
> +int close_subst_file(apr_file_t* subst_file) {
> +  apr_status_t rc = 0;
> +
> +  if (subst_file) {
> +    rc = apr_file_close(subst_file);
> +  }
> +  return rc;
> +}
> +
>  int main(int argc, char** argv) {
> -  char line[SUBST_FILE_MAX_URL_SIZE];    # why mess around, therefore static
> +  //# why mess around, therefore static

C++ style comments are not liked by all C compilers.

Regards

RĂ¼diger

Mime
View raw message