Browse Source

Added more workarounds for uncrustify bugs

Evgeny Grin (Karlson2k) 4 years ago
parent
commit
84a92e8a71
2 changed files with 3 additions and 3 deletions
  1. 2 2
      doc/examples/websocket.c
  2. 1 1
      src/microhttpd_ws/test_websocket_browser.c

+ 2 - 2
doc/examples/websocket.c

@@ -28,7 +28,7 @@
   "<script>\n" \
   "<script>\n" \
   "\n" \
   "\n" \
   "let url = 'ws' + (window.location.protocol === 'https:' ? 's' : '')" \
   "let url = 'ws' + (window.location.protocol === 'https:' ? 's' : '')" \
-    "  + '://' +\n" \
+    "  + ':/" "/' +\n" \
   "          window.location.host + '/chat';\n" \
   "          window.location.host + '/chat';\n" \
   "let socket = null;\n" \
   "let socket = null;\n" \
   "\n" \
   "\n" \
@@ -38,7 +38,7 @@
   "    document.write('The websocket connection has been " \
   "    document.write('The websocket connection has been " \
     "established.<br>');\n" \
     "established.<br>');\n" \
   "\n" \
   "\n" \
-  "    // Send some text\n" \
+  "    /" "/ Send some text\n" \
   "    socket.send('Hello from JavaScript!');\n" \
   "    socket.send('Hello from JavaScript!');\n" \
   "  }\n" \
   "  }\n" \
   "\n" \
   "\n" \

+ 1 - 1
src/microhttpd_ws/test_websocket_browser.c

@@ -55,7 +55,7 @@
   "let charset       = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_!@%&/\\\\';\n" \
   "let charset       = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_!@%&/\\\\';\n" \
   "let step_to_bytes = [ 0, 1, 2, 3, 122, 123, 124, 125, 126, 127, 128, 32766, 32767, 32768, 65534, 65535, 65536, 65537, 1048576, 10485760 ];\n" \
   "let step_to_bytes = [ 0, 1, 2, 3, 122, 123, 124, 125, 126, 127, 128, 32766, 32767, 32768, 65534, 65535, 65536, 65537, 1048576, 10485760 ];\n" \
   "let url = 'ws' + (window.location.protocol === 'https:' ? 's' : '')" \
   "let url = 'ws' + (window.location.protocol === 'https:' ? 's' : '')" \
-    "  + '://' +\n" \
+    "  + ':/" "/' +\n" \
   "          window.location.host + '/websocket';\n" \
   "          window.location.host + '/websocket';\n" \
   "let socket = null;\n" \
   "let socket = null;\n" \
   "\n" \
   "\n" \