aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac.c
Commit message (Collapse)AuthorAgeFilesLines
* (xrm_get_preference_database): Remove BLOCK_INPUT.YAMAMOTO Mitsuharu2007-06-071-4/+0
|
* Fix typo in comment.Juanma Barranquero2007-04-191-1/+1
|
* (xrm_get_preference_database, Fmac_get_preference)YAMAMOTO Mitsuharu2007-04-121-0/+5
| | | | [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODEYAMAMOTO Mitsuharu2007-01-051-4/+4
| | | | | instead of 'EMAx'. [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
* (Fmac_code_convert_string): Doc fix.Juanma Barranquero2006-12-191-2/+2
|
* (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]: NewYAMAMOTO Mitsuharu2006-12-151-0/+25
| | | | | | | | variable. (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros. [!MAC_OSX] (select): Use them. [MAC_OSX] (select_and_poll_event, sys_select): Likewise. (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
* (create_apple_event_from_event_ref)YAMAMOTO Mitsuharu2006-10-311-16/+16
| | | | | | | | | (create_apple_event_from_drag_ref, skip_white_space, parse_comment) (parse_include_file, parse_binding, parse_component) (parse_resource_name, parse_value, parse_resource_line) (xrm_merge_string_database, xrm_get_resource) (xrm_get_preference_database): Add const qualifier to arguments. [MAC_OSX] (sys_select): Make variable `context' static const.
* (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.YAMAMOTO Mitsuharu2006-10-161-0/+10
|
* [!MAC_OSX] (select): Fix argument name.YAMAMOTO Mitsuharu2006-09-191-1/+1
|
* (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.YAMAMOTO Mitsuharu2006-09-181-1/+5
| | | | [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
* [MAC_OSX] (sys_select): Check argument `nfds' moreYAMAMOTO Mitsuharu2006-09-101-13/+16
| | | | rigidly. Make variable `ofds' static. Remove variable `maxfd'.
* [!MAC_OSX] Don't include keyboard.h.YAMAMOTO Mitsuharu2006-09-081-214/+240
| | | | | | | | | | | | | | | | | [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent in the same BLOCK_INPUT block, in case that some input has already been read asynchronously. Pretend to be interrupted by a signal if some input is available. [MAC_OSX] (select_and_poll_event, sys_select): Likewise. (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000. Now used for ReceiveNextEvent timeout instead of select timeout. (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro. [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect support. Quit event loop. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking connect support. Reuse previously allocated CFRunLoopSource. (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function. (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
* (create_apple_event_from_event_ref, select)YAMAMOTO Mitsuharu2006-08-271-11/+11
| | | | | | | (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator) (Fmac_set_file_type, cfstring_create_normalized) (mac_get_system_locale, select_and_poll_event, sys_select): Use OSStatus instead of OSErr.
* (Fmac_get_preference): Use CHECK_LIST_END.Kim F. Storm2006-07-121-2/+1
|
* [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.YAMAMOTO Mitsuharu2006-06-281-2/+0
|
* Tiny layout change.YAMAMOTO Mitsuharu2006-05-271-0/+1
|
* (ae_attr_table): New variable.YAMAMOTO Mitsuharu2006-05-241-14/+165
| | | | | | | (syms_of_mac): Intern and staticpro its elements. (mac_aelist_to_lisp): Also convert Apple event attributes. (mac_ae_put_lisp): New function. (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
* (Fmac_clear_font_name_table): Move defun to macfns.c.YAMAMOTO Mitsuharu2006-05-071-11/+0
| | | | (syms_of_mac): Likewise for defsubr.
* (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 toYAMAMOTO Mitsuharu2006-05-051-16/+98
| | | | | | | | | `const AEDesc *'. [TARGET_API_MAC_CARBON] (create_apple_event): New function. [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it. Use xrealloc instead of repeated xmalloc/xfree. [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New function.
* (mac_coerce_file_name_ptr): Try typeFSRef if coercionYAMAMOTO Mitsuharu2006-05-011-3/+47
| | | | through typeFileURL failed.
* (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)YAMAMOTO Mitsuharu2006-04-181-47/+24
| | | | | (create_apple_event_from_event_ref, xrm_get_preference_database) (cfstring_create_normalized): Don't check return value of xmalloc.
* (init_process): Remove undef.YAMAMOTO Mitsuharu2006-04-121-29/+25
| | | | | | | | | | | | | | (select) [MAC_OSX]: Undefine before including sysselect.h. (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]: Remove functions and prototypes. (parse_value): Add parentheses around + inside shift. (path_from_vol_dir_name): Make static. (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'. [!MAC_OSX] (get_path_to_system_folder): Likewise. (Fmac_get_file_creator, Fmac_get_file_type): Remove unused variable `cCode'. (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'. (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
* (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.YAMAMOTO Mitsuharu2006-03-121-0/+3
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):YAMAMOTO Mitsuharu2006-01-051-131/+90
| | | | Don't check that the other type is known file-related one.
* (posix_pathname_to_fsspec, fsspec_to_posix_pathname): AddYAMAMOTO Mitsuharu2005-12-241-78/+280
| | | | | | | | | prototypes. Make static. (mac_aedesc_to_lisp): Initialize err to noErr. (mac_coerce_file_name_ptr, mac_coerce_file_name_desc) (init_coercion_handler): New functions. (Fmac_coerce_ae_data): Use coercion of Apple event data for translation from/to file names.
* (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.YAMAMOTO Mitsuharu2005-12-221-3/+6
|
* (create_apple_event_from_event_ref): Remove arg `types'.YAMAMOTO Mitsuharu2005-12-191-91/+47
| | | | | (do_applescript): Change argument types to Lisp_Object. All uses changed.
* (Qundecoded_file_name): New variable.YAMAMOTO Mitsuharu2005-12-101-0/+324
| | | | | | | | | (syms_of_mac): Initialize it. (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions. [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New function. (Fmac_coerce_ae_data): New defun. (syms_of_mac): Defsubr it.
* (DECODE_UTF_8): Remove macro.YAMAMOTO Mitsuharu2005-11-231-7/+19
| | | | | | | [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function created from cfstring_to_lisp. [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it. (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
* (HASHKEY_QUERY_CACHE): New define.YAMAMOTO Mitsuharu2005-11-151-4/+37
| | | | | (xrm_create_database, xrm_q_put_resource): Empty query cache. (xrm_get_resource): Use query cache.
* [MAC_OSX] (init_mac_osx_environment): Reinitialize localeYAMAMOTO Mitsuharu2005-11-091-24/+30
| | | | related variables for dumped executable.
* [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp): Allow nilYAMAMOTO Mitsuharu2005-10-161-17/+23
| | | | | | as argument. [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil for encoding arguments as UTF-16 in native byte order, no BOM.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-1/+2
|
* Don't include stdlib.h or string.h.YAMAMOTO Mitsuharu2005-07-231-29/+29
| | | | | | | | | (Fdo_applescript, Fmac_file_name_to_posix) (Fmac_file_name_to_posix): Doc fixes. [TARGET_API_MAC_CARBON] (Fmac_get_preference) (Fmac_code_convert_string): Likewise. [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode if the executable is not contained in a bundle.
* (Fmac_code_convert_string): Add comment about Fstring_as_unibyte.Stefan Monnier2005-07-211-1/+5
|
* [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): UseYAMAMOTO Mitsuharu2005-07-161-1/+1
| | | | Fstring_as_unibyte instead of string_make_unibyte.
* [!TARGET_API_MAC_CARBON] Include charset.h, coding.h, and Endian.h.YAMAMOTO Mitsuharu2005-07-121-59/+136
| | | | | | | | | | | [!MAC_OSX] (fchmod, fchown): New functions. (mac_get_code_from_arg): Don't accept Lisp integer as argument. Use SBYTES and EndianU32_BtoN. (mac_get_object_from_code): Return 4 byte string even if argument is 0. Use make_unibyte_string and EndianU32_NtoB. (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator) (Fmac_set_file_type): Fix documents and argument declarations. Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
* Adding in functions for setting and retrieving file type infoSteven Tamm2005-07-101-0/+209
| | | | | | mac.c (Fmac_get_file_type, Fmac_get_file_creator): Added. (Fmac_set_file_type, Fmac_set_file_creator): Added (mac_get_object_from_code, mac_get_code_from_arg): Added
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* [!MAC_OSX] Include keyboard.h and syssignal.h.YAMAMOTO Mitsuharu2005-05-131-125/+174
| | | | | | | | | | | | | | | [!MAC_OSX] (target_ticks): Remove variable. [!MAC_OSX] (check_alarm, pause, index): Remove functions. [!MAC_OSX && __MRC__] (sys_strftime): Likewise. [!MAC_OSX] (select): If fd 0 is not set in rfds and some input event occurs before timeout, behave as if the function were interrupted. [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM handling using Time Manager routines. [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask): New variables. [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer) (setitimer): New functions.
* * mac.c: #undef init_process so not to conflict with system headers.Jan Djärv2005-05-031-0/+1
|
* Don't include time.h. Include sysselect.h after systime.h.YAMAMOTO Mitsuharu2005-04-291-2/+1
|
* [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.YAMAMOTO Mitsuharu2005-04-241-176/+232
| | | | | | | | | | | | | | | (QCLIPBOARD): Remove variable. (syms_of_mac): Don't initialize it. (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p): Remove functions. (syms_of_mac): Don't defsubr them. [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC) (QHFS_plus_D, QHFS_plus_C): New variables. (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them. [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp) (cfstring_create_normalized): New functions. [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise. (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
* Include charset.h and coding.h.YAMAMOTO Mitsuharu2005-04-161-5/+37
| | | | | | [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern. [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function. [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
* [!TARGET_API_MAC_CARBON]: Include MacLocales.h. Don't includeYAMAMOTO Mitsuharu2005-04-141-0/+40
| | | | | | | TextEncodingConverter.h. (mac_system_script_code, Vmac_system_locale): New variables. (syms_of_mac): Defvar them. (mac_get_system_locale): New function.
* (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.YAMAMOTO Mitsuharu2005-04-061-24/+11
| | | | (Fmac_get_preference): Doc fix.
* (HASHKEY_TERMINAL): Remove.YAMAMOTO Mitsuharu2005-03-171-48/+65
| | | | | | | | | | | | (HASHKEY_MAX_NID): New macro. (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra argument. (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument. (xrm_create_database, xrm_q_put_resource) (xrm_merge_string_database, xrm_q_get_resource_1) (xrm_q_get_resource): Change resource database representation so that it may not use multiple hash tables for a single database. [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
* Fix typo (skip_while_space -> skip_white_space).YAMAMOTO Mitsuharu2005-03-161-4/+4
|