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
15ca9522
Commit
15ca9522
authored
5 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Changes needed for the use fo get_ctrl_dir() from str_util.c
parent
79a7ae79
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/sbbs3/sbbs3.sln
+3
-0
3 additions, 0 deletions
src/sbbs3/sbbs3.sln
src/sbbs3/text_defaults.c
+2
-3
2 additions, 3 deletions
src/sbbs3/text_defaults.c
src/sbbs3/textgen.c
+1
-25
1 addition, 25 deletions
src/sbbs3/textgen.c
src/sbbs3/textgen.vcxproj
+15
-2
15 additions, 2 deletions
src/sbbs3/textgen.vcxproj
with
21 additions
and
30 deletions
src/sbbs3/sbbs3.sln
+
3
−
0
View file @
15ca9522
...
...
@@ -64,6 +64,9 @@ EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "smbutil", "smbutil.vcxproj", "{D9C78CF8-0F08-417B-A242-22B86626F00D}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "textgen", "textgen.vcxproj", "{A41D7A4A-2173-4DF6-96AF-9575C069CA8A}"
ProjectSection(ProjectDependencies) = postProject
{7428A1E8-56B7-4868-9C0E-29D031689FEB} = {7428A1E8-56B7-4868-9C0E-29D031689FEB}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "uifc", "..\uifc\uifc.vcxproj", "{7BFB9820-0E57-4BE4-9BE9-E0A687874E19}"
EndProject
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/text_defaults.c
+
2
−
3
View file @
15ca9522
...
...
@@ -1364,8 +1364,7 @@ const char * const text_defaults[TOTAL_TEXT]={
"
\x53\x40\x20\x40\x45\x4c\x4c\x49\x50\x53\x49\x53\x40\x01\x6e\x0d\x0a\x40\x52\x45\x53\x45\x54\x50\x41\x55\x53\x45\x40
"
// 826 LoggingOn
,
"
\x01\x6e\x01\x62\x5b\x01\x68\x01\x77\x55\x01\x6e\x01\x62\x5d\x20\x01\x68\x49\x6e\x63\x6c\x75\x64\x65\x20\x55\x54\x46\x2d\x38\x20
"
"
\x43\x68\x61\x72\x61\x63\x74\x65\x72\x73\x20\x20\x20\x20\x20\x01\x6e\x01\x62\x3a\x20\x01\x63\x25\x73\x0d\x0a
"
// 827 QWKSettingsUtf8
,
"
\x01\x6e\x01\x6d\x01\x68\x25\x73\x01\x6e\x01\x6d\x20\x70\x6f\x73\x74\x65\x64\x20\x61\x20\x6d\x65\x73\x73\x61\x67\x65\x20\x74\x6f
"
"
\x20\x79\x6f\x75\x20\x76\x69\x61\x20\x01\x68\x25\x73\x01\x6e\x01\x6d\x0d\x0a\x6f\x6e\x20\x01\x68\x25\x73\x20\x01\x6e\x01\x6d\x25
"
"
\x73\x0d\x0a
"
// 828 MsgPostedToYouVia
,
"
\x01\x6e\x01\x6d\x01\x68\x25\x73\x01\x6e\x01\x6d\x25\x2e\x30\x73\x20\x70\x6f\x73\x74\x65\x64\x20\x74\x6f\x20\x79\x6f\x75\x20\x6f
"
"
\x6e\x20\x01\x68\x25\x73\x20\x01\x6e\x01\x6d\x25\x73\x0d\x0a
"
// 828 MsgPostedToYouVia
,
"
\x75\x6e\x6c\x69\x6d\x69\x74\x65\x64
"
// 829 Unlimited
};
This diff is collapsed.
Click to expand it.
src/sbbs3/textgen.c
+
1
−
25
View file @
15ca9522
...
...
@@ -2,34 +2,10 @@
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
#include
"sbbs.h"
#include
"dirwrap.h"
// MAX_PATH
#include
"gen_defs.h"
/****************************************************************************/
/* Converts an ASCII Hex string into an ulong */
/* by Steve Deppe (Ille Homine Albe) */
/****************************************************************************/
/* Copied from str_util.c */
ulong
ahtoul
(
char
*
str
)
{
ulong
l
,
val
=
0
;
while
((
l
=
(
*
str
++
)
|
0x20
)
!=
0x20
)
val
=
(
l
&
0xf
)
+
(
l
>>
6
&
1
)
*
9
+
val
*
16
;
return
(
val
);
}
void
truncsp
(
char
*
str
)
{
char
*
cp
=
strchr
(
str
,
0
);
if
(
cp
&&
cp
>
str
)
{
cp
--
;
while
(
cp
>
str
&&
isspace
(
*
cp
))
{
*
(
cp
--
)
=
0
;
}
}
}
/****************************************************************************/
/* Reads special TEXT.DAT printf style text lines, splicing multiple lines, */
/* replacing escaped characters, and allocating the memory */
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/textgen.vcxproj
+
15
−
2
View file @
15ca9522
...
...
@@ -36,6 +36,9 @@
<Import
Project=
"..\xpdev\xpdev.props"
/>
<Import
Project=
"..\build\undeprecate.props"
/>
<Import
Project=
"..\build\target_ia32.props"
/>
<Import
Project=
"..\smblib\smblib.props"
/>
<Import
Project=
"..\hash\hash.props"
/>
<Import
Project=
"..\encode\encode.props"
/>
</ImportGroup>
<ImportGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"PropertySheets"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
...
...
@@ -43,6 +46,9 @@
<Import
Project=
"..\xpdev\xpdev.props"
/>
<Import
Project=
"..\build\undeprecate.props"
/>
<Import
Project=
"..\build\target_ia32.props"
/>
<Import
Project=
"..\smblib\smblib.props"
/>
<Import
Project=
"..\hash\hash.props"
/>
<Import
Project=
"..\encode\encode.props"
/>
</ImportGroup>
<PropertyGroup
Label=
"UserMacros"
/>
<PropertyGroup>
...
...
@@ -63,7 +69,7 @@
<ClCompile>
<Optimization>
Disabled
</Optimization>
<AdditionalIncludeDirectories>
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<PreprocessorDefinitions>
WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PreprocessorDefinitions>
WIN32;
SBBS_EXPORTS;
_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<BasicRuntimeChecks>
EnableFastChecks
</BasicRuntimeChecks>
<RuntimeLibrary>
MultiThreadedDebug
</RuntimeLibrary>
<PrecompiledHeaderOutputFile>
.\msvc.win32.debug\textgen/textgen.pch
</PrecompiledHeaderOutputFile>
...
...
@@ -111,7 +117,7 @@
<Optimization>
MaxSpeed
</Optimization>
<InlineFunctionExpansion>
OnlyExplicitInline
</InlineFunctionExpansion>
<AdditionalIncludeDirectories>
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<PreprocessorDefinitions>
WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PreprocessorDefinitions>
WIN32;
SBBS_EXPORTS;
NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<StringPooling>
true
</StringPooling>
<RuntimeLibrary>
MultiThreaded
</RuntimeLibrary>
<FunctionLevelLinking>
true
</FunctionLevelLinking>
...
...
@@ -149,6 +155,8 @@
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile
Include=
"..\encode\utf8.c"
/>
<ClCompile
Include=
"str_util.c"
/>
<ClCompile
Include=
"textgen.c"
>
<AdditionalIncludeDirectories
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<PreprocessorDefinitions
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
%(PreprocessorDefinitions)
</PreprocessorDefinitions>
...
...
@@ -156,6 +164,11 @@
<PreprocessorDefinitions
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
%(PreprocessorDefinitions)
</PreprocessorDefinitions>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"..\xpdev\xpdev.vcxproj"
>
<Project>
{7428a1e8-56b7-4868-9c0e-29d031689feb}
</Project>
</ProjectReference>
</ItemGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<ImportGroup
Label=
"ExtensionTargets"
>
</ImportGroup>
...
...
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