Modified the file locking behavior so that the command "locking" is

recognized as a valid command when file locking has been disabled as
a compile-time option.  The command then generates an error on
"locking enable" but simply ignores the command "locking disable".
This commit is contained in:
Tim Edwards
2022-04-25 13:23:29 -04:00
parent fd4f239e2d
commit fe2eb6d390
5 changed files with 29 additions and 9 deletions
-4
View File
@@ -47,9 +47,7 @@ extern void CmdEdit(), CmdElement(), CmdErase(), CmdExpand(), CmdExtract();
extern void CmdFeedback(), CmdFill(), CmdFindBox(), CmdFindLabel(), CmdFlush();
extern void CmdGetcell(), CmdGrid(), CmdIdentify();
extern void CmdLabel(), CmdLoad();
#ifdef FILE_LOCKS
extern void CmdLocking();
#endif
extern void CmdMove(), CmdNetlist(), CmdOrient(), CmdPaint(), CmdPath();
extern void CmdPlow(), CmdPolygon(), CmdPort(), CmdProperty();
extern void CmdRandom(), CmdSave(), CmdScaleGrid(), CmdSee();
@@ -372,11 +370,9 @@ DBWInitCommands()
WindAddCommand(DBWclientID,
"load [cellname] load a cell into a window",
CmdLoad, FALSE);
#ifdef FILE_LOCKS
WindAddCommand(DBWclientID,
"locking [enable|disable] enable or disable file locking",
CmdLocking, FALSE);
#endif
WindAddCommand(DBWclientID,
"move [dir [amount]] OR\n"
"move to x y move box and selection, either by amount\n\