httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject Re: [apreq-2] order of declarations
Date Wed, 23 Apr 2003 04:58:52 GMT
On Wed, 23 Apr 2003, Stas Bekman wrote:

> So it expands into:
> 
> const char *bdry, *ct = APREQ_ENV.in(req->env, "Content-Type");
> apr_size_t blen;
> 
> Does it still complain if you replace the macro?

You're good at this :) The above does compile fine ...

> 
> May be it's because APREQ_ENV.in is a callback?:
> 
>     const char          *(*in)(void *ctx, const char *name);
> 
> Finally does this work?
> 
> const char *bdry;
> const char *ct = apreq_env_content_type(req->env);
> apr_size_t blen;

No, that gives the same error as before:
   syntax error : missing ';' before 'type'
referring to the apr_size_t blen line, and then,
referring to the next line,
  'apr_status_t' : illegal use of this type as an expression

-- 
best regards,
randy


Mime
View raw message