cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: VMS fixes needed to allow building

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

>From: Yang Tse <yangsita_at_gmail.com<mailto:yangsita_at_gmail.com?Subject=Re:%20VMS%20fixes%20needed%20to%20allow%20building.>>

>> $ diff tool_main.c ;1
>> ************
>> File DISK$USER1:[TGRACE.CURL.CURL-7_29_0.SRC]TOOL_MAIN.C;3
>> 55 globaldef int vms_show = 0;
>> 56 #endif
>> ******
>> File DISK$USER1:[TGRACE.CURL.CURL-7_29_0.SRC]TOOL_MAIN.C;1
>> 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 http://www.amdocs.com/email_disclaimer.asp

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-03-13