aboutsummaryrefslogtreecommitdiffstats
path: root/src/casefiddle.c
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-08 14:25:08 -0700
committerDan Nicolaescu2010-07-08 14:25:08 -0700
commit5842a27bbfb7efa6872824e501bc7ec98b631553 (patch)
treed173899af9cbed9d90d94cfc710e6ecc06dd1f6b /src/casefiddle.c
parent71c44c04bb996abe77db8efd88255fde06532b10 (diff)
downloademacs-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.c33
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,
153The argument may be a character or string. The result has the same type. 153The argument may be a character or string. The result has the same type.
154The argument object is not altered--the value is a copy. 154The argument object is not altered--the value is a copy.
155See also `capitalize', `downcase' and `upcase-initials'. */) 155See 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.
164The argument may be a character or string. The result has the same type. 163The argument may be a character or string. The result has the same type.
165The argument object is not altered--the value is a copy. */) 164The 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
175and the rest is lower case. 173and the rest is lower case.
176The argument may be a character or string. The result has the same type. 174The argument may be a character or string. The result has the same type.
177The argument object is not altered--the value is a copy. */) 175The 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,
188Do not change the other letters of each word. 185Do not change the other letters of each word.
189The argument may be a character or string. The result has the same type. 186The argument may be a character or string. The result has the same type.
190The argument object is not altered--the value is a copy. */) 187The 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
306the region to operate on. When used as a command, the text between 302the region to operate on. When used as a command, the text between
307point and the mark is operated on. 303point and the mark is operated on.
308See also `capitalize-region'. */) 304See 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",
318These arguments specify the starting and ending character numbers of 313These arguments specify the starting and ending character numbers of
319the region to operate on. When used as a command, the text between 314the region to operate on. When used as a command, the text between
320point and the mark is operated on. */) 315point 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
331and the rest of it is lower case. 325and the rest of it is lower case.
332In programs, give two arguments, the starting and ending 326In programs, give two arguments, the starting and ending
333character positions to operate on. */) 327character 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,
346Subsequent letters of each word are not changed. 339Subsequent letters of each word are not changed.
347In programs, give two arguments, the starting and ending 340In programs, give two arguments, the starting and ending
348character positions to operate on. */) 341character 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.
377With negative argument, convert previous words but do not move. 369With negative argument, convert previous words but do not move.
378See also `capitalize-word'. */) 370See 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'. */)
391DEFUN ("downcase-word", Fdowncase_word, Sdowncase_word, 1, 1, "p", 382DEFUN ("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.
393With negative argument, convert previous words but do not move. */) 384With 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",
408This gives the word(s) a first character in upper case 398This gives the word(s) a first character in upper case
409and the rest lower case. 399and the rest lower case.
410With negative argument, capitalize previous words but do not move. */) 400With 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;