diff options
| author | Richard Brooksby | 2012-09-03 15:32:22 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-09-03 15:32:22 +0100 |
| commit | 89e1236e4752bd100a6e9b6fbb652c5ba0ee913a (patch) | |
| tree | 740cf6f6af52ebab0eb8adf02fd8ab189317cddf /mps/code | |
| parent | 13e0ecd5fe642a243f98090d73cc4aa7bd699cff (diff) | |
| download | emacs-89e1236e4752bd100a6e9b6fbb652c5ba0ee913a.tar.gz emacs-89e1236e4752bd100a6e9b6fbb652c5ba0ee913a.zip | |
Explaining why commented-out events exist in the list.
Copied from Perforce
Change: 179204
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/eventdef.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mps/code/eventdef.h b/mps/code/eventdef.h index d8edc6a2bee..346b61df5ad 100644 --- a/mps/code/eventdef.h +++ b/mps/code/eventdef.h | |||
| @@ -47,6 +47,11 @@ | |||
| 47 | * - Kind: Category into which this event falls, without the | 47 | * - Kind: Category into which this event falls, without the |
| 48 | * leading "EventKind"; | 48 | * leading "EventKind"; |
| 49 | * | 49 | * |
| 50 | * When you retire an event type, don't delete it from the list -- comment | ||
| 51 | * it out. This serves as documentation for what the event code means | ||
| 52 | * in older logs, and prevents the codes being re-used. See | ||
| 53 | * <design/telemetry/#.reg.code>. | ||
| 54 | * | ||
| 50 | * TODO: Add a doc string to each event type. | 55 | * TODO: Add a doc string to each event type. |
| 51 | * | 56 | * |
| 52 | * See also EVENT_*_PARAMS for definition of event parameters. | 57 | * See also EVENT_*_PARAMS for definition of event parameters. |
| @@ -55,8 +60,6 @@ | |||
| 55 | #define EventNameMAX ((size_t)19) | 60 | #define EventNameMAX ((size_t)19) |
| 56 | #define EventCodeMAX ((EventCode)0x0071) | 61 | #define EventCodeMAX ((EventCode)0x0071) |
| 57 | 62 | ||
| 58 | /* TODO: Work out why not-in-use events were not in use and restore or delete them. */ | ||
| 59 | |||
| 60 | #define EVENT_LIST(EVENT, X) \ | 63 | #define EVENT_LIST(EVENT, X) \ |
| 61 | /* 0123456789012345678 <- don't exceed without changing EventNameMAX */ \ | 64 | /* 0123456789012345678 <- don't exceed without changing EventNameMAX */ \ |
| 62 | EVENT(X, AMCGenCreate , 0x0001, TRUE, Pool) \ | 65 | EVENT(X, AMCGenCreate , 0x0001, TRUE, Pool) \ |