initial commit
This commit is contained in:
commit
549fbc6b74
31 changed files with 3377 additions and 0 deletions
38
devoir/include/sub.h
Normal file
38
devoir/include/sub.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/**
|
||||
* @file sub.h
|
||||
* @brief Sub mnemonic: pop two elements and push their difference.
|
||||
*/
|
||||
|
||||
#ifndef SUB_H
|
||||
#define SUB_H
|
||||
|
||||
#include "mne.h"
|
||||
|
||||
/**
|
||||
* @brief Forward declaration of non-derivable class Sub.
|
||||
*
|
||||
*/
|
||||
typedef struct _sub_t sub_t;
|
||||
|
||||
/**
|
||||
* @brief Sub vtable is identical to base Mne vtable (no new methods).
|
||||
*
|
||||
*/
|
||||
typedef mne_vtable_t sub_vtable_t;
|
||||
|
||||
/**
|
||||
* @brief Constructs a Sub mnemonic.
|
||||
*
|
||||
* @return A newly allocated Sub mnemonic.
|
||||
*/
|
||||
sub_t* sub_build_default(void);
|
||||
|
||||
/**
|
||||
* @brief Destroys a Sub mnemonic (via polymorphic destructor).
|
||||
*
|
||||
* @param self The Sub mnemonic (can be NULL).
|
||||
* @note This is a convenience wrapper; normally destructed via mne_destroy().
|
||||
*/
|
||||
void sub_destroy(sub_t *self);
|
||||
|
||||
#endif /* SUB_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue