mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-07 01:44:29 +02:00
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:
@@ -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\
|
||||
|
||||
Reference in New Issue
Block a user