Commit Graph

227 Commits

Author SHA1 Message Date
Carlos Rueda
afbaab89fe remove mpcf_maths from mpc.c and adjust maths test 2023-01-05 15:51:14 -08:00
Daniel Holden
bd32544d42 Merge pull request #148 from kazarmy/fix-Wformat-overflow
Fix `-Wformat-overflow` warnings due to gcc 12 + ASAN + `-O2`
2022-10-11 09:41:54 -04:00
Khairul Azhar Kasmiran
6e3d2d54aa Fix -Wformat-overflow warnings due to gcc 12 + ASAN + -O2 2022-10-11 13:17:47 +00:00
Daniel Holden
65f20a1a0b Merge pull request #141 from holmanb/holmanb/fix-make-install
fix makefile install target problems
2021-11-29 14:11:48 -05:00
Brett Holman
7d69afe7c8 fix makefile install target problems 2021-11-29 11:48:54 -07:00
Daniel Holden
168830fb27 Merge pull request #140 from holmanb/holmanb/fix-make-target
fix makefile libs target
2021-11-21 14:12:38 -05:00
Brett Holman
e6d92d88f7 fix makefile libs target 2021-11-21 12:05:21 -07:00
Daniel Holden
84a820c946 Update README.md 2021-03-27 20:40:08 -04:00
Daniel Holden
d59264ae27 fixed makefile when build directory doesn't exist 2020-07-19 08:57:42 -04:00
Daniel Holden
e507d34428 Merge github.com:orangeduck/mpc 2020-07-19 08:54:16 -04:00
Daniel Holden
41aecb485e fixed renaming of mpcf_freefold to mpcf_all_free 2020-07-19 08:53:43 -04:00
Daniel Holden
d00739f8c2 Merge pull request #129 from nmeum/freefold
mpc.h: Add prototype for mpcf_freefold
2020-05-03 22:12:24 -04:00
Sören Tempel
e863181763 mpc.h: Add prototype for mpcf_freefold
The mpcf_freefold is documented in the README but currently not declared
in the header file. As such, adding the latter was probably just
forgotten at some point. This change adds the required function
prototype.
2020-05-03 17:32:19 +02:00
Daniel Holden
4c7d9e3d40 Merge pull request #125 from HalosGhost/pc
(#124) preliminary pkg-config file setup and install
2020-04-11 17:51:11 -04:00
Daniel Holden
2063ba18f5 Merge pull request #123 from HalosGhost/compiler-portability
Compiler portability
2020-04-11 17:48:08 -04:00
Daniel Holden
48c3142739 Merge pull request #126 from eagleoflqj/master
Fix long format
2020-04-11 17:46:51 -04:00
Liumeo
248540274d Fix long format 2020-04-07 22:30:34 -04:00
halosghost
7bc1bb0a9b (#124) preliminary pkg-config file setup and install 2020-02-09 22:04:09 -06:00
halosghost
7869e2087e (closes #122) add ^M to end of line_reader example 2020-02-03 23:39:35 -06:00
halosghost
e1f5bea982 (#122) Support building with tcc
- replace ``mpc.h`` with ``$(PROJ).h``
- ``filter-out`` ``$(PROJ).h`` when building examples
- expose ``$(STD)``
2020-02-03 23:32:25 -06:00
Daniel Holden
c059e45ba2 Merge pull request #120 from jcrowgey/lint/extraneous_whitespace
Removed trailing whitespace
2020-01-11 16:56:49 -05:00
Joshua Crowgey
0edd06ec44 Removed trailing whitespace 2020-01-08 22:07:32 -08:00
Daniel Holden
5120609e6e fixed bug with trimming string with all space characters 2019-09-01 16:21:11 -04:00
Daniel Holden
e1038bc376 Merge pull request #110 from nmeum/fix-109
Fix backtracing bug with mpc_parse_pipe
2019-09-01 13:58:53 -04:00
Daniel Holden
ea778d1b8d added maximum recursion depth 2019-09-01 13:32:36 -04:00
Daniel Holden
9716397357 Merge pull request #116 from vemakereporter/fix_fts
Fix incremental build problems.
2019-08-31 12:47:46 -04:00
vemakereporter
7812a33774 Fix dependency issues reported by Vemake 2019-08-07 10:15:39 +00:00
Vemake
217a551a0a Use tabs instead of spaces in Makefile. 2019-08-07 17:55:12 +08:00
Vemake
8cf2c1d2d7 Fix 12 dependency issues in Makefile 2019-07-23 12:14:11 +08:00
Daniel Holden
cd50a555d3 Merge pull request #112 from fgeorgatos/patch-1
typo: recieved -> received
2019-06-25 19:48:37 -04:00
Fotis Georgatos
83393d4f4c typo: recieved -> received [ok] 2019-06-24 22:46:12 +02:00
Fotis Georgatos
f323a89923 typo: recieved -> received 2019-06-24 22:44:58 +02:00
Sören Tempel
6f5e8f0f39 Fix backtracing bug with mpc_parse_pipe
Before we free our buffer we need to reset the underlying stream to its
original state by pushing the buffer contents back onto the input
stream.

Fixes #109
2019-06-17 17:29:22 +02:00
Daniel Holden
dbe7308b9c Added destructor to check combinators 2019-06-15 14:30:41 -04:00
Daniel Holden
001a2c350a Merge pull request #93 from HalosGhost/master
Dramatically update Makefile
2019-06-10 18:48:24 -04:00
halosghost
147545a488 preliminarily detect windows platforms and call -fPIC accordingly 2019-06-09 18:20:27 -05:00
halosghost
41f3a6de7c leverage $(AR) and allow mkdir-invocation to be configurable 2019-05-23 21:23:35 -05:00
Daniel Holden
b31e02e427 version number 2018-12-16 09:53:56 -05:00
Daniel Holden
060bf54a01 merge 2018-12-15 16:13:51 -05:00
Daniel Holden
37c4de35a3 Fixed bug with end of file and parsing from a file 2018-12-15 16:11:39 -05:00
Daniel Holden
7ccd944451 Merge pull request #96 from sphynx/master
Add documentation for ? and {d} in language approach. Fix EOL issues
2018-12-05 18:57:00 -05:00
Ivan Veselov
462d5c8f9d Add documentation for ? and {d} in language approach. Fix EOL issues 2018-12-02 12:34:09 +00:00
halosghost
a17815f36c Dramatically update Makefile
- Out-of-Tree builds (defaults to ./build, configurable via DIST)
- Install and uninstall rules (which respect DESTDIR and PREFIX)
- Production of static and dynamic libraries
- Testing of all three methods of inclusion
    - direct file inclusion
    - static library
    - dynamic library (using LD_LIBRARY_PATH)
- Better declaration of PHONY targets
- Expose ability to override CC and CFLAGS
2018-11-09 11:19:49 -06:00
Daniel Holden
e585591e0e Merge pull request #92 from lzutao/fix-ctype
Cast argument to unsigned char before passing to ctype.h function
2018-11-07 13:04:50 -05:00
Lzu Tao
6c03383cd1 Cast argument to unsigned char before feeding to ctype.h functions
The behavior of the `<ctype.h>` functions is undefined for negative
arguments (other than `EOF`). In such a situation, the argument should
be cast to `unsiged char` for safety.

References:
 - C Programming: A Modern Approach, 2nd Edition: page 612, chapter 23.5
2018-11-06 14:40:04 +00:00
Daniel Holden
4a992d91ab Added mode option to regex and also changed example from a line reader to a tokenizer. 2018-10-14 17:20:11 -04:00
Daniel Holden
95439eb9c8 Merge github.com:orangeduck/mpc 2018-10-13 18:28:02 -04:00
Daniel Holden
fbc5d8f9ae Added line-reader example. Changed behaviour of eof on regex to parse either eof or a newline followed be eof (better matchers other regex engines). 2018-10-13 18:27:42 -04:00
Daniel Holden
65060137b1 Adjust the behaviour of mpc_eoi so that it only is successful in matching the end of input once. 2018-10-13 17:35:21 -04:00
Daniel Holden
3f23d5e854 Update README.md
typo
2018-10-09 21:00:55 -04:00