Re: [fpc-pascal] Problem translating c code to pascal

2006-09-24 Thread Marc Santhoff
Am Sonntag, den 24.09.2006, 11:37 -0300 schrieb Felipe Monteiro de Carvalho: > This is what almost works: > > var > hw_handlers: array[0..1] of handler_rec = > ( > (content_type: 'hw_app'; handler: @DefaultHandler), > nil > ); > > But the compiler will complain on the nil: > > mod_

Re: [fpc-pascal] Problem translating c code to pascal

2006-09-24 Thread Felipe Monteiro de Carvalho
This is what almost works: var hw_handlers: array[0..1] of handler_rec = ( (content_type: 'hw_app'; handler: @DefaultHandler), nil ); But the compiler will complain on the nil: mod_hello.lpr(108,5) Fatal: Syntax error, "(" expected but "NIL" found On 9/23/06, Marc Santhoff <[EMAIL PRO

Re: [fpc-pascal] Problem translating c code to pascal

2006-09-23 Thread Marc Santhoff
Am Samstag, den 23.09.2006, 12:39 -0300 schrieb Felipe Monteiro de Carvalho: > Hello, > > I'm converting apache 1.3 headers to pascal, and I found something I > don't know how to convert. It's these lines: > > static const handler_rec hw_handlers[] = { > { "hw-app", hw_handle_req }, > {

[fpc-pascal] Problem translating c code to pascal

2006-09-23 Thread Felipe Monteiro de Carvalho
Hello, I'm converting apache 1.3 headers to pascal, and I found something I don't know how to convert. It's these lines: static const handler_rec hw_handlers[] = { { "hw-app", hw_handle_req }, { NULL } }; Where handler_req is declared as: handler_t = function (param1: Prequest_rec): I