diff options
| author | Dan Nicolaescu | 2010-07-08 14:25:08 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-08 14:25:08 -0700 |
| commit | 5842a27bbfb7efa6872824e501bc7ec98b631553 (patch) | |
| tree | d173899af9cbed9d90d94cfc710e6ecc06dd1f6b /src/casefiddle.c | |
| parent | 71c44c04bb996abe77db8efd88255fde06532b10 (diff) | |
| download | emacs-5842a27bbfb7efa6872824e501bc7ec98b631553.tar.gz emacs-5842a27bbfb7efa6872824e501bc7ec98b631553.zip | |
Convert DEFUNs to standard C.
* src/alloc.c: Convert DEFUNs to standard C.
* src/buffer.c:
* src/bytecode.c:
* src/callint.c:
* src/callproc.c:
* src/casefiddle.c:
* src/casetab.c:
* src/category.c:
* src/character.c:
* src/charset.c:
* src/chartab.c:
* src/cmds.c:
* src/coding.c:
* src/composite.c:
* src/data.c:
* src/dbusbind.c:
* src/dired.c:
* src/dispnew.c:
* src/doc.c:
* src/dosfns.c:
* src/editfns.c:
* src/emacs.c:
* src/eval.c:
* src/fileio.c:
* src/filelock.c:
* src/floatfns.c:
* src/fns.c:
* src/font.c:
* src/fontset.c:
* src/frame.c:
* src/fringe.c:
* src/image.c:
* src/indent.c:
* src/insdel.c:
* src/keyboard.c:
* src/keymap.c:
* src/lread.c:
* src/macros.c:
* src/marker.c:
* src/menu.c:
* src/minibuf.c:
* src/msdos.c:
* src/nsfns.m:
* src/nsmenu.m:
* src/nsselect.m:
* src/print.c:
* src/process.c:
* src/search.c:
* src/sound.c:
* src/syntax.c:
* src/term.c:
* src/terminal.c:
* src/textprop.c:
* src/undo.c:
* src/w16select.c:
* src/w32console.c:
* src/w32fns.c:
* src/w32font.c:
* src/w32menu.c:
* src/w32proc.c:
* src/w32select.c:
* src/window.c:
* src/xdisp.c:
* src/xfaces.c:
* src/xfns.c:
* src/xmenu.c:
* src/xselect.c:
* src/xsettings.c:
* src/xsmfns.c: Likewise.
Diffstat (limited to 'src/casefiddle.c')
| -rw-r--r-- | src/casefiddle.c | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/src/casefiddle.c b/src/casefiddle.c index b9667efe2bb..9545cf697a8 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c | |||
| @@ -153,8 +153,7 @@ DEFUN ("upcase", Fupcase, Supcase, 1, 1, 0, | |||
| 153 | The argument may be a character or string. The result has the same type. | 153 | The argument may be a character or string. The result has the same type. |
| 154 | The argument object is not altered--the value is a copy. | 154 | The argument object is not altered--the value is a copy. |
| 155 | See also `capitalize', `downcase' and `upcase-initials'. */) | 155 | See also `capitalize', `downcase' and `upcase-initials'. */) |
| 156 | (obj) | 156 | (Lisp_Object obj) |
| 157 | Lisp_Object obj; | ||
| 158 | { | 157 | { |
| 159 | return casify_object (CASE_UP, obj); | 158 | return casify_object (CASE_UP, obj); |
| 160 | } | 159 | } |
| @@ -163,8 +162,7 @@ DEFUN ("downcase", Fdowncase, Sdowncase, 1, 1, 0, | |||
| 163 | doc: /* Convert argument to lower case and return that. | 162 | doc: /* Convert argument to lower case and return that. |
| 164 | The argument may be a character or string. The result has the same type. | 163 | The argument may be a character or string. The result has the same type. |
| 165 | The argument object is not altered--the value is a copy. */) | 164 | The argument object is not altered--the value is a copy. */) |
| 166 | (obj) | 165 | (Lisp_Object obj) |
| 167 | Lisp_Object obj; | ||
| 168 | { | 166 | { |
| 169 | return casify_object (CASE_DOWN, obj); | 167 | return casify_object (CASE_DOWN, obj); |
| 170 | } | 168 | } |
| @@ -175,8 +173,7 @@ This means that each word's first character is upper case | |||
| 175 | and the rest is lower case. | 173 | and the rest is lower case. |
| 176 | The argument may be a character or string. The result has the same type. | 174 | The argument may be a character or string. The result has the same type. |
| 177 | The argument object is not altered--the value is a copy. */) | 175 | The argument object is not altered--the value is a copy. */) |
| 178 | (obj) | 176 | (Lisp_Object obj) |
| 179 | Lisp_Object obj; | ||
| 180 | { | 177 | { |
| 181 | return casify_object (CASE_CAPITALIZE, obj); | 178 | return casify_object (CASE_CAPITALIZE, obj); |
| 182 | } | 179 | } |
| @@ -188,8 +185,7 @@ DEFUN ("upcase-initials", Fupcase_initials, Supcase_initials, 1, 1, 0, | |||
| 188 | Do not change the other letters of each word. | 185 | Do not change the other letters of each word. |
| 189 | The argument may be a character or string. The result has the same type. | 186 | The argument may be a character or string. The result has the same type. |
| 190 | The argument object is not altered--the value is a copy. */) | 187 | The argument object is not altered--the value is a copy. */) |
| 191 | (obj) | 188 | (Lisp_Object obj) |
| 192 | Lisp_Object obj; | ||
| 193 | { | 189 | { |
| 194 | return casify_object (CASE_CAPITALIZE_UP, obj); | 190 | return casify_object (CASE_CAPITALIZE_UP, obj); |
| 195 | } | 191 | } |
| @@ -306,8 +302,7 @@ These arguments specify the starting and ending character numbers of | |||
| 306 | the region to operate on. When used as a command, the text between | 302 | the region to operate on. When used as a command, the text between |
| 307 | point and the mark is operated on. | 303 | point and the mark is operated on. |
| 308 | See also `capitalize-region'. */) | 304 | See also `capitalize-region'. */) |
| 309 | (beg, end) | 305 | (Lisp_Object beg, Lisp_Object end) |
| 310 | Lisp_Object beg, end; | ||
| 311 | { | 306 | { |
| 312 | casify_region (CASE_UP, beg, end); | 307 | casify_region (CASE_UP, beg, end); |
| 313 | return Qnil; | 308 | return Qnil; |
| @@ -318,8 +313,7 @@ DEFUN ("downcase-region", Fdowncase_region, Sdowncase_region, 2, 2, "r", | |||
| 318 | These arguments specify the starting and ending character numbers of | 313 | These arguments specify the starting and ending character numbers of |
| 319 | the region to operate on. When used as a command, the text between | 314 | the region to operate on. When used as a command, the text between |
| 320 | point and the mark is operated on. */) | 315 | point and the mark is operated on. */) |
| 321 | (beg, end) | 316 | (Lisp_Object beg, Lisp_Object end) |
| 322 | Lisp_Object beg, end; | ||
| 323 | { | 317 | { |
| 324 | casify_region (CASE_DOWN, beg, end); | 318 | casify_region (CASE_DOWN, beg, end); |
| 325 | return Qnil; | 319 | return Qnil; |
| @@ -331,8 +325,7 @@ Capitalized form means each word's first character is upper case | |||
| 331 | and the rest of it is lower case. | 325 | and the rest of it is lower case. |
| 332 | In programs, give two arguments, the starting and ending | 326 | In programs, give two arguments, the starting and ending |
| 333 | character positions to operate on. */) | 327 | character positions to operate on. */) |
| 334 | (beg, end) | 328 | (Lisp_Object beg, Lisp_Object end) |
| 335 | Lisp_Object beg, end; | ||
| 336 | { | 329 | { |
| 337 | casify_region (CASE_CAPITALIZE, beg, end); | 330 | casify_region (CASE_CAPITALIZE, beg, end); |
| 338 | return Qnil; | 331 | return Qnil; |
| @@ -346,8 +339,7 @@ DEFUN ("upcase-initials-region", Fupcase_initials_region, | |||
| 346 | Subsequent letters of each word are not changed. | 339 | Subsequent letters of each word are not changed. |
| 347 | In programs, give two arguments, the starting and ending | 340 | In programs, give two arguments, the starting and ending |
| 348 | character positions to operate on. */) | 341 | character positions to operate on. */) |
| 349 | (beg, end) | 342 | (Lisp_Object beg, Lisp_Object end) |
| 350 | Lisp_Object beg, end; | ||
| 351 | { | 343 | { |
| 352 | casify_region (CASE_CAPITALIZE_UP, beg, end); | 344 | casify_region (CASE_CAPITALIZE_UP, beg, end); |
| 353 | return Qnil; | 345 | return Qnil; |
| @@ -376,8 +368,7 @@ DEFUN ("upcase-word", Fupcase_word, Supcase_word, 1, 1, "p", | |||
| 376 | doc: /* Convert following word (or ARG words) to upper case, moving over. | 368 | doc: /* Convert following word (or ARG words) to upper case, moving over. |
| 377 | With negative argument, convert previous words but do not move. | 369 | With negative argument, convert previous words but do not move. |
| 378 | See also `capitalize-word'. */) | 370 | See also `capitalize-word'. */) |
| 379 | (arg) | 371 | (Lisp_Object arg) |
| 380 | Lisp_Object arg; | ||
| 381 | { | 372 | { |
| 382 | Lisp_Object beg, end; | 373 | Lisp_Object beg, end; |
| 383 | EMACS_INT newpoint; | 374 | EMACS_INT newpoint; |
| @@ -391,8 +382,7 @@ See also `capitalize-word'. */) | |||
| 391 | DEFUN ("downcase-word", Fdowncase_word, Sdowncase_word, 1, 1, "p", | 382 | DEFUN ("downcase-word", Fdowncase_word, Sdowncase_word, 1, 1, "p", |
| 392 | doc: /* Convert following word (or ARG words) to lower case, moving over. | 383 | doc: /* Convert following word (or ARG words) to lower case, moving over. |
| 393 | With negative argument, convert previous words but do not move. */) | 384 | With negative argument, convert previous words but do not move. */) |
| 394 | (arg) | 385 | (Lisp_Object arg) |
| 395 | Lisp_Object arg; | ||
| 396 | { | 386 | { |
| 397 | Lisp_Object beg, end; | 387 | Lisp_Object beg, end; |
| 398 | EMACS_INT newpoint; | 388 | EMACS_INT newpoint; |
| @@ -408,8 +398,7 @@ DEFUN ("capitalize-word", Fcapitalize_word, Scapitalize_word, 1, 1, "p", | |||
| 408 | This gives the word(s) a first character in upper case | 398 | This gives the word(s) a first character in upper case |
| 409 | and the rest lower case. | 399 | and the rest lower case. |
| 410 | With negative argument, capitalize previous words but do not move. */) | 400 | With negative argument, capitalize previous words but do not move. */) |
| 411 | (arg) | 401 | (Lisp_Object arg) |
| 412 | Lisp_Object arg; | ||
| 413 | { | 402 | { |
| 414 | Lisp_Object beg, end; | 403 | Lisp_Object beg, end; |
| 415 | EMACS_INT newpoint; | 404 | EMACS_INT newpoint; |