initial commit

This commit is contained in:
boyreau 2026-11-04 18:00:08 +01:00
commit 549fbc6b74
31 changed files with 3377 additions and 0 deletions

38
devoir/include/mul.h Normal file
View file

@ -0,0 +1,38 @@
/**
* @file mul.h
* @brief Mul mnemonic: pop two elements and push their product.
*/
#ifndef MUL_H
#define MUL_H
#include "mne.h"
/**
* @brief Forward declaration of non-derivable class Mul.
*
*/
typedef struct _mul_t mul_t;
/**
* @brief Mul vtable is identical to base Mne vtable (no new methods).
*
*/
typedef mne_vtable_t mul_vtable_t;
/**
* @brief Constructs a Mul mnemonic.
*
* @return A newly allocated Mul mnemonic.
*/
mul_t* mul_build_default(void);
/**
* @brief Destroys a Mul mnemonic (via polymorphic destructor).
*
* @param self The Mul mnemonic (can be NULL).
* @note This is a convenience wrapper; normally destructed via mne_destroy().
*/
void mul_destroy(mul_t *self);
#endif /* MUL_H */