compile on linux
This commit is contained in:
parent
a92020ac1e
commit
5afa7dd69f
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
|
||||
### TODO
|
||||
- add total tuntime into -p
|
||||
- replace to_string macro in ml.cpp
|
||||
- add debug support, at least call stack
|
||||
- documentation
|
||||
- add url of source/inspiration to clib/*.cpp
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
- file functions
|
||||
- name it here
|
||||
- string functions
|
||||
- compare - needed for sorting
|
||||
- compare - needed for sorting, cmp ignore case
|
||||
- regexp functions
|
||||
- date support
|
||||
- decode-universal-time
|
||||
|
|
@ -34,10 +34,11 @@
|
|||
- create pastebin like web using ml
|
||||
|
||||
#### Performance
|
||||
- define is one of most frequent callee, when in scope with very few vars, lookup sequentially
|
||||
- push_back - repeatedly without reserving size
|
||||
- range - with for(int i...) and reserving result size can be 3times faster on (range 1 10000)
|
||||
- mini_sprintf - unnecesary copying between vector and list
|
||||
- (do ..) repeatedly assign to acc, maybe somewhere else
|
||||
- (do, scope ..) repeatedly assign to acc
|
||||
|
||||
#### Install
|
||||
```
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
#include "csvparser.h"
|
||||
#include <climits>
|
||||
|
||||
|
||||
CsvParser::CsvParser(bool skip_hdr, char field_sep, char quote_ch, char line_sep, char line_sep2) {
|
||||
|
|
|
|||
5
ml.cpp
5
ml.cpp
|
|
@ -51,8 +51,11 @@
|
|||
|
||||
|
||||
// Convert an object to a string using a string stream conveniently
|
||||
#if __APPLE_
|
||||
#define to_string(x) static_cast<std::ostringstream>((std::ostringstream() << std::dec << x )).str()
|
||||
|
||||
#elif __linux
|
||||
#define to_string(x) static_cast<std::ostringstream&>((std::ostringstream() << std::dec << x )).str()
|
||||
#endif
|
||||
|
||||
// Is this character a valid lisp symbol character
|
||||
bool is_symbol(char ch) {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <numeric>
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
using namespace std::chrono;
|
||||
|
|
|
|||
Loading…
Reference in New Issue