diff options
| author | Paul Eggert | 2016-03-27 15:52:03 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-03-27 15:53:34 -0700 |
| commit | f41f573ee199834e7d5e36ede029c6f47b1c3b09 (patch) | |
| tree | 998e5b66efd7d13eccb972d830b49fa3539fab4e /src/xml.c | |
| parent | bc9cc21d34ae71dc38bd20f224c4b3ac073bcb50 (diff) | |
| download | emacs-f41f573ee199834e7d5e36ede029c6f47b1c3b09.tar.gz emacs-f41f573ee199834e7d5e36ede029c6f47b1c3b09.zip | |
Rename C names to match Lisp symbols better
This was inspired by commit e65c3079c65595d95749348366af9811fafff062,
which fixed a bug where the C name for a symbol disagreed with the
symbol name itself. Fix other instances of disagreements that I found.
Although this doesn’t fix a bug, it should make code easier to follow.
The remaining disagreements are idiosyncratic: Qminus, Qplus,
Qsans__serif, Qbackquote, Qcomma, Qcomma_at, Qcomma_dot.
All uses changed.
* src/alloc.c (QAutomatic_GC): Rename from Qautomatic_gc.
* src/dbusbind.c (QCsystem): Rename from QCdbus_system_bus.
(QCsession): Rename from QCdbus_session_bus.
(QCtimeout): Rename from QCdbus_timeout.
(QCbyte): Rename from QCdbus_type_byte.
(QCboolean): Rename from QCdbus_type_boolean.
(QCint16): Rename from QCdbus_type_int16.
(QCuint16): Rename from QCdbus_type_uint16.
(QCint32): Rename from QCdbus_type_int32.
(QCuint32): Rename from QCdbus_type_uint32.
(QCint64): Rename from QCdbus_type_int64.
(QCuint64): Rename from QCdbus_type_uint64.
(QCdouble): Rename from QCdbus_type_double.
(QCstring): Rename from QCdbus_type_string.
(QCobject_path): Rename from QCdbus_type_object_path.
(QCsignature): Rename from QCdbus_type_signature.
(QCunix_fd): Rename from QCdbus_type_unix_fd.
(QCarray): Rename from QCdbus_type_array.
(QCvariant): Rename from QCdbus_type_variant.
(QCstruct): Rename from QCdbus_type_struct.
(QCdict_entry): Rename from QCdbus_type_dict_entry.
(QCserial): Rename from QCdbus_registered_serial.
(QCmethod): Rename from QCdbus_registered_method.
(QCsignal): Rename from QCdbus_registered_signal.
* src/emacs-module.c (Qinternal__module_call):
Rename from Qinternal_module_call.
* src/frame.c (Qwindow__pixel_to_total):
Rename from Qwindow_pixel_to_total.
* src/gnutls.c (QChostname): Rename from QCgnutls_bootprop_hostname.
(QCpriority): Rename from QCgnutls_bootprop_priority.
(QCtrustfiles): Rename from QCgnutls_bootprop_trustfiles.
(QCkeylist): Rename from QCgnutls_bootprop_keylist.
(QCcrlfiles): Rename from QCgnutls_bootprop_crlfiles.
(QCmin_prime_bits): Rename from QCgnutls_bootprop_min_prime_bits.
(QCloglevel): Rename from QCgnutls_bootprop_loglevel.
(QCcomplete_negotiation): Rename from QCgnutls_complete_negotiation.
(QCverify_flags): Rename from QCgnutls_bootprop_verify_flags.
(QCverify_error): Rename from QCgnutls_bootprop_verify_error.
* src/w32fns.c (Qfont_parameter): Rename from Qfont_param.
(Qgnutls): Rename from Qgnutls_dll.
(Qlibxml2): Rename from Qlibxml2_dll.
(Qzlib): Rename from Qzlib_dll.
* src/w32select.c (Qutf_16le_dos): Rename from QUNICODE.
* src/window.c (Qwindow__resize_root_window):
Rename from Qwindow_resize_root_window.
(Qwindow__resize_root_window_vertically):
Rename from Qwindow_resize_root_window_vertically.
(Qwindow__sanitize_window_sizes):
Rename from Qwindow_sanitize_window_sizes.
(Qwindow__pixel_to_total): Rename from Qwindow_pixel_to_total.
* src/xdisp.c (Qredisplay_internal_xC_functionx):
Rename from Qredisplay_internal.
* src/xfns.c (Qfont_parameter): Rename from Qfont_param.
* src/xselect.c (Q_EMACS_TMP_): Rename from QEMACS_TMP.
Diffstat (limited to 'src/xml.c')
| -rw-r--r-- | src/xml.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -45,7 +45,7 @@ DEF_DLL_FN (void, xmlCheckVersion, (int)); | |||
| 45 | static bool | 45 | static bool |
| 46 | libxml2_loaded_p (void) | 46 | libxml2_loaded_p (void) |
| 47 | { | 47 | { |
| 48 | Lisp_Object found = Fassq (Qlibxml2_dll, Vlibrary_cache); | 48 | Lisp_Object found = Fassq (Qlibxml2, Vlibrary_cache); |
| 49 | 49 | ||
| 50 | return CONSP (found) && EQ (XCDR (found), Qt); | 50 | return CONSP (found) && EQ (XCDR (found), Qt); |
| 51 | } | 51 | } |
| @@ -96,7 +96,7 @@ init_libxml2_functions (void) | |||
| 96 | { | 96 | { |
| 97 | HMODULE library; | 97 | HMODULE library; |
| 98 | 98 | ||
| 99 | if (!(library = w32_delayed_load (Qlibxml2_dll))) | 99 | if (!(library = w32_delayed_load (Qlibxml2))) |
| 100 | { | 100 | { |
| 101 | message1 ("libxml2 library not found"); | 101 | message1 ("libxml2 library not found"); |
| 102 | return false; | 102 | return false; |
| @@ -105,12 +105,12 @@ init_libxml2_functions (void) | |||
| 105 | if (! load_dll_functions (library)) | 105 | if (! load_dll_functions (library)) |
| 106 | goto bad_library; | 106 | goto bad_library; |
| 107 | 107 | ||
| 108 | Vlibrary_cache = Fcons (Fcons (Qlibxml2_dll, Qt), Vlibrary_cache); | 108 | Vlibrary_cache = Fcons (Fcons (Qlibxml2, Qt), Vlibrary_cache); |
| 109 | return true; | 109 | return true; |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | bad_library: | 112 | bad_library: |
| 113 | Vlibrary_cache = Fcons (Fcons (Qlibxml2_dll, Qnil), Vlibrary_cache); | 113 | Vlibrary_cache = Fcons (Fcons (Qlibxml2, Qnil), Vlibrary_cache); |
| 114 | 114 | ||
| 115 | return false; | 115 | return false; |
| 116 | #else /* !WINDOWSNT */ | 116 | #else /* !WINDOWSNT */ |