Skip to content

Commit

Permalink
update defs: 'verbatim' change, some carbon support
Browse files Browse the repository at this point in the history
  • Loading branch information
autc04 committed Nov 10, 2019
1 parent f995d23 commit fdc656f
Show file tree
Hide file tree
Showing 24 changed files with 604 additions and 422 deletions.
62 changes: 31 additions & 31 deletions defs/AppleEvents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
# ####

- executor_only:
code: |
#define DESC_TYPE(desc) ((desc)->descriptorType)
#define DESC_DATA(desc) ((desc)->dataHandle)
- only-for: Executor
verbatim: |
#define DESC_TYPE(desc) ((desc)->descriptorType)
#define DESC_DATA(desc) ((desc)->dataHandle)
# ####

Expand All @@ -65,10 +65,10 @@

# ####

- executor_only:
code: |
#define KEY_DESC_KEYWORD(keydesc) ((keydesc)->descKey)
#define KEY_DESC_CONTENT(keydesc) ((keydesc)->descContent)
- only-for: Executor
verbatim: |
#define KEY_DESC_KEYWORD(keydesc) ((keydesc)->descKey)
#define KEY_DESC_CONTENT(keydesc) ((keydesc)->descContent)
# ####

Expand Down Expand Up @@ -375,12 +375,12 @@

# ####

- executor_only:
code: |
#define AE_TABLE_ELTS(table) ((*table)->elts)
#define AE_TABLE_N_ELTS(table) ((*table)->n_elts)
#define AE_TABLE_N_ALLOCATED_BYTES(table) \
((*table)->n_allocated_bytes)
- only-for: Executor
verbatim: |
#define AE_TABLE_ELTS(table) ((*table)->elts)
#define AE_TABLE_N_ELTS(table) ((*table)->n_elts)
#define AE_TABLE_N_ALLOCATED_BYTES(table) \
((*table)->n_allocated_bytes)
# ####

Expand Down Expand Up @@ -549,23 +549,23 @@

# ####

- executor_only:
code: |
/* private */
extern bool send_application_open_aevt_p;
extern bool application_accepts_open_app_aevt_p;
/* error codes */
#define AE_RETURN_ERROR(error) \
do { \
OSErr _error_ = (error); \
\
if(_error_ != noErr) \
warning_unexpected("error `%d'", _error_); \
return _error_; \
} while(0)
- only-for: Executor
verbatim: |
/* private */
extern bool send_application_open_aevt_p;
extern bool application_accepts_open_app_aevt_p;
/* error codes */
#define AE_RETURN_ERROR(error) \
do { \
OSErr _error_ = (error); \
\
if(_error_ != noErr) \
warning_unexpected("error `%d'", _error_); \
return _error_; \
} while(0)
# ####

Expand Down
24 changes: 12 additions & 12 deletions defs/CQuickDraw.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- executor_only:
code: |
#define theCPort (**(GUEST<GUEST<CGrafPtr> *> *)SYN68K_TO_US(EM_A5))
#define theCPortX (**(GUEST<GUEST<CGrafPtr> *> *)SYN68K_TO_US(EM_A5))
- only-for: Executor
verbatim: |
#define theCPort (**(GUEST<GUEST<CGrafPtr> *> *)SYN68K_TO_US(EM_A5))
#define theCPortX (**(GUEST<GUEST<CGrafPtr> *> *)SYN68K_TO_US(EM_A5))
# ####

Expand Down Expand Up @@ -295,14 +295,14 @@

# ####

- executor_only:
code: |
/* return true if `maybe_graphics_world' points to a graphics world,
and not a graf port or cgraf port */
#define GRAPHICS_WORLD_P(maybe_graphics_world) \
(CGrafPort_p(maybe_graphics_world) \
&& CPORT_VERSION(maybe_graphics_world) & GW_FLAG_BIT)
#define GW_CPORT(graphics_world) ((CGrafPtr)(graphics_world))
- only-for: Executor
verbatim: |
/* return true if `maybe_graphics_world' points to a graphics world,
and not a graf port or cgraf port */
#define GRAPHICS_WORLD_P(maybe_graphics_world) \
(CGrafPort_p(maybe_graphics_world) \
&& CPORT_VERSION(maybe_graphics_world) & GW_FLAG_BIT)
#define GW_CPORT(graphics_world) ((CGrafPtr)(graphics_world))
# ####

Expand Down
32 changes: 16 additions & 16 deletions defs/CodeFragments.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- executor_only:
code: |
const std::nullptr_t kUnresolvedCFragSymbolAddress = nullptr;
- only-for: Executor
verbatim: |
const std::nullptr_t kUnresolvedCFragSymbolAddress = nullptr;
# ####

Expand All @@ -27,10 +27,10 @@

# ####

- executor_only:
code: |
#define CFRG_VERSION(cfrg) ((cfgr)->version)
#define CFRG_N_DESCRIPTS(cfrg) ((cfrg)->n_descripts)
- only-for: Executor
verbatim: |
#define CFRG_VERSION(cfrg) ((cfgr)->version)
#define CFRG_N_DESCRIPTS(cfrg) ((cfrg)->n_descripts)
# ####

Expand Down Expand Up @@ -69,15 +69,15 @@

# ####

- executor_only:
code: |
#define CFIR_ISA(cfir) ((cfir)->isa)
#define CFIR_TYPE(cfir) ((cfir)->fragment_type)
#define CFIR_LOCATION(cfir) ((cfir)->fragment_location)
#define CFIR_LENGTH(cfir) ((cfir)->cfir_length)
#define CFIR_OFFSET_TO_FRAGMENT(cfir) ((cfir)->offset_to_fragment)
#define CFIR_FRAGMENT_LENGTH(cfir) ((cfir)->fragment_length)
#define CFIR_NAME(cfir) ((cfir)->name)
- only-for: Executor
verbatim: |
#define CFIR_ISA(cfir) ((cfir)->isa)
#define CFIR_TYPE(cfir) ((cfir)->fragment_type)
#define CFIR_LOCATION(cfir) ((cfir)->fragment_location)
#define CFIR_LENGTH(cfir) ((cfir)->cfir_length)
#define CFIR_OFFSET_TO_FRAGMENT(cfir) ((cfir)->offset_to_fragment)
#define CFIR_FRAGMENT_LENGTH(cfir) ((cfir)->fragment_length)
#define CFIR_NAME(cfir) ((cfir)->name)
# ####

Expand Down
18 changes: 9 additions & 9 deletions defs/DialogMgr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@

# ####

- executor_only:
code: |
/* dialog record accessors */
#define DIALOG_WINDOW(dialog) ((WindowPtr) & ((DialogPeek)dialog)->window)
#define DIALOG_ITEMS(dialog) (((DialogPeek)(dialog))->items)
#define DIALOG_TEXTH(dialog) (((DialogPeek)(dialog))->textH)
#define DIALOG_EDIT_FIELD(dialog) (((DialogPeek)(dialog))->editField)
#define DIALOG_EDIT_OPEN(dialog) (((DialogPeek)(dialog))->editOpen)
#define DIALOG_ADEF_ITEM(dialog) (((DialogPeek)(dialog))->aDefItem)
- only-for: Executor
verbatim: |
/* dialog record accessors */
#define DIALOG_WINDOW(dialog) ((WindowPtr) & ((DialogPeek)dialog)->window)
#define DIALOG_ITEMS(dialog) (((DialogPeek)(dialog))->items)
#define DIALOG_TEXTH(dialog) (((DialogPeek)(dialog))->textH)
#define DIALOG_EDIT_FIELD(dialog) (((DialogPeek)(dialog))->editField)
#define DIALOG_EDIT_OPEN(dialog) (((DialogPeek)(dialog))->editOpen)
#define DIALOG_ADEF_ITEM(dialog) (((DialogPeek)(dialog))->aDefItem)
# ####

Expand Down

0 comments on commit fdc656f

Please sign in to comment.