ridiculousfish
6f2e377fcc
Clean up some unnecessary variable names in maybe.h
2020-12-19 16:10:40 -08:00
Fabian Homborg
2e55e34544
Reformat
2020-11-22 14:39:48 +01:00
Soumya
8dd2d4f15d
Change builtins to return maybe_t<int> instead of int
2020-08-05 12:23:49 -07:00
Fabian Homborg
c2970f9618
Reformat all files
...
This runs build_tools/style.fish, which runs clang-format on C++, fish_indent on fish and (new) black on python.
If anything is wrong with the formatting, we should fix the tools, but automated formatting is worth it.
2019-05-05 12:09:25 +02:00
ridiculousfish
2c56e27d37
Switch readline commands to readline_cmd_t enum class
2019-03-23 23:31:25 -07:00
ridiculousfish
a58662dd46
Make maybe_t conditionally copyable
...
This allows it to be used with both e.g. unique_ptr and std::vector.
2019-03-17 13:38:18 -07:00
ridiculousfish
d3fa58d621
Cleanup common.h
...
Remove a bunch of headers, simplify lots of code, migrate it into .cpp files.
Debug build time improves by ~3 seconds on my Mac.
2019-02-03 18:22:38 -08:00
ridiculousfish
c1dd284b3e
Instantize env_set
...
Switch env_set to an instance method on environmnet_t.
2019-01-10 20:05:45 -08:00
ridiculousfish
222a45f07a
Add acquire() to maybe_t
...
Easy way to pull the value out.
2018-04-01 16:10:59 -07:00
ridiculousfish
7764f27170
Correct failure to set 'filled' flag in maybe_t constructors
2018-03-10 02:17:35 -08:00
ridiculousfish
99200d3bfb
Attempt to fix the Linux Travis build
2018-02-23 21:38:48 -08:00
ridiculousfish
51c9ad1359
Mark trivial constructors/destructors as default
2018-02-18 19:12:45 -08:00
ridiculousfish
18203a081c
Add maybe_t template class
...
maybe_t is an implementation of the Maybe/Optional type, allowing
for an optional value to be stored. This will enable a more
principled approach for functions that return values or failure,
such as env_get.
2017-09-01 00:14:14 -07:00