"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/pacparser.c" between
pacparser-1.3.8.tar.gz and pacparser-1.3.9.tar.gz

About: pacparser is a library to parse Proxy Auto-Config (PAC) files (incl. a pactester).

pacparser.c  (pacparser-1.3.8):pacparser.c  (pacparser-1.3.9)
skipping to change at line 260 skipping to change at line 260
static JSRuntime *rt = NULL; static JSRuntime *rt = NULL;
static JSContext *cx = NULL; static JSContext *cx = NULL;
static JSObject *global = NULL; static JSObject *global = NULL;
static JSClass global_class = { static JSClass global_class = {
"global",0, "global",0,
JS_PropertyStub,JS_PropertyStub,JS_PropertyStub,JS_PropertyStub, JS_PropertyStub,JS_PropertyStub,JS_PropertyStub,JS_PropertyStub,
JS_EnumerateStub,JS_ResolveStub,JS_ConvertStub,JS_FinalizeStub JS_EnumerateStub,JS_ResolveStub,JS_ConvertStub,JS_FinalizeStub
}; };
// Set my (client's) IP address to a custom value. // Set my (client's) IP address to a custom value.
void int
pacparser_setmyip(const char *ip) pacparser_setmyip(const char *ip)
{ {
if (strlen(ip) > INET6_ADDRSTRLEN) {
fprintf(stderr, "pacparser_setmyip: IP too long: %s\n", ip);
return 0;
}
myip = malloc(strlen(ip) +1); // Allocate space just to be sure. myip = malloc(strlen(ip) +1); // Allocate space just to be sure.
strcpy(myip, ip); strcpy(myip, ip);
return 1;
} }
// Decprecated: This function doesn't do anything. // Decprecated: This function doesn't do anything.
// //
// This function doesn't do anything. Microsoft exntensions are now enabled by // This function doesn't do anything. Microsoft exntensions are now enabled by
// default. // default.
void void
pacparser_enable_microsoft_extensions() pacparser_enable_microsoft_extensions()
{ {
return; return;
 End of changes. 3 change blocks. 
1 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)