version 1.17, 2025/03/30 01:36:58
|
version 1.18, 2025/03/31 16:33:56
|
Line 24
|
Line 24
|
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
* $Log$ |
* $Log$ |
|
* Revision 1.18 2025/03/31 16:33:56 snw |
|
* Work on fmadm edit global |
|
* |
* Revision 1.17 2025/03/30 01:36:58 snw |
* Revision 1.17 2025/03/30 01:36:58 snw |
* Make it easier to bring back fma_gedit, fix double-free in global handler, limit $CHAR to 7-bit ASCII |
* Make it easier to bring back fma_gedit, fix double-free in global handler, limit $CHAR to 7-bit ASCII |
* |
* |
Line 1055 int fm_edit (short object, int optc, cha
|
Line 1058 int fm_edit (short object, int optc, cha
|
case OBJ_ROUTINE: |
case OBJ_ROUTINE: |
return fma_routines_edit (optc, options); |
return fma_routines_edit (optc, options); |
|
|
/*case OBJ_GLOBAL: |
case OBJ_GLOBAL: |
return fma_globals_edit (optc, options); |
return fma_globals_edit (optc, options); |
*/ |
|
|
|
default: |
default: |
fprintf (stderr, "fmadm: 'edit' is an invalid action for '%s'\n", obj_str); |
fprintf (stderr, "fmadm: 'edit' is an invalid action for '%s'\n", obj_str); |
return 1; |
return 1; |
Line 1093 void fm_reconfigure(void)
|
Line 1095 void fm_reconfigure(void)
|
retval = rename (config_file, config_backup); |
retval = rename (config_file, config_backup); |
|
|
if (retval == 0) { |
if (retval == 0) { |
fprintf (stderr, "[OK]\n\n"); |
fprintf (stderr, "[OK]\n"); |
|
|
fm_configure (); |
fm_configure (); |
|
|
Line 1152 void fm_configure (void)
|
Line 1154 void fm_configure (void)
|
} |
} |
|
|
if (file_exists (config_file)) { |
if (file_exists (config_file)) { |
fprintf (stderr, "fmadm: '%s' already exists.\n\n", config_file); |
fprintf (stderr, "fmadm: '%s' already exists; running fmadm reconfigure instead\n", config_file); |
fprintf (stderr, "'fmadm configure' may only be used on a fresh installation of FreeM.\n"); |
fm_reconfigure (); |
exit (1); |
return; |
} |
} |
|
|
|
|