mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-04 21:04:18 +01:00
simplify WMWritePropListToFile()
remove the choice of atomic/non-atomic writes. firstly, the only users of non-atomic writes were getstyle and geticonset; secondly, who in their right minds would ever want non-atomic writes; thirdly, the file system will screw you anyway *G*.
This commit is contained in:
committed by
Carlos R. Mafra
parent
833128385f
commit
badecc244b
@@ -837,7 +837,7 @@ char* WMGetPropListDescription(WMPropList *plist, Bool indented);
|
||||
|
||||
WMPropList* WMReadPropListFromFile(char *file);
|
||||
|
||||
Bool WMWritePropListToFile(WMPropList *plist, char *path, Bool atomically);
|
||||
Bool WMWritePropListToFile(WMPropList *plist, char *path);
|
||||
|
||||
/*......................................................................*/
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ typedef WMPropList* proplist_t;
|
||||
#define PLGetDataDescription(pl) WMGetPropListDescription(pl, False)
|
||||
|
||||
#define PLGetProplistWithPath(file) WMReadPropListFromFile(file)
|
||||
#define PLSave(pl, file, atm) WMWritePropListToFile(pl, file, atm)
|
||||
#define PLSave(pl, file, atm) WMWritePropListToFile(pl, file)
|
||||
|
||||
|
||||
/* Unsupported functions. Do not ask for them. They're evil :P */
|
||||
|
||||
Reference in New Issue
Block a user