Re: CigWin, Windows service and main.c code question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 26 Apr 2001 00:03:09 +0200

Guido Serassio wrote:

> I'm trying to take the major part of win32 code in an additional module,
> win32.c, but now i need to call from this module some of the "-k" function
> family, rotate_logs and reconfigure. The problem is that are static
> functions, so now i don't know how to proceed.

There is no strict requirement to put win32 code in a specific file. It
may well be #ifdef within other files such as main.c.

If you have "library" type functions that are win32 specific and used
from more than one spot in Squid then putting them in a "win32.c" file
is preferred.

But you may also make now static functions global if you need so for
crossing file boundaries. Just remove "static", and add a prototype to
protos.h.

--
Henrik nordstrom
Squid Hacker
Received on Wed Apr 25 2001 - 17:05:24 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:48 MST