summaryrefslogtreecommitdiffabout
path: root/libical/src/libical/sspm.c
Unidiff
Diffstat (limited to 'libical/src/libical/sspm.c') (more/less context) (ignore whitespace changes)
-rw-r--r--libical/src/libical/sspm.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/libical/src/libical/sspm.c b/libical/src/libical/sspm.c
index 2df581b..17f12ee 100644
--- a/libical/src/libical/sspm.c
+++ b/libical/src/libical/sspm.c
@@ -41,18 +41,15 @@
41#include <stdlib.h> /* for malloc, free */ 41#include <stdlib.h> /* for malloc, free */
42#include <string.h> /* for strcasecmp */ 42#include <string.h> /* for strcasecmp */
43 43
44// Eugen C. <eug@thekompany.com>
45#ifdef _WIN32
46#define strcasecmp _stricmp
47#endif
48// Eugen C. <eug@thekompany.com>
49
50int snprintf(char *str, size_t n, char const *fmt, ...);
51
52#ifdef DMALLOC 44#ifdef DMALLOC
53#include "dmalloc.h" 45#include "dmalloc.h"
54#endif 46#endif
55 47
48#ifdef WIN32
49#define snprintf _snprintf
50#define strcasecmp stricmp
51#endif
52
56#define TMP_BUF_SIZE 1024 53#define TMP_BUF_SIZE 1024
57 54
58 55
@@ -93,7 +90,7 @@ char* sspm_strdup(char* str){
93} 90}
94 91
95 92
96struct major_content_type_map 93static struct major_content_type_map
97{ 94{
98 enum sspm_major_type type; 95 enum sspm_major_type type;
99 char* str; 96 char* str;
@@ -112,7 +109,7 @@ struct major_content_type_map
112 {SSPM_UNKNOWN_MAJOR_TYPE,"" }, 109 {SSPM_UNKNOWN_MAJOR_TYPE,"" },
113}; 110};
114 111
115struct minor_content_type_map 112static struct minor_content_type_map
116{ 113{
117 enum sspm_minor_type type; 114 enum sspm_minor_type type;
118 char* str; 115 char* str;
@@ -241,7 +238,7 @@ char* sspm_value(char* line)
241 238
242} 239}
243 240
244char *mime_headers[] = { 241static char *mime_headers[] = {
245 "Content-Type", 242 "Content-Type",
246 "Content-Transfer-Encoding", 243 "Content-Transfer-Encoding",
247 "Content-Disposition", 244 "Content-Disposition",
@@ -366,7 +363,7 @@ enum line_type {
366}; 363};
367 364
368 365
369enum line_type get_line_type(char* line){ 366static enum line_type get_line_type(char* line){
370 367
371 if (line == 0){ 368 if (line == 0){
372 return EMPTY; 369 return EMPTY;
@@ -390,7 +387,7 @@ enum line_type get_line_type(char* line){
390} 387}
391 388
392 389
393struct sspm_action_map get_action(struct mime_impl *impl, 390static struct sspm_action_map get_action(struct mime_impl *impl,
394 enum sspm_major_type major, 391 enum sspm_major_type major,
395 enum sspm_minor_type minor) 392 enum sspm_minor_type minor)
396{ 393{