diff options
| author | Paul Eggert | 2017-09-25 11:16:05 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-09-25 11:16:05 -0700 |
| commit | 0c06b93c1e467debd401eb0b3be4652fde14fa95 (patch) | |
| tree | 9fac5e948a58a4526dcc5ce6160b48197ea03f7d /src | |
| parent | c4e6ff097c946b46e3a659982c61e25093bde1a7 (diff) | |
| parent | 96aaeaaffac8a93d9c8126ba77ad217a3f323fce (diff) | |
| download | emacs-0c06b93c1e467debd401eb0b3be4652fde14fa95.tar.gz emacs-0c06b93c1e467debd401eb0b3be4652fde14fa95.zip | |
Merge from origin/emacs-26
96aaeaaffa ; * src/lcms.c: Minor stylistic changes in comments.
c3df816585 Fix compilation warning in etags.c
5490ccc5eb Add lisp variable lcms-d65-xyz
dee96f4a17 * lisp/emacs-lisp/cl-macs.el (cl-letf): Fix Edebug spec (b...
12e864eb30 Avoid MinGW64 compiler warnings in unexw32.c
625cee5316 Start emacs-26 release branch
# Conflicts:
# README
# configure.ac
# msdos/sed2v2.inp
# nt/README.W32
Diffstat (limited to 'src')
| -rw-r--r-- | src/lcms.c | 24 | ||||
| -rw-r--r-- | src/unexw32.c | 2 |
2 files changed, 14 insertions, 12 deletions
diff --git a/src/lcms.c b/src/lcms.c index 1f3ace3baac..f543a030399 100644 --- a/src/lcms.c +++ b/src/lcms.c | |||
| @@ -102,7 +102,7 @@ DEFUN ("lcms-cie-de2000", Flcms_cie_de2000, Slcms_cie_de2000, 2, 5, 0, | |||
| 102 | Each color is a list of L*a*b* coordinates, where the L* channel ranges from | 102 | Each color is a list of L*a*b* coordinates, where the L* channel ranges from |
| 103 | 0 to 100, and the a* and b* channels range from -128 to 128. | 103 | 0 to 100, and the a* and b* channels range from -128 to 128. |
| 104 | Optional arguments KL, KC, KH are weighting parameters for lightness, | 104 | Optional arguments KL, KC, KH are weighting parameters for lightness, |
| 105 | chroma, and hue, respectively. The parameters each default to 1. */) | 105 | chroma, and hue, respectively. The parameters each default to 1. */) |
| 106 | (Lisp_Object color1, Lisp_Object color2, | 106 | (Lisp_Object color1, Lisp_Object color2, |
| 107 | Lisp_Object kL, Lisp_Object kC, Lisp_Object kH) | 107 | Lisp_Object kL, Lisp_Object kC, Lisp_Object kH) |
| 108 | { | 108 | { |
| @@ -162,8 +162,8 @@ parse_xyz_list (Lisp_Object xyz_list, cmsCIEXYZ *color) | |||
| 162 | 162 | ||
| 163 | DEFUN ("lcms-cam02-ucs", Flcms_cam02_ucs, Slcms_cam02_ucs, 2, 3, 0, | 163 | DEFUN ("lcms-cam02-ucs", Flcms_cam02_ucs, Slcms_cam02_ucs, 2, 3, 0, |
| 164 | doc: /* Compute CAM02-UCS metric distance between COLOR1 and COLOR2. | 164 | doc: /* Compute CAM02-UCS metric distance between COLOR1 and COLOR2. |
| 165 | Each color is a list of XYZ coordinates, with Y scaled to unity. | 165 | Each color is a list of XYZ coordinates, with Y scaled about unity. |
| 166 | Optional argument is the XYZ white point, which defaults to illuminant D65. */) | 166 | Optional argument is the XYZ white point, which defaults to illuminant D65. */) |
| 167 | (Lisp_Object color1, Lisp_Object color2, Lisp_Object whitepoint) | 167 | (Lisp_Object color1, Lisp_Object color2, Lisp_Object whitepoint) |
| 168 | { | 168 | { |
| 169 | cmsViewingConditions vc; | 169 | cmsViewingConditions vc; |
| @@ -186,15 +186,11 @@ Optional argument is the XYZ white point, which defaults to illuminant D65. */) | |||
| 186 | if (!(CONSP (color1) && parse_xyz_list (color1, &xyz1))) | 186 | if (!(CONSP (color1) && parse_xyz_list (color1, &xyz1))) |
| 187 | signal_error ("Invalid color", color1); | 187 | signal_error ("Invalid color", color1); |
| 188 | if (!(CONSP (color2) && parse_xyz_list (color2, &xyz2))) | 188 | if (!(CONSP (color2) && parse_xyz_list (color2, &xyz2))) |
| 189 | signal_error ("Invalid color", color1); | 189 | signal_error ("Invalid color", color2); |
| 190 | if (NILP (whitepoint)) | 190 | if (NILP (whitepoint)) |
| 191 | { | 191 | parse_xyz_list (Vlcms_d65_xyz, &xyzw); |
| 192 | xyzw.X = 95.047; | ||
| 193 | xyzw.Y = 100.0; | ||
| 194 | xyzw.Z = 108.883; | ||
| 195 | } | ||
| 196 | else if (!(CONSP (whitepoint) && parse_xyz_list (whitepoint, &xyzw))) | 192 | else if (!(CONSP (whitepoint) && parse_xyz_list (whitepoint, &xyzw))) |
| 197 | signal_error("Invalid white point", whitepoint); | 193 | signal_error ("Invalid white point", whitepoint); |
| 198 | 194 | ||
| 199 | vc.whitePoint.X = xyzw.X; | 195 | vc.whitePoint.X = xyzw.X; |
| 200 | vc.whitePoint.Y = xyzw.Y; | 196 | vc.whitePoint.Y = xyzw.Y; |
| @@ -243,7 +239,7 @@ Optional argument is the XYZ white point, which defaults to illuminant D65. */) | |||
| 243 | 239 | ||
| 244 | DEFUN ("lcms-temp->white-point", Flcms_temp_to_white_point, Slcms_temp_to_white_point, 1, 1, 0, | 240 | DEFUN ("lcms-temp->white-point", Flcms_temp_to_white_point, Slcms_temp_to_white_point, 1, 1, 0, |
| 245 | doc: /* Return XYZ black body chromaticity from TEMPERATURE given in K. | 241 | doc: /* Return XYZ black body chromaticity from TEMPERATURE given in K. |
| 246 | Valid range of TEMPERATURE is from 4000K to 25000K. */) | 242 | Valid range of TEMPERATURE is from 4000K to 25000K. */) |
| 247 | (Lisp_Object temperature) | 243 | (Lisp_Object temperature) |
| 248 | { | 244 | { |
| 249 | cmsFloat64Number tempK; | 245 | cmsFloat64Number tempK; |
| @@ -295,6 +291,12 @@ DEFUN ("lcms2-available-p", Flcms2_available_p, Slcms2_available_p, 0, 0, 0, | |||
| 295 | void | 291 | void |
| 296 | syms_of_lcms2 (void) | 292 | syms_of_lcms2 (void) |
| 297 | { | 293 | { |
| 294 | DEFVAR_LISP ("lcms-d65-xyz", Vlcms_d65_xyz, | ||
| 295 | doc: /* D65 illuminant as a CIE XYZ triple. */); | ||
| 296 | Vlcms_d65_xyz = list3 (make_float (0.950455), | ||
| 297 | make_float (1.0), | ||
| 298 | make_float (1.088753)); | ||
| 299 | |||
| 298 | defsubr (&Slcms_cie_de2000); | 300 | defsubr (&Slcms_cie_de2000); |
| 299 | defsubr (&Slcms_cam02_ucs); | 301 | defsubr (&Slcms_cam02_ucs); |
| 300 | defsubr (&Slcms2_available_p); | 302 | defsubr (&Slcms2_available_p); |
diff --git a/src/unexw32.c b/src/unexw32.c index 0c6b48342e5..e97a52ba07a 100644 --- a/src/unexw32.c +++ b/src/unexw32.c | |||
| @@ -471,7 +471,7 @@ get_section_info (file_data *p_infile) | |||
| 471 | } | 471 | } |
| 472 | 472 | ||
| 473 | /* Format to print a DWORD_PTR value. */ | 473 | /* Format to print a DWORD_PTR value. */ |
| 474 | #ifdef MINGW_W64 | 474 | #if defined MINGW_W64 && defined _WIN64 |
| 475 | # define pDWP "16llx" | 475 | # define pDWP "16llx" |
| 476 | #else | 476 | #else |
| 477 | # define pDWP "08lx" | 477 | # define pDWP "08lx" |