Date: 09/02/01
- Next message: csaout <email protected>: "[PHP-DEV] Bug #13095: Deadlock in mod_mm (garbage collection)"
- Previous message: Jeroen van Wolffelaar: "Re: [PHP-DEV] [C] struct, function pointers question"
- In reply to: Jeroen van Wolffelaar: "Re: [PHP-DEV] [C] struct, function pointers question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 20:41 02-09-01, Jeroen van Wolffelaar wrote:
>Hi,
>
>I'm sure there's some simple (stupid?) error, which an experienced
>C-programmer can see immediately... But I don't.
>
> > You're missing a variable name (you only put a type), and the line is not
> > in the beginning of a code block (there's a statement before it).
>
>php_randgen_entry is (supposed to be) a type.
>php_randgen_entries is (supposed to be) a variable.
>
>php_randgen_entries[3] = { ... };
>is (supposed to be) a statement.
Ah, I thought that you meant to declare a variable here. The problem is
different then - C doesn't support assigning to multiple struct members at
once. You can only do that when you initialize a variable.
Zeev
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: csaout <email protected>: "[PHP-DEV] Bug #13095: Deadlock in mod_mm (garbage collection)"
- Previous message: Jeroen van Wolffelaar: "Re: [PHP-DEV] [C] struct, function pointers question"
- In reply to: Jeroen van Wolffelaar: "Re: [PHP-DEV] [C] struct, function pointers question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

