Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
ce574f26
Commit
ce574f26
authored
24 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Prepended js_ to CreateSystem/UserObject function names.
Added js_CreateFileAreaObject function.
parent
c0a90ae4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/sbbs.h
+6
-2
6 additions, 2 deletions
src/sbbs3/sbbs.h
src/sbbs3/sysobj.c
+1
-1
1 addition, 1 deletion
src/sbbs3/sysobj.c
src/sbbs3/userobj.c
+1
-1
1 addition, 1 deletion
src/sbbs3/userobj.c
with
8 additions
and
4 deletions
src/sbbs3/sbbs.h
+
6
−
2
View file @
ce574f26
...
...
@@ -772,12 +772,16 @@ extern "C" {
#ifdef JAVASCRIPT
/* sysobj.c */
DLLEXPORT
JSObject
*
DLLCALL
CreateSystemObject
(
scfg_t
*
cfg
,
JSContext
*
cx
,
JSObject
*
parent
);
DLLEXPORT
JSObject
*
DLLCALL
js_
CreateSystemObject
(
scfg_t
*
cfg
,
JSContext
*
cx
,
JSObject
*
parent
);
/* userobj.c */
DLLEXPORT
JSObject
*
DLLCALL
CreateUserObject
(
scfg_t
*
cfg
,
JSContext
*
cx
,
JSObject
*
parent
DLLEXPORT
JSObject
*
DLLCALL
js_
CreateUserObject
(
scfg_t
*
cfg
,
JSContext
*
cx
,
JSObject
*
parent
,
char
*
name
,
user_t
*
user
);
/* fileobj.c */
DLLEXPORT
JSObject
*
DLLCALL
js_CreateFileAreaObject
(
scfg_t
*
cfg
,
JSContext
*
cx
,
JSObject
*
parent
,
user_t
*
user
,
char
*
html_index_file
);
#endif
#ifdef SBBS
/* These aren't exported */
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/sysobj.c
+
1
−
1
View file @
ce574f26
...
...
@@ -318,7 +318,7 @@ static JSClass js_sysstats_class = {
};
JSObject
*
DLLCALL
CreateSystemObject
(
scfg_t
*
cfg
,
JSContext
*
cx
,
JSObject
*
parent
)
JSObject
*
DLLCALL
js_
CreateSystemObject
(
scfg_t
*
cfg
,
JSContext
*
cx
,
JSObject
*
parent
)
{
JSObject
*
sysobj
;
JSObject
*
statsobj
;
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/userobj.c
+
1
−
1
View file @
ce574f26
...
...
@@ -436,7 +436,7 @@ static JSClass js_user_security_class = {
,
JS_FinalizeStub
/* finalize */
};
JSObject
*
DLLCALL
CreateUserObject
(
scfg_t
*
cfg
,
JSContext
*
cx
,
JSObject
*
parent
,
char
*
name
,
user_t
*
user
)
JSObject
*
DLLCALL
js_
CreateUserObject
(
scfg_t
*
cfg
,
JSContext
*
cx
,
JSObject
*
parent
,
char
*
name
,
user_t
*
user
)
{
JSObject
*
userobj
;
JSObject
*
statsobj
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment