Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Nika Layzell 568787b95f Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium
By default, windows.h exposes a large number of problematic define statements
which are UpperCamelCase, such as a define from `CreateWindow` to
`CreateWindow{A,W}`.

As many of these names are generic (e.g. CreateFile, CreateWindow), they can
mess up Gecko code that may legitimately have its own methods with the same
names.

The header also defines some traditional SCREAMING_SNAKE_CASE defines which
can mess up our code by conflicting with local values.

This patch adds a simple code generator which generates wrappers for these
defines, and uses them to wrap the windows.h wrapper using the `stl_wrappers`
mechanism, allowing us to use windows.h in more places.

Differential Revision: https://phabricator.services.mozilla.com/D10932
2018-11-28 12:56:20 -05:00
.cargo Bug 1504507 - Update serde branch for changes in WR PR #3264. r=kats 2018-11-05 13:14:07 +00:00
.vscode Bug 1493017 - Tweak vscode tasks.json problemMatcher regexes to handle clang/Windows output - r=jya 2018-09-21 10:00:59 +00:00
accessible Merge mozilla-central to inbound. CLOSED TREE 2018-11-28 12:02:34 +02:00
browser Backed out changeset e6377178d093 (bug 1503161) for causing a bunch of regressions 2018-11-28 12:59:52 +01:00
build Bug 1482395: [mozrelease] Generate whats new blob and populate it during release; r=mtabara 2018-11-26 17:51:23 +00:00
caps Bug 1497940 - Part IV, Move pluginProblem resources from chrome://mozapps to chrome://global r=mossop 2018-11-22 05:49:22 +00:00
chrome Bug 1356412: Part 2 - Remove script loader path mangling from DOM code. r=bz 2018-11-02 16:15:26 -07:00
config Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
db Bug 1495238 - Upgrade to SQLite 3.25.3. r=mak 2018-11-06 16:59:19 +00:00
devtools Backed out changeset cfb51d413370 (bug 1509459) for devtools failures on browser_flexbox_highlighter_color_picker_on_ESC.js. 2018-11-28 19:23:08 +02:00
docshell Bug 1510580 - Remove browser.fixup.hide_user_pass pref, r=valentin 2018-11-28 18:05:55 +01:00
dom Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
editor Bug 1505601 - Turn nsIDocShell XPIDL const lists into cenums; r=bzbarsky 2018-11-28 03:30:56 +00:00
embedding Bug 1502457 - Move MOZ_APP_VERSION{,_DISPLAY} to python configure. r=nalexander 2018-11-16 01:15:35 +00:00
extensions Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
gfx Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
gradle/wrapper Bug 1509572 - Part 1: Bump Gradle wrapper to 4.10.2; decouple script from Gradle version. r=snorp 2018-11-26 21:42:27 +00:00
hal Bug 1509450 - Remove unnecessary inclusions of ContentParent.h and ContentChild.h r=froydnj 2018-11-26 14:49:44 +00:00
image Bug 1509408 - Fix animated image distortion regressions caused by frame recycling. r=tnikkel 2018-11-28 06:57:39 -05:00
intl Bug 1509849 - Revert the followup from bug 1503157 now that an empty locale string is handled properly by the Locale constructor. r=gandalf 2018-11-26 19:25:28 +00:00
ipc Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE 2018-11-28 02:57:32 +02:00
js Bug 1508102 - Take account of XPCWrappedJS::mJSObjGlobal in cycle collector methods r=mccr8 a=abillings 2018-11-28 17:29:19 +00:00
layout Bug 1510471 - Avoid useless FrameNeedsReflow call. r=emilio 2018-11-28 12:48:03 -05:00
media Bug 1507216: Make sure AudioConduit doesn't re-create the recv stream without de-registering the old one. r=dminor 2018-11-26 19:56:25 +00:00
memory Bug 1499907 - Add a jsonEscape argument to fixSymbols. r=erahm 2018-11-21 10:28:00 +11:00
mfbt Bug 1509927 - use a little more KnownNotNull placement new in MFBT; r=njn 2018-11-26 18:51:35 -05:00
mobile Bug 1506276 - Disable AccessibilityTest#testScroll until we figure out APZC. r=yzen 2018-11-28 08:36:01 -08:00
modules Bug 1510580 - Remove browser.fixup.hide_user_pass pref, r=valentin 2018-11-28 18:05:55 +01:00
mozglue Bug 1487778 - Protect QueryPerformanceCounter against going backward, r=froydnj 2018-11-26 03:08:00 +02:00
netwerk Bug 1510580 - Use nsIURIFixup in netwerk/protocol/http, r=valentin 2018-11-28 18:05:52 +01:00
nsprpub Bug 1477680, NSPR 4.20 RTM, no code change, only version number, r=me 2018-08-28 16:21:01 +02:00
other-licenses Bug 1468544 - Replace mar_hash_name with CityHash algorithm. r=rstrong 2018-11-06 13:34:21 -05:00
parser Bug 1460920 - Part 1 - Speculative loading script should take referrerpolicy attribute in script element into account r=hsivonen 2018-11-19 09:39:16 +00:00
python Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
security Bug 1503348 - (3/3) - add support for decoding and verifying Signed Tree Head Data V2 r=jcj 2018-11-27 19:51:56 +00:00
services Bug 1469564 - Split RemoteSettings client into dedicated module r=glasserc 2018-11-27 10:34:16 +00:00
servo Bug 1504065 - Run background-color animations on the compositor. r=birtles 2018-11-28 00:58:46 +00:00
startupcache Bug 1503207 - Remove nsWeakPtr.h and cleanup all files including weak reference-related headers r=froydnj 2018-10-31 20:39:03 +00:00
storage Bug 1507540 part 6. Make nsIVariant's "type" a notxpcom attribute. r=froydnj 2018-11-19 20:20:05 -05:00
taskcluster Bug 1509973 - Follow-up to increase timeout for windows ASAN reftests. r=me 2018-11-28 10:21:27 -05:00
testing Bug 1503681 - rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set - fix tests, r=me 2018-11-28 08:22:06 +01:00
third_party Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
toolkit Merge mozilla-central to inbound. CLOSED TREE 2018-11-28 12:02:34 +02:00
tools Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
uriloader Bug 1503681 - rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set - fix tests, r=me 2018-11-28 08:22:06 +01:00
view Bug 1504521 - rename in-tree mentions of bugzilla metadata for product and component "Core :: Layout: Web Painting" to "Core :: Web Painting" r=kats 2018-11-04 12:57:04 +00:00
widget Bug 1288640 - Make TextComposition not dispatch eCompositionChange events (DOM "text" event) in the default group of web content r=smaug 2018-11-27 13:26:51 +00:00
xpcom Bug 1510012 - Move Symbol-related APIs out of jsapi.h into js/public/Symbol.h. r=sfink, r=mccr8 for the bindings change 2018-11-24 12:21:40 -08:00
xpfe/appshell Bug 1502330 - Create BrowsingContext with passed opener. r=qdot 2018-11-27 09:59:44 +00:00
.arcconfig
.clang-format Bug 1508255 - Merge js/src/.clang-format into top-level r=sylvestre 2018-11-20 12:42:30 +00:00
.clang-format-ignore Bug 1510128 - Exclude irregexp from reformatting r=Ehsan 2018-11-27 15:18:14 +00:00
.cron.yml Bug 1503547 - Move searchfox indexing jobs a half hour earlier to match nightly build times. r=mccr8 2018-11-01 15:37:07 +00:00
.eslintignore Bug 1507524 - Update miscellaneous things with the new WR location. r=jrmuizel 2018-11-22 21:47:50 +00:00
.eslintrc.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (setup ESLint). r=mossop 2018-10-19 08:46:31 +00:00
.flake8 Bug 1508889 - Remove ipc/chromium from the lists of third-party code. r=Ehsan 2018-11-21 03:11:37 +00:00
.gdbinit Bug 1486903 - Add "ftl" command to dump frame subtree to .gdbinit. r=Ehsan 2018-08-28 20:20:21 +00:00
.gdbinit_python
.git-blame-ignore-revs Bug 1509369 - Add .git-blame-ignore-revs file. r=Ehsan 2018-11-22 20:39:20 +00:00
.gitignore Bug 1503447 - Remove Nothing() semantic from ASR overrides r=kats 2018-11-14 14:15:16 +00:00
.hgignore Bug 1479503: Check infer in ./mach static-analysis autotest. r=nalexander 2018-10-24 21:54:34 +00:00
.hgtags No bug - Tagging mozilla-central c44fbdd5173548c9035256dda8fd3512f67118a8 with FIREFOX_NIGHTLY_64_END a=release DONTBUILD CLOSED TREE 2018-10-22 08:48:42 -07:00
.lldbinit
.mailmap
.taskcluster.yml Bug 1509997 - set priorities cron > action > decision r=tomprince 2018-11-26 22:13:41 +00:00
.trackerignore Bug 1486468 - Add .trackerignore file to avoid GNOME Tracker indexing mozilla-central files. r=ahal 2018-08-27 16:45:03 +02:00
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle Bug 1458668 - Enforce changelog for GeckoView; r=snorp 2018-11-26 16:27:06 +00:00
Cargo.lock Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
Cargo.toml Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel 2018-11-22 21:47:48 +00:00
client.mk Bug 1498031 - Merge code paths for running configure between Tup and Make based backends. r=firefox-build-system-reviewers,mshal 2018-10-16 22:21:36 +00:00
client.py
CLOBBER Bug 1499026 - Part 3: Updating ICU requires a clobber. r=clobber 2018-11-01 06:32:49 -07:00
configure.in
configure.py
GNUmakefile
gradle.properties
gradlew
LEGAL
LICENSE
mach
Makefile.in Bug 1498031 - Merge code paths for running configure between Tup and Make based backends. r=firefox-build-system-reviewers,mshal 2018-10-16 22:21:36 +00:00
moz.build Bug 1508248 - Update in-tree bugzilla metadata to use 'Firefox Build System :: Mach Core' for mach files r=froydnj 2018-11-19 13:35:14 +00:00
moz.configure Bug 1502457 - Move MOZILLA_OFFICIAL to init.configure. r=nalexander 2018-11-16 01:16:31 +00:00
mozilla-config.h.in Bug 1504022 - Map GetExceptionCode to a nop to avoid an error r=bobowen 2018-11-02 13:28:01 -05:00
old-configure.in Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-11-27 01:03:16 +02:00
package-lock.json Bug 1495397 - Update mozilla-central's package.json for being more generic, and move existing ESLint modules to dev dependencies. r=firefox-build-system-reviewers,nalexander 2018-10-01 17:28:45 +00:00
package.json Bug 1495397 - Update mozilla-central's package.json for being more generic, and move existing ESLint modules to dev dependencies. r=firefox-build-system-reviewers,nalexander 2018-10-01 17:28:45 +00:00
README.txt Bug 1480997 - Remove "Mozilla FTP server" link in README.txt r=mossop 2018-10-23 10:06:29 +00:00
settings.gradle
test.mozbuild

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy.