version 1.5, 2025/03/22 18:43:54
|
version 1.8, 2025/04/13 04:22:43
|
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.8 2025/04/13 04:22:43 snw |
|
* Fix snprintf calls |
|
* |
|
* Revision 1.7 2025/04/10 17:21:54 snw |
|
* Remove traces of BDB global handler |
|
* |
|
* Revision 1.6 2025/04/09 19:52:02 snw |
|
* Eliminate as many warnings as possible while building with -Wall |
|
* |
* Revision 1.5 2025/03/22 18:43:54 snw |
* Revision 1.5 2025/03/22 18:43:54 snw |
* Make STRLEN 255 chars and add BIGSTR macro for larger buffers |
* Make STRLEN 255 chars and add BIGSTR macro for larger buffers |
* |
* |
Line 128 void ssvn_global(short action, char *key
|
Line 137 void ssvn_global(short action, char *key
|
char gb_cpath[PATHLEN]; |
char gb_cpath[PATHLEN]; |
|
|
char ns_key[STRLEN]; |
char ns_key[STRLEN]; |
char ns_data[STRLEN]; |
|
|
|
long blkcount; |
long blkcount; |
|
|
Line 153 void ssvn_global(short action, char *key
|
Line 161 void ssvn_global(short action, char *key
|
goto done; |
goto done; |
} |
} |
|
|
snprintf (ns_key, 255, "^$SYSTEM\202MAPPINGS\202GLOBAL\202^%s\201", mref_get_subscript (r, 0)); |
snprintf (ns_key, STRLEN - 1, "^$SYSTEM\202MAPPINGS\202GLOBAL\202^%s\201", mref_get_subscript (r, 0)); |
global (set_sym, ns_key, data); |
symtab_shm (set_sym, ns_key, data); |
|
|
goto done; |
goto done; |
|
|
Line 165 void ssvn_global(short action, char *key
|
Line 173 void ssvn_global(short action, char *key
|
goto done; |
goto done; |
} |
} |
|
|
snprintf (ns_key, STRLEN, "^$SYSTEM\202MAPPINGS\202GLOBAL\202^%s\201", mref_get_subscript (r, 0)); |
snprintf (ns_key, STRLEN - 1, "^$SYSTEM\202MAPPINGS\202GLOBAL\202^%s\201", mref_get_subscript (r, 0)); |
global (kill_sym, ns_key, data); |
symtab_shm (kill_sym, ns_key, data); |
|
|
goto done; |
goto done; |
|
|
Line 344 void ssvn_global(short action, char *key
|
Line 352 void ssvn_global(short action, char *key
|
|
|
} |
} |
else if (strcmp (mref_get_subscript (r, 1), "BYTES") == 0) { |
else if (strcmp (mref_get_subscript (r, 1), "BYTES") == 0) { |
|
|
FILE *fp; |
|
long bytecount; |
long bytecount; |
|
|
stcpy (gb_cpath, gb_path); |
stcpy (gb_cpath, gb_path); |
Line 356 void ssvn_global(short action, char *key
|
Line 362 void ssvn_global(short action, char *key
|
sprintf (data, "%ld\201", bytecount); |
sprintf (data, "%ld\201", bytecount); |
|
|
merr_raise (OK); |
merr_raise (OK); |
goto done; |
goto done; |
|
|
} |
} |
|
|
merr_raise (M38); |
merr_raise (M38); |
Line 390 short frm_global_exists(char *gbl_namesp
|
Line 395 short frm_global_exists(char *gbl_namesp
|
int ierr_sav = OK; |
int ierr_sav = OK; |
|
|
if (global_name[0] != '^') { |
if (global_name[0] != '^') { |
snprintf (mapk_buf, STRLEN, "^$SYSTEM\202MAPPINGS\202GLOBAL\202^%s\201", global_name); |
snprintf (mapk_buf, STRLEN - 1, "^$SYSTEM\202MAPPINGS\202GLOBAL\202^%s\201", global_name); |
} |
} |
else { |
else { |
snprintf (mapk_buf, STRLEN, "^$SYSTEM\202MAPPINGS\202GLOBAL\202%s\201", global_name); |
snprintf (mapk_buf, STRLEN - 1, "^$SYSTEM\202MAPPINGS\202GLOBAL\202%s\201", global_name); |
} |
} |
|
|
global (get_sym, mapk_buf, mapd_buf); |
symtab_shm (get_sym, mapk_buf, mapd_buf); |
|
|
stcnv_m2c (mapd_buf); |
stcnv_m2c (mapd_buf); |
|
|
Line 433 short frm_global_exists(char *gbl_namesp
|
Line 438 short frm_global_exists(char *gbl_namesp
|
stcnv_m2c (goobuf); |
stcnv_m2c (goobuf); |
|
|
if (global_name[0] != '^') { |
if (global_name[0] != '^') { |
snprintf (glofile, PATHLEN, "%s/^%s", goobuf, global_name); |
snprintf (glofile, PATHLEN - 1, "%s/^%s", goobuf, global_name); |
} |
} |
else { |
else { |
snprintf (glofile, PATHLEN, "%s/%s", goobuf, global_name); |
snprintf (glofile, PATHLEN - 1, "%s/%s", goobuf, global_name); |
} |
} |
|
|
strcpy (gbl_path, glofile); |
strcpy (gbl_path, glofile); |