Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
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
Container registry
Model registry
Operate
Environments
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
pikelang
pike
Commits
1fda2014
Commit
1fda2014
authored
28 years ago
by
Marcus Comstedt
Browse files
Options
Downloads
Patches
Plain Diff
char signedness fix.
Rev: src/modules/MIME/configure.in:1.2 Rev: src/modules/MIME/mime.c:1.6
parent
04468793
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/modules/MIME/configure.in
+2
-0
2 additions, 0 deletions
src/modules/MIME/configure.in
src/modules/MIME/mime.c
+12
-6
12 additions, 6 deletions
src/modules/MIME/mime.c
with
14 additions
and
6 deletions
src/modules/MIME/configure.in
+
2
−
0
View file @
1fda2014
...
...
@@ -3,4 +3,6 @@ AC_CONFIG_HEADER(config.h)
sinclude(../module_configure.in)
AC_C_CHAR_UNSIGNED
AC_OUTPUT(Makefile,echo FOO >stamp-h )
This diff is collapsed.
Click to expand it.
src/modules/MIME/mime.c
+
12
−
6
View file @
1fda2014
/*
* $Id: mime.c,v 1.
5
1997/04/1
1 23:01
:43 marcus Exp $
* $Id: mime.c,v 1.
6
1997/04/1
7 16:42
:43 marcus Exp $
*
* RFC1521 functionality for Pike
*
...
...
@@ -9,7 +9,7 @@
#include
"config.h"
#include
"global.h"
RCSID
(
"$Id: mime.c,v 1.
5
1997/04/1
1 23:01
:43 marcus Exp $"
);
RCSID
(
"$Id: mime.c,v 1.
6
1997/04/1
7 16:42
:43 marcus Exp $"
);
#include
"stralloc.h"
#include
"types.h"
#include
"pike_macros.h"
...
...
@@ -19,6 +19,12 @@ RCSID("$Id: mime.c,v 1.5 1997/04/11 23:01:43 marcus Exp $");
#include
"builtin_functions.h"
#include
"error.h"
#ifdef __CHAR_UNSIGNED__
#define SIGNED signed
#else
#define SIGNED
#endif
/** Forward declarations of functions implementing Pike functions **/
...
...
@@ -36,9 +42,9 @@ static void f_quote( INT32 args );
/** Global tables **/
static
char
base64tab
[
64
]
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
;
static
char
base64rtab
[
0x80
-
' '
];
static
SIGNED
char
base64rtab
[
0x80
-
' '
];
static
char
qptab
[
16
]
=
"0123456789ABCDEF"
;
static
char
qprtab
[
0x80
-
'0'
];
static
SIGNED
char
qprtab
[
0x80
-
'0'
];
#define CT_CTL 0
#define CT_WHITE 1
...
...
@@ -136,7 +142,7 @@ static void f_decode_base64( INT32 args )
instead. */
dynamic_buffer
buf
;
char
*
src
;
SIGNED
char
*
src
;
INT32
cnt
,
d
=
1
;
int
pads
=
0
;
...
...
@@ -275,7 +281,7 @@ static void f_decode_qp( INT32 args )
so we'll use a dynamic buffer to hold the result. */
dynamic_buffer
buf
;
char
*
src
;
SIGNED
char
*
src
;
INT32
cnt
;
buf
.
s
.
str
=
NULL
;
...
...
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