Mercurial > emacs
comparison src/emacs.c @ 6027:f25b21c384a1
Move extern declarations to top of file.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 22 Feb 1994 19:43:28 +0000 |
parents | b14326f9debb |
children | 7f1756b0b478 |
comparison
equal
deleted
inserted
replaced
6026:45b117ac2dbc | 6027:f25b21c384a1 |
---|---|
50 #include "process.h" | 50 #include "process.h" |
51 | 51 |
52 #ifndef O_RDWR | 52 #ifndef O_RDWR |
53 #define O_RDWR 2 | 53 #define O_RDWR 2 |
54 #endif | 54 #endif |
55 | |
56 extern void malloc_warning (); | |
57 extern char *index (); | |
58 extern char *strerror (); | |
55 | 59 |
56 /* Command line args from shell, as list of strings */ | 60 /* Command line args from shell, as list of strings */ |
57 Lisp_Object Vcommand_line_args; | 61 Lisp_Object Vcommand_line_args; |
58 | 62 |
59 /* The name under which Emacs was invoked, with any leading directory | 63 /* The name under which Emacs was invoked, with any leading directory |
338 { | 342 { |
339 char stack_bottom_variable; | 343 char stack_bottom_variable; |
340 int skip_args = 0; | 344 int skip_args = 0; |
341 extern int errno; | 345 extern int errno; |
342 extern sys_nerr; | 346 extern sys_nerr; |
343 extern char *strerror (); | |
344 extern void malloc_warning (); | |
345 | 347 |
346 /* Map in shared memory, if we are using that. */ | 348 /* Map in shared memory, if we are using that. */ |
347 #ifdef HAVE_SHM | 349 #ifdef HAVE_SHM |
348 if (argc > 1 && !strcmp (argv[1], "-nl")) | 350 if (argc > 1 && !strcmp (argv[1], "-nl")) |
349 { | 351 { |
879 (intoname) | 881 (intoname) |
880 Lisp_Object intoname; | 882 Lisp_Object intoname; |
881 { | 883 { |
882 extern int my_edata; | 884 extern int my_edata; |
883 Lisp_Object tem; | 885 Lisp_Object tem; |
884 extern void malloc_warning (); | |
885 | 886 |
886 CHECK_STRING (intoname, 0); | 887 CHECK_STRING (intoname, 0); |
887 intoname = Fexpand_file_name (intoname, Qnil); | 888 intoname = Fexpand_file_name (intoname, Qnil); |
888 | 889 |
889 tem = Vpurify_flag; | 890 tem = Vpurify_flag; |
915 (intoname, symname) | 916 (intoname, symname) |
916 Lisp_Object intoname, symname; | 917 Lisp_Object intoname, symname; |
917 { | 918 { |
918 extern int my_edata; | 919 extern int my_edata; |
919 Lisp_Object tem; | 920 Lisp_Object tem; |
920 extern void malloc_warning (); | |
921 | 921 |
922 CHECK_STRING (intoname, 0); | 922 CHECK_STRING (intoname, 0); |
923 intoname = Fexpand_file_name (intoname, Qnil); | 923 intoname = Fexpand_file_name (intoname, Qnil); |
924 if (!NILP (symname)) | 924 if (!NILP (symname)) |
925 { | 925 { |
960 Lisp_Object | 960 Lisp_Object |
961 decode_env_path (evarname, defalt) | 961 decode_env_path (evarname, defalt) |
962 char *evarname, *defalt; | 962 char *evarname, *defalt; |
963 { | 963 { |
964 register char *path, *p; | 964 register char *path, *p; |
965 extern char *index (); | |
966 | 965 |
967 Lisp_Object lpath; | 966 Lisp_Object lpath; |
968 | 967 |
969 /* It's okay to use getenv here, because this function is only used | 968 /* It's okay to use getenv here, because this function is only used |
970 to initialize variables when Emacs starts up, and isn't called | 969 to initialize variables when Emacs starts up, and isn't called |