diff options
| author | Dan Nicolaescu | 2010-10-01 05:25:21 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-10-01 05:25:21 -0700 |
| commit | 088dcc3e8c2a0b8a36dd9ac5e515d51e41530bee (patch) | |
| tree | 730387a1a4ff70e114ecbf0befd7ded5afbdf367 /src | |
| parent | 321401d15f5f82ff25efefe810904c8132313711 (diff) | |
| download | emacs-088dcc3e8c2a0b8a36dd9ac5e515d51e41530bee.tar.gz emacs-088dcc3e8c2a0b8a36dd9ac5e515d51e41530bee.zip | |
Use intern_c_string instead of intern.
* src/nsselect.m (syms_of_nsselect):
* src/nsmenu.m (syms_of_nsmenu):
* src/nsfns.m (syms_of_nsfns):
* src/msdos.c (syms_of_msdos):
* src/image.c (syms_of_image):
* src/charset.c (syms_of_charset): Use intern_c_string instead of intern.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/charset.c | 4 | ||||
| -rw-r--r-- | src/image.c | 8 | ||||
| -rw-r--r-- | src/msdos.c | 2 | ||||
| -rw-r--r-- | src/nsfns.m | 2 | ||||
| -rw-r--r-- | src/nsmenu.m | 2 | ||||
| -rw-r--r-- | src/nsselect.m | 10 |
7 files changed, 21 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cd25d7d88ec..753d262417a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * nsselect.m (syms_of_nsselect): | ||
| 4 | * nsmenu.m (syms_of_nsmenu): | ||
| 5 | * nsfns.m (syms_of_nsfns): | ||
| 6 | * msdos.c (syms_of_msdos): | ||
| 7 | * image.c (syms_of_image): | ||
| 8 | * charset.c (syms_of_charset): Use intern_c_string instead of intern. | ||
| 9 | |||
| 3 | * point.h: Remove, unused. | 10 | * point.h: Remove, unused. |
| 4 | 11 | ||
| 5 | 2010-10-01 Eli Zaretskii <eliz@gnu.org> | 12 | 2010-10-01 Eli Zaretskii <eliz@gnu.org> |
diff --git a/src/charset.c b/src/charset.c index 8051b11330e..43d1015a93d 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -2365,8 +2365,8 @@ syms_of_charset (void) | |||
| 2365 | Vemacs_mule_charset_list = Qnil; | 2365 | Vemacs_mule_charset_list = Qnil; |
| 2366 | 2366 | ||
| 2367 | /* Don't staticpro them here. It's done in syms_of_fns. */ | 2367 | /* Don't staticpro them here. It's done in syms_of_fns. */ |
| 2368 | QCtest = intern (":test"); | 2368 | QCtest = intern_c_string (":test"); |
| 2369 | Qeq = intern ("eq"); | 2369 | Qeq = intern_c_string ("eq"); |
| 2370 | 2370 | ||
| 2371 | staticpro (&Vcharset_hash_table); | 2371 | staticpro (&Vcharset_hash_table); |
| 2372 | { | 2372 | { |
diff --git a/src/image.c b/src/image.c index 940959e951a..72cbad987f6 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -8718,11 +8718,11 @@ non-numeric, there is no explicit limit on the size of images. */); | |||
| 8718 | staticpro (&QCheuristic_mask); | 8718 | staticpro (&QCheuristic_mask); |
| 8719 | QCindex = intern_c_string (":index"); | 8719 | QCindex = intern_c_string (":index"); |
| 8720 | staticpro (&QCindex); | 8720 | staticpro (&QCindex); |
| 8721 | QCgeometry = intern (":geometry"); | 8721 | QCgeometry = intern_c_string (":geometry"); |
| 8722 | staticpro (&QCgeometry); | 8722 | staticpro (&QCgeometry); |
| 8723 | QCcrop = intern (":crop"); | 8723 | QCcrop = intern_c_string (":crop"); |
| 8724 | staticpro (&QCcrop); | 8724 | staticpro (&QCcrop); |
| 8725 | QCrotation = intern (":rotation"); | 8725 | QCrotation = intern_c_string (":rotation"); |
| 8726 | staticpro (&QCrotation); | 8726 | staticpro (&QCrotation); |
| 8727 | QCmatrix = intern_c_string (":matrix"); | 8727 | QCmatrix = intern_c_string (":matrix"); |
| 8728 | staticpro (&QCmatrix); | 8728 | staticpro (&QCmatrix); |
| @@ -8785,7 +8785,7 @@ non-numeric, there is no explicit limit on the size of images. */); | |||
| 8785 | #endif | 8785 | #endif |
| 8786 | 8786 | ||
| 8787 | #if defined (HAVE_IMAGEMAGICK) | 8787 | #if defined (HAVE_IMAGEMAGICK) |
| 8788 | Qimagemagick = intern ("imagemagick"); | 8788 | Qimagemagick = intern_c_string ("imagemagick"); |
| 8789 | staticpro (&Qimagemagick); | 8789 | staticpro (&Qimagemagick); |
| 8790 | ADD_IMAGE_TYPE (Qimagemagick); | 8790 | ADD_IMAGE_TYPE (Qimagemagick); |
| 8791 | #endif | 8791 | #endif |
diff --git a/src/msdos.c b/src/msdos.c index 086cad2ff84..3894770e194 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -4706,7 +4706,7 @@ syms_of_msdos (void) | |||
| 4706 | #ifndef HAVE_X_WINDOWS | 4706 | #ifndef HAVE_X_WINDOWS |
| 4707 | 4707 | ||
| 4708 | /* The following two are from xfns.c: */ | 4708 | /* The following two are from xfns.c: */ |
| 4709 | Qreverse = intern ("reverse"); | 4709 | Qreverse = intern_c_string ("reverse"); |
| 4710 | staticpro (&Qreverse); | 4710 | staticpro (&Qreverse); |
| 4711 | 4711 | ||
| 4712 | DEFVAR_LISP ("dos-unsupported-char-glyph", &Vdos_unsupported_char_glyph, | 4712 | DEFVAR_LISP ("dos-unsupported-char-glyph", &Vdos_unsupported_char_glyph, |
diff --git a/src/nsfns.m b/src/nsfns.m index 576131e0bdf..db8bbeb5f76 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -2598,7 +2598,7 @@ syms_of_nsfns (void) | |||
| 2598 | { | 2598 | { |
| 2599 | int i; | 2599 | int i; |
| 2600 | 2600 | ||
| 2601 | Qfontsize = intern ("fontsize"); | 2601 | Qfontsize = intern_c_string ("fontsize"); |
| 2602 | staticpro (&Qfontsize); | 2602 | staticpro (&Qfontsize); |
| 2603 | 2603 | ||
| 2604 | DEFVAR_LISP ("ns-icon-type-alist", &Vns_icon_type_alist, | 2604 | DEFVAR_LISP ("ns-icon-type-alist", &Vns_icon_type_alist, |
diff --git a/src/nsmenu.m b/src/nsmenu.m index 9534aec8f2b..d0276c50bf7 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -1808,7 +1808,7 @@ syms_of_nsmenu (void) | |||
| 1808 | defsubr (&Sns_reset_menu); | 1808 | defsubr (&Sns_reset_menu); |
| 1809 | defsubr (&Smenu_or_popup_active_p); | 1809 | defsubr (&Smenu_or_popup_active_p); |
| 1810 | 1810 | ||
| 1811 | Qdebug_on_next_call = intern ("debug-on-next-call"); | 1811 | Qdebug_on_next_call = intern_c_string ("debug-on-next-call"); |
| 1812 | staticpro (&Qdebug_on_next_call); | 1812 | staticpro (&Qdebug_on_next_call); |
| 1813 | } | 1813 | } |
| 1814 | 1814 | ||
diff --git a/src/nsselect.m b/src/nsselect.m index 9e434515edf..786ca36069c 100644 --- a/src/nsselect.m +++ b/src/nsselect.m | |||
| @@ -549,10 +549,10 @@ nxatoms_of_nsselect (void) | |||
| 549 | void | 549 | void |
| 550 | syms_of_nsselect (void) | 550 | syms_of_nsselect (void) |
| 551 | { | 551 | { |
| 552 | QCLIPBOARD = intern ("CLIPBOARD"); staticpro (&QCLIPBOARD); | 552 | QCLIPBOARD = intern_c_string ("CLIPBOARD"); staticpro (&QCLIPBOARD); |
| 553 | QSECONDARY = intern ("SECONDARY"); staticpro (&QSECONDARY); | 553 | QSECONDARY = intern_c_string ("SECONDARY"); staticpro (&QSECONDARY); |
| 554 | QTEXT = intern ("TEXT"); staticpro (&QTEXT); | 554 | QTEXT = intern_c_string ("TEXT"); staticpro (&QTEXT); |
| 555 | QFILE_NAME = intern ("FILE_NAME"); staticpro (&QFILE_NAME); | 555 | QFILE_NAME = intern_c_string ("FILE_NAME"); staticpro (&QFILE_NAME); |
| 556 | 556 | ||
| 557 | defsubr (&Sx_disown_selection_internal); | 557 | defsubr (&Sx_disown_selection_internal); |
| 558 | defsubr (&Sx_get_selection_internal); | 558 | defsubr (&Sx_get_selection_internal); |
| @@ -605,7 +605,7 @@ The functions are called with one argument, the selection type\n\ | |||
| 605 | \(a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD')."); | 605 | \(a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD')."); |
| 606 | Vns_lost_selection_hooks = Qnil; | 606 | Vns_lost_selection_hooks = Qnil; |
| 607 | 607 | ||
| 608 | Qforeign_selection = intern ("foreign-selection"); | 608 | Qforeign_selection = intern_c_string ("foreign-selection"); |
| 609 | staticpro (&Qforeign_selection); | 609 | staticpro (&Qforeign_selection); |
| 610 | } | 610 | } |
| 611 | 611 | ||