cURL / Mailing Lists / curl-library / Single Mail


Re: VMS fixes needed to allow building

From: Tom Grace <>
Date: Tue, 12 Mar 2013 23:22:00 +0000

>From: Yang Tse <<>>

>> $ diff tool_main.c ;1
>> ************
>> 55 globaldef int vms_show = 0;
>> 56 #endif
>> ******
>> 55 static int vms_show = 0;
>> 56 #endif
>> ************

>Ok, I understand that declaring it with 'globaldef' instead of
>'static' in tool_main.c makes it a single instance variabe that is
>'visible' and can be modified from any other source file which happens
>to include tool_vms.h with its forward-declaration. Is this correct?

Oh yea,, a more portable version of globaldef is to just say
the following placed Outside the function, But the globaldef
could be placed anywhere.

int vms_show; /* placed outside the function */

The above will also work as the edit for tool_main.c

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at

List admin:
Received on 2013-03-13