Skip to content

Commit

Permalink
make it compile and check
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Apr 18, 2024
1 parent d34b604 commit 8b60943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
- {os: macos-latest, r: 'release'}

- {os: windows-latest, r: 'release'}
# Use 3.6 to trigger usage of RTools35
- {os: windows-latest, r: '3.6'}
# use 4.1 to check with rtools40's older compiler
- {os: windows-latest, r: '4.1'}

Expand Down
5 changes: 2 additions & 3 deletions src/marquee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "utf8.h"

using namespace cpp11::literals;
using namespace std::string_literals;

struct MARQUEE_DATA {
std::stack<cpp11::list> style_stack;
Expand Down Expand Up @@ -221,7 +220,7 @@ static int enter_block_callback(MD_BLOCKTYPE type, void* detail, void* userdata)
case MD_BLOCK_OL: push_info(ud, "ol", true, ((MD_BLOCK_OL_DETAIL *) detail)->is_tight != 0, ((MD_BLOCK_OL_DETAIL *) detail)->start); break;
case MD_BLOCK_LI: push_info(ud, "li", true); break;
case MD_BLOCK_HR: push_info(ud, "hr", true); break;
case MD_BLOCK_H: push_info(ud, "h"s + std::to_string(((MD_BLOCK_H_DETAIL*) detail)->level), true); break;
case MD_BLOCK_H: push_info(ud, std::string("h") + std::to_string(((MD_BLOCK_H_DETAIL*) detail)->level), true); break;
case MD_BLOCK_CODE: push_info(ud, "cb", true); break;
case MD_BLOCK_P: push_info(ud, "p", true); break;
case MD_BLOCK_QUOTE: push_info(ud, "qb", true); break;
Expand Down Expand Up @@ -251,7 +250,7 @@ static int leave_block_callback(MD_BLOCKTYPE type, void* detail, void* userdata)
case MD_BLOCK_OL: pop_info(ud, "ol", true); break;
case MD_BLOCK_LI: pop_info(ud, "li", true); break;
case MD_BLOCK_HR: pop_info(ud, "hr", true); break;
case MD_BLOCK_H: pop_info(ud, "h"s + std::to_string(((MD_BLOCK_H_DETAIL*) detail)->level), true); break;
case MD_BLOCK_H: pop_info(ud, std::string("h") + std::to_string(((MD_BLOCK_H_DETAIL*) detail)->level), true); break;
case MD_BLOCK_CODE: pop_info(ud, "cb", true); break;
case MD_BLOCK_P: pop_info(ud, "p", true); break;
case MD_BLOCK_QUOTE: pop_info(ud, "qb", true); break;
Expand Down

0 comments on commit 8b60943

Please sign in to comment.