1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 18:00:40 -08:00
Commit graph

19 commits

Author SHA1 Message Date
Richard Brooksby
8baf699abe Improving type naming in table code.
Copied from Perforce
 Change: 189403
 ServerID: perforce.ravenbrook.com
2016-02-29 13:19:43 +00:00
Gareth Rees
c968255f1e Ensure that code of the form if (condition) statement; is split over two lines, so that it is possible to set a breakpoint on the statement in a debugger.
This change was agreed in 1997 (see <https://info.ravenbrook.com/project/mps/mail/1997/08/19/13-44/0.txt>), so it's about time it was implemented.

Copied from Perforce
 Change: 187071
 ServerID: perforce.ravenbrook.com
2014-09-27 22:57:02 +01:00
Gareth Rees
020871df1d Fix event clock output on windows.
Copied from Perforce
 Change: 186822
 ServerID: perforce.ravenbrook.com
2014-07-04 11:31:13 +01:00
Gareth Rees
933fdc779f Parse and print 64-bit clock values even on 32-bit platforms.
Copied from Perforce
 Change: 186814
 ServerID: perforce.ravenbrook.com
2014-07-03 22:40:25 +01:00
Gareth Rees
691195da96 Setenv requires _gnu_source, so get the headers in the right order so that the feature macros are set up in config.h before any system header is included.
Don't update _XOPEN_SOURCE if it's already set to a high enough value.

Copied from Perforce
 Change: 186049
 ServerID: perforce.ravenbrook.com
2014-05-12 19:48:01 +01:00
Gareth Rees
a80d297099 Mpseventtxt must not itself output telemetry, otherwise it is likely to overwrite the telemetry it is converting.
Copied from Perforce
 Change: 186023
 ServerID: perforce.ravenbrook.com
2014-05-12 12:30:46 +01:00
Gareth Rees
7c107c76c0 Fix compilation of eventtxt.c on lii6gc.
Copied from Perforce
 Change: 185483
 ServerID: perforce.ravenbrook.com
2014-04-12 21:33:29 +01:00
Gareth Rees
27d16fc322 Eventtxt no longer reports an error if there are multiple labels associated with an address. instead, it store all the labels encountered, and prints the one that was in force at the time of each event.
Use the MPS to manage memory, not malloc/free.
Recommend sort before mpseventtxt and not afterwards (data is smaller; labelling is more accurate).

Copied from Perforce
 Change: 185477
 ServerID: perforce.ravenbrook.com
2014-04-12 15:34:43 +01:00
Gareth Rees
da307afb81 Turn on -wduplicate-enum and -wmissing-variable-declarations options for clang. ensure the mps compiles with these options.
Copied from Perforce
 Change: 185466
 ServerID: perforce.ravenbrook.com
2014-04-11 15:17:20 +01:00
Gareth Rees
d934afafc5 Catch-up merge from master sources to branch/2014-03-21/pellesc.
Copied from Perforce
 Change: 185074
 ServerID: perforce.ravenbrook.com
2014-03-28 13:54:30 +00:00
Gareth Rees
68edf84c3b Remove #pragma warning(disable: ...) for microsoft visual c/c++ warnings that are no longer generated by the code, so that we get the maximum checking from this compiler.
Copied from Perforce
 Change: 185072
 ServerID: perforce.ravenbrook.com
2014-03-28 13:09:14 +00:00
Gareth Rees
9aef4157fd Fix review comments from dl <https://info.ravenbrook.com/mail/2014/03/25/17-44-56/0/>.
Add __attribute__((__format__(printf))) to functions that take a printf-compatible format string (when building using GCC or Clang), so that format string mistakes can be detected statically.

Copied from Perforce
 Change: 185021
 ServerID: perforce.ravenbrook.com
2014-03-26 12:27:35 +00:00
Gareth Rees
9d5266c0cc Improved support for pelles c:
* Refactor nmake files so that a compiler-specific makefile is included; move Microsoft Visual C-specific options to mv.nmk.
* Add nmake files for Pelles (w3i3pc.nmk and pc.nmk).
* Rename spw3i3mv.c to spw3i3.c and spw3i6mv.c to spw3i6.c since these are also used by Pelles C.
* Make reasonable changes to the source code to avoid warnings from Pelles C:
** check results of function calls;
** avoid useless return values;
** undef max before defining it;
** ensure printf formats are checkable;
** move notreached() assertions to the end of blocks;
** suppress warnings in cases where the code shouldn't be changed ("Unreachable code", "Inline assembly code is not portable", "Structured Exception Handling is not portable").

Copied from Perforce
 Change: 184977
 ServerID: perforce.ravenbrook.com
2014-03-24 18:23:29 +00:00
Gareth Rees
a3c7ed0cab Turn on -wextra -wwrite-strings when compiling with gcc or clang.
Add missing initializer to mps_args_none.
Change "char *" to "const char *" where necessary.

Copied from Perforce
 Change: 183494
 ServerID: perforce.ravenbrook.com
2013-09-30 17:18:52 +01:00
Gareth Rees
785589415f Print event code in uppercase hexadecimal for consistency.
Copied from Perforce
 Change: 180936
 ServerID: perforce.ravenbrook.com
2013-02-08 14:52:05 +00:00
Nick Barnes
7dc00c2912 Get eventcnv/txt/sql working on fri3gc.
Copied from Perforce
 Change: 180887
 ServerID: perforce.ravenbrook.com
2013-01-31 14:54:35 +00:00
Nick Barnes
164f0a8a92 Port eventsql and friends to windows 7.
Copied from Perforce
 Change: 180885
 ServerID: perforce.ravenbrook.com
2013-01-30 16:06:59 +00:00
Nick Barnes
ba28c7a10d Exit(exit_success) after usage message.
Copied from Perforce
 Change: 180484
 ServerID: perforce.ravenbrook.com
2012-11-16 10:22:29 +00:00
Nick Barnes
686ee38101 Tidy up the event pipeline.
Copied from Perforce
 Change: 180460
 ServerID: perforce.ravenbrook.com
2012-11-13 12:51:58 +00:00