diff options
| author | Paul Eggert | 2019-08-24 17:46:21 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-08-24 17:49:57 -0700 |
| commit | 84f1674ee8cbd83ea219595e9adec2d148946976 (patch) | |
| tree | f0d15e5d279194a7a11a141519ed70d313fa5871 /src | |
| parent | 63906ab4877b0f93e806a1a0b3b92ba8c8c67398 (diff) | |
| download | emacs-84f1674ee8cbd83ea219595e9adec2d148946976.tar.gz emacs-84f1674ee8cbd83ea219595e9adec2d148946976.zip | |
Clarify Fx_parse_geometry initialization
* src/frame.c (Fx_parse_geometry): Clarify why local init
isn’t needed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/frame.c b/src/frame.c index 330f98aee15..cf38c85f09f 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -5327,9 +5327,10 @@ or a list (- N) meaning -N pixels relative to bottom/right corner. | |||
| 5327 | On Nextstep, this just calls `ns-parse-geometry'. */) | 5327 | On Nextstep, this just calls `ns-parse-geometry'. */) |
| 5328 | (Lisp_Object string) | 5328 | (Lisp_Object string) |
| 5329 | { | 5329 | { |
| 5330 | int geometry, x UNINIT, y UNINIT; | 5330 | /* x and y don't need initialization, as they are not accessed |
| 5331 | unless XParseGeometry sets them. */ | ||
| 5332 | int x UNINIT, y UNINIT; | ||
| 5331 | unsigned int width, height; | 5333 | unsigned int width, height; |
| 5332 | Lisp_Object result; | ||
| 5333 | 5334 | ||
| 5334 | CHECK_STRING (string); | 5335 | CHECK_STRING (string); |
| 5335 | 5336 | ||
| @@ -5337,9 +5338,9 @@ On Nextstep, this just calls `ns-parse-geometry'. */) | |||
| 5337 | if (strchr (SSDATA (string), ' ') != NULL) | 5338 | if (strchr (SSDATA (string), ' ') != NULL) |
| 5338 | return call1 (Qns_parse_geometry, string); | 5339 | return call1 (Qns_parse_geometry, string); |
| 5339 | #endif | 5340 | #endif |
| 5340 | geometry = XParseGeometry (SSDATA (string), | 5341 | int geometry = XParseGeometry (SSDATA (string), |
| 5341 | &x, &y, &width, &height); | 5342 | &x, &y, &width, &height); |
| 5342 | result = Qnil; | 5343 | Lisp_Object result = Qnil; |
| 5343 | if (geometry & XValue) | 5344 | if (geometry & XValue) |
| 5344 | { | 5345 | { |
| 5345 | Lisp_Object element; | 5346 | Lisp_Object element; |