-
src/sbbs3/js_global.c
From
deuce@VERT to
CVS commit on Mon Oct 22 23:31:43 2012
src/sbbs3 js_global.c 1.315 1.316
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv11276
Modified Files:
js_global.c
Log Message:
Add a get_size() global command which returns the stored size of an object.
---
þ Synchron
-
From
deuce@VERT to
CVS commit on Tue Oct 23 01:39:58 2012
src/sbbs3 js_global.c 1.316 1.317
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv12324
Modified Files:
js_global.c
Log Message:
Fix warnings.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.ne
-
From
deuce@VERT to
CVS commit on Sun Oct 28 19:15:42 2012
src/sbbs3 js_global.c 1.317 1.318
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv1758
Modified Files:
js_global.c
Log Message:
get_size() only works on objects... fix crash.
---
þ Synchronet þ Vertrauen þ Home of Synch
-
From
rswindell@VERT to
CVS commit on Wed Oct 31 11:05:21 2012
src/sbbs3 js_global.c 1.318 1.319
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv25163
Modified Files:
js_global.c
Log Message:
Fix MSVC compile error (this ain't no GCC where you can just make up your own compiler rules anytime you like) in js_get_size().
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Wed Nov 21 22:30:19 2012
src/sbbs3 js_global.c 1.319 1.320
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv5407
Modified Files:
js_global.c
Log Message:
Hopefully fix crash reported by McSteve in html_encode(), apparently caused
by the great "Fix warnings" commit by Deuce. :-)
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Wed Nov 21 22:52:52 2012
src/sbbs3 js_global.c 1.320 1.321
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv5710
Modified Files:
js_global.c
Log Message:
Instead of beating the code with typecasts, express the operations the
"right" way.
---
þ
-
From
deuce@VERT to
CVS commit on Wed Nov 21 23:03:15 2012
src/sbbs3 js_global.c 1.321 1.322
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv5874
Modified Files:
js_global.c
Log Message:
Remove pointless typecast.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.
-
From
deuce@VERT to
CVS commit on Wed Nov 21 23:20:31 2012
src/sbbs3 js_global.c 1.322 1.323
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv6012
Modified Files:
js_global.c
Log Message:
Remove more typcasts, fix the CTRL-A codes higher than 0x7f
---
þ Synchronet þ Vertrauen þ Ho
-
From
deuce@VERT to
CVS commit on Thu Feb 7 16:49:48 2013
src/sbbs3 js_global.c 1.323 1.324
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv21809
Modified Files:
js_global.c
Log Message:
Eliminate the evil _TO_STRING() macro usage as well as various bugs and
broken bits. Hopefully there aren't any new improved bugs or broken bits,
but I wouldn't bet on that.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Sat Mar 16 01:50:24 2013
src/sbbs3 js_global.c 1.325 1.326
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv15678
Modified Files:
js_global.c
Log Message:
Add a flatten() command which takes a string as an argument.
This is to deal with the fact that when you concatenate JS strings, the JS engine simply notes that they are concatenated, but keeps all the original strings around until something flattens them. This code:
for(;;) {
str += ascii(random(256));
log(str.length);
}
Fails when str reaches about 256KiB then crashes with out of memory but
this code:
for(;;) {
str += ascii(random(256));
log(str.length);
}
Reaches a size of 4MB without stopping.
Any time you actually paw through the string, it gets flattened, but when
you do a bunch of concatenation, manually flattening can be a Good Thing.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Sat Mar 16 02:00:24 2013
src/sbbs3 js_global.c 1.326 1.327
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv15978
Modified Files:
js_global.c
Log Message:
Fix version for get_size() and flatten()
---
þ Synchronet þ Vertrauen þ Home of Synchronet
-
From
deuce@VERT to
CVS commit on Sat Mar 16 02:08:52 2013
src/sbbs3 js_global.c 1.327 1.328
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv16053
Modified Files:
js_global.c
Log Message:
Fix return/parameter types for get_size() and flatten()
---
þ Synchronet þ Vertrauen þ Hom
-
From
rswindell@VERT to
CVS commit on Thu May 9 13:04:15 2013
src/sbbs3 js_global.c 1.329 1.330
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv15004
Modified Files:
js_global.c
Log Message:
Added comment where MSVC detected a heap corruption. Needs to be looked into
by whomever wrote js_internal_charfunc().
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Thu May 9 13:26:39 2013
src/sbbs3 js_global.c 1.330 1.331
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv15257
Modified Files:
js_global.c
Log Message:
backslash() needs an extra byte available after the end of the string.
---
þ Synchronet þ
-
From
rswindell@VERT to
CVS commit on Mon May 13 08:40:19 2013
src/sbbs3 js_global.c 1.332 1.333
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv29345
Modified Files:
js_global.c
Log Message:
MSVC-detected heap corruption not fixed. Added call stack trace to comment.. Does strlen include NULL terminator?
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Mon May 13 08:49:39 2013
src/sbbs3 js_global.c 1.333 1.334
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv29444
Modified Files:
js_global.c
Log Message:
No, the well-named strlen variable does not include the NULL terminator
Mr. Smarty Pants.
-
-
From
rswindell@VERT to
CVS commit on Sat May 18 17:29:12 2013
src/sbbs3 js_global.c 1.334 1.335
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv1994
Modified Files:
js_global.c
Log Message:
Fix bugs in js_internal_charfunc when extra_bytes was non-zero.
---
þ Synchronet þ Vertrauen þ
-
From
rswindell@VERT to
CVS commit on Sun May 4 00:09:19 2014
src/sbbs3 js_global.c 1.336 1.337
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv23739
Modified Files:
js_global.c
Log Message:
Resolve semaphore leak (handle leak on Windows, at least), resulting in an eventual failure to open any files or even log the failure in the error.log.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Sat Nov 8 03:02:41 2014
src/sbbs3 js_global.c 1.337 1.338
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv5159
Modified Files:
js_global.c
Log Message:
Allow ascii(0) to return a string one character long containing a NULL. Previously, it returned a zero-length string.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Thu Aug 20 00:10:06 2015
src/sbbs3 js_global.c 1.341 1.342
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv11365
Modified Files:
js_global.c
Log Message:
Add TODO comment regarding the JS file_getext() method and change in behavior (return value) since v3.15.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Fri Aug 21 01:38:08 2015
src/sbbs3 js_global.c 1.342 1.343
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv30272
Modified Files:
js_global.c
Log Message:
Fix reported error where file_getext() didn't return undefined when there
was no extension.
If the specified function returns NULL, js_internal_charfunc will now
return undefined (in all cases). This also fixes file_getcase().
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Fri Aug 21 22:39:49 2015
src/sbbs3 js_global.c 1.343 1.344
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv26684
Modified Files:
js_global.c
Log Message:
Fix warnings.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Wed Sep 2 18:24:38 2015
src/sbbs3 js_global.c 1.344 1.345
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv9043
Modified Files:
js_global.c
Log Message:
Fix html_encode() Unicode code points for character values 0x10 and 0x11 to map to glyphs found in the Courier New font. When mapped to code points not present in the monospace/courier font family, a different (proportional) font is used which messes up the "ANSI graphics" display.
- 0x10 is now mapped to U+9658 (black right-pointing pointer) instead of U+9658
(black right-pointing triangle)
- 0x11 is now mapped to U+9668 (black left-pointing pointer) instead of U+9664
(black left-pointing triangle)
Incidentally, 0x1e and 0x1f were already mapped correctly.
Also fixed:
- 0x16 now maps to U+9604 (lower half black) instead of U+9644 (black rectangle)
Added some helpful comments (hex values, ASCII values).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Thu Sep 17 12:26:56 2015
src/sbbs3 js_global.c 1.345 1.346
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv4912
Modified Files:
js_global.c
Log Message:
We can't use 0x2584 for \x16 since that is the same as \xCD and the two are visually distinct, and \x16 doesn't connect to the right or to the bottom.
This glyph is in Courier New, so simply revert to the previous "black rectange" value.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Sat Nov 7 23:52:13 2015
src/sbbs3 js_global.c 1.349 1.350
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv26453
Modified Files:
js_global.c
Log Message:
Use the same global methods for background threads as foreground ones.
Once again, actually using these is NOT SAFE, you need to pay very close attention to the C source code to know what functions you can use in multiple threads.
The log function gets overwritten, so it should remain somewhat safe, but everything else is a potential bug in your background script.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Sat Nov 14 18:36:43 2015
src/sbbs3 js_global.c 1.350 1.351
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv26110
Modified Files:
js_global.c
Log Message:
Strip &lmr; and ‏ non-printing entities from decoded HTML.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Sat Nov 14 22:59:12 2015
src/sbbs3 js_global.c 1.351 1.352
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv1687
Modified Files:
js_global.c
Log Message:
Create stdio objects in background threads if they exist in the foreground. These bits may need protection to ensure they are the CORRECT objects.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
Deuce@VERT to
rswindell on Sun Nov 15 08:11:44 2015
Re: src/sbbs3/js_global.c
By: rswindell to CVS commit on Sat Nov 14 2015 06:36 pm
Modified Files:
js_global.c
Log Message:
Strip &lmr; and ‏ non-printing entities from decoded HTML.
If you're going to handle HTML5 entities, you may want to go through the whole table here:
http://www.w3.org/TR/2014/REC-html5-20141028/syntax.html#named-character-refere nces
---
http://DuckDuckGo.com/ a better search engine that respects your privacy.
Mro is an idiot. Please ignore him, we keep hoping he'll go away.
þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
-
From
Digital Man@VERT to
Deuce on Sun Nov 15 12:55:28 2015
Re: src/sbbs3/js_global.c
By: Deuce to rswindell on Sun Nov 15 2015 08:11 am
Re: src/sbbs3/js_global.c
By: rswindell to CVS commit on Sat Nov 14 2015 06:36 pm
Modified Files:
js_global.c
Log Message:
Strip &lmr; and ‏ non-printing entities from decoded HTML.
If you're going to handle HTML5 entities, you may want to go through the whole table here:
http://www.w3.org/TR/2014/REC-html5-20141028/syntax.html#named-character-ref ere nces
That's a big-ass table. I was just addressing the need (CNN put the ‎ entity in one of their recent alert messages).
digital man
Synchronet "Real Fact" #83:
The Electronic Frontier Foundation used to run Synchronet (circa 1993).
Norco, CA WX: 66.3øF, 50.0% humidity, 5 mph NE wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
Deuce@VERT to
Digital Man on Sun Nov 15 14:10:19 2015
Re: src/sbbs3/js_global.c
By: Digital Man to Deuce on Sun Nov 15 2015 12:55 pm
If you're going to handle HTML5 entities, you may want to go through the whole table here:
http://www.w3.org/TR/2014/REC-html5-20141028/syntax.html#named-character- ref ere nces
That's a big-ass table. I was just addressing the need (CNN put the ‎ entity in one of their recent alert messages).
A lot of them can't be translated to CP437 though... and perhaps unhandled entities should be translated to a place holder rather than passed through.
---
http://DuckDuckGo.com/ a better search engine that respects your privacy.
Mro is an idiot. Please ignore him, we keep hoping he'll go away.
þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
-
From
Digital Man@VERT to
Deuce on Sun Nov 15 15:44:29 2015
Re: src/sbbs3/js_global.c
By: Deuce to Digital Man on Sun Nov 15 2015 02:10 pm
Re: src/sbbs3/js_global.c
By: Digital Man to Deuce on Sun Nov 15 2015 12:55 pm
If you're going to handle HTML5 entities, you may want to go through the whole table here:
http://www.w3.org/TR/2014/REC-html5-20141028/syntax.html#named-charact er- ref ere nces
That's a big-ass table. I was just addressing the need (CNN put the ‎ entity in one of their recent alert messages).
A lot of them can't be translated to CP437 though... and perhaps unhandled entities should be translated to a place holder rather than passed through.
Or possibly stripped, but that could make it hard to debug unsupported entities that might otherwise create an obvious "gap" in the ASCII output. Having the unsupported entity passed-through makes it obvious and can be dealt with (e.g. either stripped or translated) as needed.
digital man
Synchronet "Real Fact" #71:
Synchronet CIOXTRN (created by Deuce) is a 32-bit replacement for DOORWAY. Norco, CA WX: 59.5øF, 64.0% humidity, 3 mph ENE wind, 0.00 inches rain/24hrs ---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Sun Nov 15 21:32:57 2015
src/sbbs3 js_global.c 1.352 1.353
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv4938
Modified Files:
js_global.c
Log Message:
Call js_PrepareToExecute() for background scripts so that exec_path and
scope get set properly.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Tue Nov 17 16:59:18 2015
src/sbbs3 js_global.c 1.353 1.354
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv30537
Modified Files:
js_global.c
Log Message:
Add support for the "hellip" (horizontal ellipsis) HTML entity to the html_decode() function.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Sat Jan 2 17:20:05 2016
src/sbbs3 js_global.c 1.354 1.355
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv15207
Modified Files:
js_global.c
Log Message:
If JS exit() is called with a non-numeric argument, don't use it for the exit_code value.
---
-
From
rswindell@VERT to
CVS commit on Thu Feb 25 23:19:55 2016
src/sbbs3 js_global.c 1.356 1.357
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv6498
Modified Files:
js_global.c
Log Message:
Added HTML to ASCII conversions for entities: lsquo/rsquo (single-quote), ldquo/rdquo (double-quotes), and ndash/mdash (dash).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Sat Apr 23 17:20:22 2016
src/sbbs3 js_global.c 1.359 1.360
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv18548
Modified Files:
js_global.c
Log Message:
Add new global require([scope,] filename, 'propname'[, args]) method which load()s filename if propname is defined in scope (scope defaults to this.
Returns null if the file is not load()ed or the return value from load()
(last value of require()d file) if it is.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Sat Apr 23 17:26:21 2016
src/sbbs3 js_global.c 1.360 1.361
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv18683
Modified Files:
js_global.c
Log Message:
Fix tyops.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Sat Apr 23 17:41:34 2016
src/sbbs3 js_global.c 1.361 1.362
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv18975
Modified Files:
js_global.c
Log Message:
If the require()ed file is load()ed, and the symbol it checked is not defined after the load(), throw an error.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Tue Nov 29 12:24:23 2016
src/sbbs3 js_global.c 1.364 1.365
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv28208
Modified Files:
js_global.c
Log Message:
Convert "bull" HTML entity to EX-ASCII char 249 (bullet) in js_html_decode()
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Wed Nov 15 23:22:54 2017
src/sbbs3 js_global.c 1.365 1.366
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/home/rswindell/sbbs/src/sbbs3
Modified Files:
js_global.c
Log Message:
New global method: file_cdate() to get a file's creation time.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Thu Feb 22 02:02:24 2018
src/sbbs3 js_global.c 1.368 1.369
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv7015
Modified Files:
js_global.c
Log Message:
file_cfgname() would do weird things if you passed only a single parameter.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Fri Mar 9 12:03:04 2018
src/sbbs3 js_global.c 1.369 1.370
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv3671
Modified Files:
js_global.c
Log Message:
Fix spectacularly bad bug in the cksum_calc() global method.
Thanks scan-build!
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Fri Mar 9 12:04:37 2018
src/sbbs3 js_global.c 1.370 1.371
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv4624
Modified Files:
js_global.c
Log Message:
sp = p, not 0.
(fix last commit)
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Fri Mar 9 22:12:50 2018
src/sbbs3 js_global.c 1.372 1.373
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv16738
Modified Files:
js_global.c
Log Message:
Fix warnings.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Thu Apr 5 19:47:06 2018
src/sbbs3 js_global.c 1.373 1.374
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/home/rswindell/sbbs/src/sbbs3
Modified Files:
js_global.c
Log Message:
Resolve GCC warning: cast from pointer to integer of different size
in expansion of macro 'JS_ARGS_OFFSET':
unsigned long is the same size as a pointer (rather than unsigned int)
on the supported target platforms/tool-chains.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Mon Apr 22 22:32:43 2019
src/sbbs3 js_global.c 1.377 1.378
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv25955
Modified Files:
js_global.c
Log Message:
Add missing comma to JSDOC line
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sun May 5 18:58:56 2019
src/sbbs3 js_global.c 1.380 1.381
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv20279
Modified Files:
js_global.c
Log Message:
html_decode() - add support for the following HTML 4 entities:
- "lsaquo" and "rsaquo" (angled versions of "lsquo" and "rsquo")
- "zwj" and "znnj" (zero-width joiner / non-joiner)
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Thu May 9 14:01:05 2019
src/sbbs3 js_global.c 1.381 1.382
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/home/rswindell/sbbs/src/sbbs3
Modified Files:
js_global.c
Log Message:
Added todo comment about require() behavior which is unexpected when the passesd filename is not found - function reports the symbol was not
defined rather than file not found or something similar.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sun May 19 23:59:56 2019
src/sbbs3 js_global.c 1.382 1.383
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/home/rswindell/sbbs/src/sbbs3
Modified Files:
js_global.c
Log Message:
Fix require(): if load() fails with exception, don't report a "symbol
not defined" exception, just report the load() exception - whatever it was (e.g. could not open load-file).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sun Jul 14 01:18:32 2019
src/sbbs3 js_global.c 1.384 1.385
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv9081
Modified Files:
js_global.c
Log Message:
New JS global method: file_chmod(), changes a file's mode value ala *nix chmod. Really only useful on *nix since Windows only allows the setting/clearing of
a single mode flag: user-writeable, 0x80, 0200.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sun Jul 14 19:53:42 2019
src/sbbs3 js_global.c 1.385 1.386
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv26683
Modified Files:
js_global.c
Log Message:
New global JS function: file_mode()
This function behaves the same as file_attrib() on *nix, but on Windows, file_mode() returns a *nix/stat style st_mode value (compatible with file_chmod) while file_attrib() returns the struct _finddata_t 'attrib' value, which is a quite different value (e.g. indicates Windows/DOS centric file attributes like "archive", "hidden", etc.) and is *incompatible* with file_chmod(). So if you're going to modify a file's permissions (mode), use file_mode() to read them and file_chmod() to save them.
file_attrib() should really only be used on Windows and only for checking for attributes like "hidden", "archive", etc. (which don't exist on *nix).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sun Aug 4 01:26:01 2019
src/sbbs3 js_global.c 1.386 1.387
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv21380
Modified Files:
js_global.c
Log Message:
Make it clear, hopefully, that resolve_ip() can only return an array upon success. Upon failure to resolve, resolve_ip() returns null.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Wed Aug 7 20:53:45 2019
src/sbbs3 js_global.c 1.387 1.388
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/home/rswindell/sbbs/src/sbbs3
Modified Files:
js_global.c
Log Message:
Debug-level log message when invoking a background-load()
Fixed typo in other log msg.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Tue Aug 20 10:33:49 2019
src/sbbs3 js_global.c 1.388 1.389
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv5097
Modified Files:
js_global.c
Log Message:
Make the load()/require() search path of last resort the CWD. This makes the error message if failure to find the file to load less confusing.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sun Aug 25 00:06:37 2019
src/sbbs3 js_global.c 1.389 1.390
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv9152
Modified Files:
js_global.c
Log Message:
New global methods:
utf8_encode(): to convert a CP437 string or a single Unicode codepoint (number)
to UTF-8 encoded string
utf8_decode(): to convert a UTF-8 encoded string to a CP437 string
Move the require() enumeration to just below load() so it's documented closer to its dad in jsdocs.html
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Mon Aug 26 15:26:33 2019
src/sbbs3 js_global.c 1.390 1.391
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv20669
Modified Files:
js_global.c
Log Message:
New global function: utf8_width()
- returns the fixed printed-width of the specified UTF-8 encoded string
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tue Aug 27 10:40:35 2019
src/sbbs3 js_global.c 1.391 1.392
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv25850
Modified Files:
js_global.c
Log Message:
Search the current scope for the js object to locate the current scope in,
not the global scope. This appears to be a systemic issue, and could even
be the root cause of the background log problem...
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tue Aug 27 11:06:29 2019
src/sbbs3 js_global.c 1.392 1.393
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv8511
Modified Files:
js_global.c
Log Message:
Search for the js and log objects in the current scope, not in the global object.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tue Aug 27 12:15:24 2019
src/sbbs3 js_global.c 1.393 1.394
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv17159
Modified Files:
js_global.c
Log Message:
Check the object scope after checking the current scope when looking for
the "js" object.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tue Aug 27 12:16:48 2019
src/sbbs3 js_global.c 1.394 1.395
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv17443
Modified Files:
js_global.c
Log Message:
Also check the object scope for the log function.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tue Aug 27 14:37:47 2019
src/sbbs3 js_global.c 1.395 1.396
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv3811
Modified Files:
js_global.c
Log Message:
Don't leave a pending exception on exit from js_global_resolve().
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Tue Aug 27 18:40:45 2019
src/sbbs3 js_global.c 1.396 1.397
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv10351
Modified Files:
js_global.c
Log Message:
Renaned utf8_width() to utf8_get_width()
New global functions:
- str_is_utf8()
- str_is_ascii()
- str_has_ctrl()
Return a more sensible value when 'null' is passed to the utf8_* functions. Updated some JSDOCS strings in regards to "extended-ASCII" and what that
means (in some cases, specifically CP437, in others, any non-ASCII chars).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Tue Aug 27 21:24:35 2019
src/sbbs3 js_global.c 1.397 1.398
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv1603
Modified Files:
js_global.c
Log Message:
New global JS function: str_is_utf16(), returns true if the passed string contains one or more UTF-16 encoded characters.
utf8_encode() can now accept a UTF-16 encoded string (e.g. "\u0f00") and will return the UTF-8 encoded version.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tue Sep 3 20:27:19 2019
src/sbbs3 js_global.c 1.398 1.399
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv3090
Modified Files:
js_global.c
Log Message:
Add an additional for of socket_select() that is passed multiple arrays.
It will return an object with properties corresponding to the passed
arrays, and the write parameter will be ignored. This allows usage very
much like the select() syscall, and allows a traditional non-blocking
server to be written.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Wed Sep 4 11:06:20 2019
src/sbbs3 js_global.c 1.399 1.400
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv489
Modified Files:
js_global.c
Log Message:
Fix single-array socket_select broken in previous commit.
This should fix the crash in ircd.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Mon Sep 16 22:29:55 2019
src/sbbs3 js_global.c 1.400 1.401
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv29158
Modified Files:
js_global.c
Log Message:
Do not re-create the result arrays for each socket that's read (derp).
This only impacts the new socket_select() method with multiple arrays.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Wed Sep 18 23:52:21 2019
src/sbbs3 js_global.c 1.401 1.402
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv28762
Modified Files:
js_global.c
Log Message:
Fix resource leak from background-load()'s:
The created message queue for each background-load()ed script was never detached-from by the child thread, so the linked-lists (and their semaphores) were never freed. Calling msgQueueDetach() before ending the background_thread fixes that leak.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
mark lewis@VERT to
rswindell on Fri Sep 20 21:19:42 2019
On 2019 Sep 18 23:52:20, you wrote to CVS commit:
src/sbbs3 js_global.c 1.401 1.402
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv28762
Modified Files:
js_global.c
Log Message:
Fix resource leak from background-load()'s:
The created message queue for each background-load()ed script was never detached-from by the child thread, so the linked-lists (and their semaphores) were never freed. Calling msgQueueDetach() before ending the background_thread fixes that leak.
so did my questioning about the background loading of dnshelper.js assist in finding this problem?? if so, YAY!
the main thing that triggered my thoughts on it, which i think i also asked about, was about using load vs require... i was thinking about other recent changes that switched from load to require to prevent multiple loadings of the same code which was also leading to problems of some sort...
in any case, this looks like it was a deep dig to root out... GoodJob!<tm> :)
)\/(ark
Once men turned their thinking over to machines in the hope that this would set
them free. But that only permitted other men with machines to enslave them.
... People who pun deserve to be drawn and quoted.
---
* Origin: (1:3634/12.73)
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Digital Man@VERT to
mark lewis on Sat Sep 21 02:02:14 2019
Re: src/sbbs3/js_global.c
By: mark lewis to rswindell on Fri Sep 20 2019 09:19 pm
so did my questioning about the background loading of dnshelper.js assist in finding this problem?? if so, YAY!
I don't recall that being discussed. It just a shot in the dark that lead to some clues.
digital man
Synchronet/BBS Terminology Definition #31:
FTP = File Transfer Protocol
Norco, CA WX: 63.0øF, 86.0% humidity, 0 mph SSW wind, 0.00 inches rain/24hrs ---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rampage@VERT/SESTAR to
Digital Man on Sat Sep 21 11:38:34 2019
Re: src/sbbs3/js_global.c
By: Digital Man to mark lewis on Sat Sep 21 2019 02:02:14
so did my questioning about the background loading of dnshelper.js assist in finding this problem?? if so, YAY!
I don't recall that being discussed. It just a shot in the dark that lead to some clues.
yeah, sorry, that was with my other account, wkitty42, on IRC on the 15th...
double spaced to try to prevent word wrapping from making dog's breakfast out of it... time stamps are UTC-0400...
----- snip -----
Sep 15 10:04:20 <wkitty42> why is dnshelper.js loaded by ircd.js multiple times? should it be "required" so it is loaded once and used for all? could this be one of the leaks being seen?
Sep 15 10:04:21 <wkitty42> Routing: from sestar.synchro.net: Received SQUIT *.synchro.net from wkitty42[
wkitty42@sestar.synchro.net] (wkitty42)
Sep 15 10:04:21 <wkitty42> Routing: from sestar.synchro.net: Closing Link: cvs.synchro.net (wkitty42)
Sep 15 10:04:21 <wkitty42> Routing: Auto-connecting to *.synchro.net
Sep 15 10:04:21 <wkitty42> Routing: Connected! Sending info...
Sep 15 10:04:21 <wkitty42> 0006 Accepted new connection: 71.95.196.34 port 6667
Sep 15 10:04:21 <wkitty42> JavaScript Background Load: /sbbs/exec/load/dnshelper.js
Sep 15 10:04:21 <wkitty42> Routing: Auto-connecting to *.synchro.net
Sep 15 10:04:21 <wkitty42> Routing: Connected! Sending info...
Sep 15 10:04:21 <wkitty42> 0008 Accepted new connection: 71.95.196.36 port 6667
Sep 15 10:04:21 <wkitty42> JavaScript Background Load: /sbbs/exec/load/dnshelper.js
[...]
Sep 15 10:21:09 <wkitty42> yeah, that's why i asked my question ;) i've seen vert having problems lately with such... not sure if that's because it is being run from services or not, though... i run mine from jsexec specifically to prevent it from bouncing all the time when i'm working on the board...
Sep 15 10:22:19 <wkitty42> so maybe that's why i don't see the problem that vert sees? does anyone else see the problem on their system? do they run from services or via jsexec?
----- snip -----
)\/(ark
---
þ Synchronet þ The SouthEast Star Mail HUB - SESTAR
-
From
Digital Man@VERT to
Rampage on Sat Sep 21 10:50:05 2019
Re: src/sbbs3/js_global.c
By: Rampage to Digital Man on Sat Sep 21 2019 11:38 am
Re: src/sbbs3/js_global.c
By: Digital Man to mark lewis on Sat Sep 21 2019 02:02:14
so did my questioning about the background loading of dnshelper.js assist in finding this problem?? if so, YAY!
I don't recall that being discussed. It just a shot in the dark that lead to some clues.
yeah, sorry, that was with my other account, wkitty42, on IRC on the 15th...
double spaced to try to prevent word wrapping from making dog's breakfast out of it... time stamps are UTC-0400...
----- snip -----
Sep 15 10:04:20 <wkitty42> why is dnshelper.js loaded by ircd.js multiple times? should it be "required" so it is loaded once and used for all? could this be one of the leaks being seen?
I don't recall seeing that. No, require() would not be of use there. Yes, the bg-load was the issue (not specific to dnshelper.js).
digital man
Synchronet "Real Fact" #43:
Synchronet added Baja/PCMS support with v2.00a (1994).
Norco, CA WX: 82.1øF, 45.0% humidity, 0 mph WSW wind, 0.00 inches rain/24hrs ---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Tue Sep 24 21:18:23 2019
src/sbbs3 js_global.c 1.402 1.403
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv24674
Modified Files:
js_global.c
Log Message:
Fix bug introduced in previous commit (rev 1.402) of this file:
The js_finalize_queue() is eventually called when garbage is collected and js_finalize_queue() calls msgQueueDetach(), so bg-load()s did not "leak" semaphores and this "fix" actually introduced a problem where the queue was detached too many times, leaving the ref count 0 while there was actually
a lingering reference (in the parent), leading to a crash as reported by echto (thanks, echto!).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sun Mar 1 10:45:41 2020
src/sbbs3 js_global.c 1.403 1.404
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv32349
Modified Files:
js_global.c
Log Message:
Resolve MSVC warnings:
src\sbbs3\js_global.c(3703): warning C4018: '<': signed/unsigned mismatch src\sbbs3\js_global.c(3761): warning C4018: '<': signed/unsigned mismatch src\sbbs3\js_global.c(3779): warning C4018: '<': signed/unsigned mismatch
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Wed Mar 11 11:08:35 2020
src/sbbs3 js_global.c 1.404 1.405
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv20519
Modified Files:
js_global.c
Log Message:
Document that mkpath() returns true if the path already exists.
ie: Does not return if the path was made or not.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Fri Apr 10 21:02:57 2020
src/sbbs3 js_global.c 1.405 1.406
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv20353
Modified Files:
js_global.c
Log Message:
When a server does a background load, this line would be logged to the terminal server (uck). Needs an lputs() callback or similar.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sun Apr 19 14:06:53 2020
src/sbbs3 js_global.c 1.406 1.407
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv8881
Modified Files:
js_global.c
Log Message:
Add global socket_errno_str property for cross-platform description of last socket-related error.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sat Aug 8 18:53:52 2020
src/sbbs3 js_global.c 1.408 1.409
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/home/rswindell/sbbs/src/sbbs3
Modified Files:
js_global.c
Log Message:
Bug-fix: global socket_errno_str property returned numeric value (not string).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to sbbs/master on Sat Sep 26 18:24:35 2020
https://gitlab.synchro.net/sbbs/sbbs/-/commit/7c12761d51ebc0a33482d62f
Modified Files:
src/sbbs3/js_global.c
Log Message:
Add global methods: strerror() and socket_strerror()
If you have a stored errno value (or Socket.error), these are how you convert that number to an error description.
---
ï¿ Synchronet ï¿ Vertrauen ï¿ Home of Synchronet ï¿ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Wed Dec 2 00:09:17 2020
https://gitlab.synchro.net/main/sbbs/-/commit/d083d463917d83c4e0e3fd02
Modified Files:
src/sbbs3/js_global.c
Log Message:
Don't log an error when JS resolve_ip() fails
e.g. don't log the error "term !ERROR resolve_ip example.com failed with error -2", just let the script deal with the failure and log an error if it wishes.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sun Jan 10 20:39:46 2021
https://gitlab.synchro.net/main/sbbs/-/commit/292c4acccd7805e22af91d7e
Modified Files:
src/sbbs3/js_global.c
Log Message:
String processing functions return null (instead of "null") when passed null
This was initially just done for lfexpand(), but then I realized there were a lot of these string processing functions that just checked for VOID
(undefined) argumnet value, but not null.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Deucе@VERT to
Git commit to main/sbbs/master on Thu Mar 25 22:56:46 2021
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Mon Apr 26 20:59:36 2021
-
From
Rob Swindell (on Debian Linux)@VERT to
Git commit to main/sbbs/master on Thu Mar 2 01:11:32 2023
-
From
Rob Swindell (in GitKraken)@VERT to
Git commit to main/sbbs/master on Mon Mar 13 18:31:32 2023
https://gitlab.synchro.net/main/sbbs/-/commit/8229b90607aa8e76e11ff2db
Modified Files:
src/sbbs3/js_global.c
Log Message:
Add new global JS function: rmfiles() (remove files)
number rmfiles(directory, spec=*, keep=0)
Removes files and sub-directories, recursively. Use with caution!
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell (on Debian Linux)@VERT to
Git commit to main/sbbs/master on Mon Mar 13 19:41:29 2023
-
From
Rob Swindell (on Windows)@VERT to
Git commit to main/sbbs/master on Tue May 23 18:47:17 2023
https://gitlab.synchro.net/main/sbbs/-/commit/1ea093ded702fc1c800b54fb
Modified Files:
src/sbbs3/js_global.c
Log Message:
Add new global method: strip_ctrl_a() - remove Ctrl-A sequences from string
Unlike strip_ctrl(), does not remove any other control characters from string. ---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell (on Windows)@VERT to
Git commit to main/sbbs/master on Fri Jul 7 18:39:53 2023
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Wed Nov 22 15:30:20 2023
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Sun Jan 21 15:02:04 2024
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Thu Feb 15 21:37:00 2024
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Mon Feb 26 22:41:59 2024
https://gitlab.synchro.net/main/sbbs/-/commit/e7738fa44ef19b502e9e0cf4
Modified Files:
src/sbbs3/js_global.c
Log Message:
Fix commit 78dc9470 - wasn't complete
For some reason, I committed test code that commented-out the actual call
to js_IsTerminated() which avoided the unnecessary error log message. I guess
I was testing to confirm the change actually worked. <shrug>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Thu Aug 8 21:12:19 2024
https://gitlab.synchro.net/main/sbbs/-/commit/d5516d0fdfa0683f399a977b
Modified Files:
src/sbbs3/js_global.c
Log Message:
Global JS exit() function now sets 'exit_code' to 0 by default
Calling exit() causes JS_ExecuteScript() to return false (same return value
as if there's a syntax error) - so if we always set exit_code in exit()
(even when not passed a parameter) and then use that exit code if the property is defined, then we get the -1 return value from js_execfile() if the script
is terminated prematurely without using exit().
This fixes the issue introduced in the previous commit where scripts that
call exit() - without any parameters, were causing errors to be logged about scripts (e.g. timed events) returning -1.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Deucе@VERT to
Git commit to main/sbbs/master on Thu Oct 3 14:20:31 2024
https://gitlab.synchro.net/main/sbbs/-/commit/0f00cbea87ded29aa84e6847
Modified Files:
src/sbbs3/js_global.c
Log Message:
Fix multi-array version of socket_select() when using poll()
Previously, when multiple lists were passed, the "write" parameter
(which can't be changed) was applied to all sockets. This means
they would always all be poll()ed for read, then checked for the
appropriate flag (read/write/priority)... which effectively meant
that only the first (read) array would work.
---
ï¿ Synchronet ï¿ Vertrauen ï¿ Home of Synchronet ï¿ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Thu Apr 10 20:03:21 2025