search for: inigetfiledatafromfilenam

Displaying 2 results from an estimated 2 matches for "inigetfiledatafromfilenam".

2007 Apr 13
3
Just another ini patch
Hi, well after some ever further investigation of some bugs, I ended up cleaning up the code, again. I also fixed some really heavy memory leaks in csvToList and made it in general more stable. Regards, Patrick "Marex" Niklaus -------------- next part -------------- A non-text attachment was scrubbed... Name: ini.c.patch Type: text/x-patch Size: 8275 bytes Desc: not available Url :
2007 Apr 11
2
Patch for ini plugin
...CTION_TYPE_EDGE, + ACTION_TYPE_EDGEBUTTON, + ACTION_TYPES_NUM +}; - a->bell = FALSE; +typedef struct _IniAction { + char *realOptionName; + unsigned int valueMasks; + CompAction a; +} IniAction; - a->edgeMask = 0; - a->edgeButton = 0; -} static IniFileData * iniGetFileDataFromFilename (CompDisplay *d, @@ -471,6 +493,135 @@ iniMakeDirectories (void) } static Bool +findActionType(char *optionName, int *type) +{ + char * optionType = strrchr(optionName, '_'); + if (!optionType) + return FALSE; + + optionType++; // skip the '_' + + int i; + f...