Commit 51082be88feecb974380d27d3c8a3694fa3c5687
1 parent
2325ce9b
Exists in
master
and in
3 other branches
Commenting deprecated code.
Showing
3 changed files
with
14 additions
and
9 deletions
Show diff stats
src/include/lib3270/html.h
@@ -26,6 +26,9 @@ | @@ -26,6 +26,9 @@ | ||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | +#error Deprecated | ||
30 | + | ||
31 | + /* | ||
29 | #ifndef LIB3270_HTML_H_INCLUDED | 32 | #ifndef LIB3270_HTML_H_INCLUDED |
30 | 33 | ||
31 | #define LIB3270_HTML_H_INCLUDED 1 | 34 | #define LIB3270_HTML_H_INCLUDED 1 |
@@ -50,4 +53,4 @@ | @@ -50,4 +53,4 @@ | ||
50 | #endif | 53 | #endif |
51 | 54 | ||
52 | #endif // LIB3270_HTML_H_INCLUDED | 55 | #endif // LIB3270_HTML_H_INCLUDED |
53 | - | 56 | +*/ |
src/lib3270/html.c
@@ -25,6 +25,8 @@ | @@ -25,6 +25,8 @@ | ||
25 | * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | 25 | * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) |
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | + | ||
29 | +/* | ||
28 | #ifdef WIN32 | 30 | #ifdef WIN32 |
29 | #include <winsock2.h> | 31 | #include <winsock2.h> |
30 | #include <windows.h> | 32 | #include <windows.h> |
@@ -46,7 +48,7 @@ | @@ -46,7 +48,7 @@ | ||
46 | const char * xlat; | 48 | const char * xlat; |
47 | }; | 49 | }; |
48 | 50 | ||
49 | -/*--[ Defines ]--------------------------------------------------------------------------------------*/ | 51 | +//--[ Defines ]-------------------------------------------------------------------------------------- |
50 | 52 | ||
51 | enum html_element | 53 | enum html_element |
52 | { | 54 | { |
@@ -107,10 +109,10 @@ | @@ -107,10 +109,10 @@ | ||
107 | 109 | ||
108 | enum HTML_MODE | 110 | enum HTML_MODE |
109 | { | 111 | { |
110 | - HTML_MODE_TEXT, /**< Non editable */ | ||
111 | - HTML_MODE_INPUT_TEXT, /**< Text input */ | ||
112 | - HTML_MODE_INPUT_PASSWORD, /**< Password input */ | ||
113 | - HTML_MODE_INPUT_BUTTON, /**< Button input (PFkey) */ | 112 | + HTML_MODE_TEXT, ///< Non editable |
113 | + HTML_MODE_INPUT_TEXT, ///< Text input | ||
114 | + HTML_MODE_INPUT_PASSWORD, ///< Password input | ||
115 | + HTML_MODE_INPUT_BUTTON, ///< Button input (PFkey) | ||
114 | } mode; | 116 | } mode; |
115 | 117 | ||
116 | char * text; | 118 | char * text; |
@@ -120,7 +122,7 @@ | @@ -120,7 +122,7 @@ | ||
120 | unsigned short bg; | 122 | unsigned short bg; |
121 | }; | 123 | }; |
122 | 124 | ||
123 | - /*--[ Implement ]------------------------------------------------------------------------------------*/ | 125 | + //--[ Implement ]------------------------------------------------------------------------------------ |
124 | 126 | ||
125 | static void append_string(struct html_info *info, const char *text) | 127 | static void append_string(struct html_info *info, const char *text) |
126 | { | 128 | { |
@@ -424,4 +426,4 @@ | @@ -424,4 +426,4 @@ | ||
424 | return info.text; | 426 | return info.text; |
425 | } | 427 | } |
426 | 428 | ||
427 | - | 429 | +*/ |
src/lib3270/testprogram/testprogram.c
@@ -64,7 +64,7 @@ int main(int argc, char *argv[]) | @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) | ||
64 | 64 | ||
65 | } | 65 | } |
66 | 66 | ||
67 | - printf("HOST URL: %s\HOST CRL: %s\n",lib3270_get_url(h),lib3270_get_crl_url(h)); | 67 | + printf("HOST URL: %s\tHOST CRL: %s\n",lib3270_get_url(h),lib3270_get_crl_url(h)); |
68 | 68 | ||
69 | if(lib3270_set_url(h,NULL)) | 69 | if(lib3270_set_url(h,NULL)) |
70 | lib3270_set_url(h,"tn3270://fandezhi.efglobe.com"); | 70 | lib3270_set_url(h,"tn3270://fandezhi.efglobe.com"); |